8/30/2005 3:02 PM | |
Joined: 8/10/2005 Last visit: 4/9/2024 Posts: 1486 Rating: (32)
|
Hello, the AG_LSEND/AG_LRECV should be called in the cycle. However, the programming of the AG_LSEND/AG_LRECV should comply with the guideline of asynchronous communication blocks. Therefore, I would recommend to adopt the samples provides at our internet pages: "Programming Example for the Send-Receive Interface with the Blocks FC50 (AG_LSEND) and FC60 (AG_LRECV) for S7-400" http://support.automation.siemens.com/WW/view/en/18513371 Please, keep in mind also the ERROR and STATUS= 0x7000 of the AG_LSEND and do not activate the function block again with a restart of that function! The restart may only be done after the DONE or ERROR <> 0x7000. Otherwise, you may run into a buffer overflow of the CP443-1 !! Furthermore, we recommend to set up the TCP connection with a PC according to the following FAQ: http://support.automation.siemens.com/WW/view/en/18843927 |
Follow us on