6/24/2007 11:20 AM | |
Joined: 1/7/2006 Last visit: 12/23/2024 Posts: 2705 Rating: (320)
|
Hi Krish, You didn't mention which CP's you are using, so I have to guess which you have, for some CP's there are in the projecting of the hardware a checkmark with"> 240 byte". Also you have to wait until the data is all inside the CPU, between the CP and the CPU, the AG_LRECV have to get all information inside. This may use several cycle, please look very well to the NDR, ERROR and STATUS bits/word. Also the AG_LRECV is not alife anymore for the S7-300 with newer CP'sin newer versions of STEP7, the standard AG_RECV (V2.4)is doing the job (look in the help <F1> in the blocks). Have you some errors on the STATUS, please look to them very accurately. See also the next link for some information Industrial Ethernet: using the AG_SEND and AG_LSEND blocks |
I hope that the answer will help, if you have still questions, don't hesitate to ask me. |
|
6/24/2007 3:13 PM | |
Joined: 1/7/2006 Last visit: 12/23/2024 Posts: 2705 Rating: (320)
|
Hello Krish, Between the CP and CPU the length of data could be not bigger then 536 byte (maybe not the exact length) and so a block have to be devided into several blocks and so also be called several times with AG_LSEND (the AG_LSEND is doing that automatic over several cyclic calls). Also between the PC and the CP there are restrictions, when the PDU-size is for example 1024 byte then there are also more frames for one telegram, the CP would not recognise the beginning and end of the telegrams, so only fixed length TCP-telegrams are easy to work with (length parametrized on the AG_LRECV). When you have different lengths of telegrams then please use ISO-on-TCP when possible. Also the TCP-connection might do some strange things, in a PC you don't have to do anything with a TCP-frame, but in a CP/CPU there are some things you have to pay attention to. Please read the next FAQ Why under certain circumstances are there very long response times with TCP connections and see if there are any restrictions you have to pay attention to. |
I hope that the answer will help, if you have still questions, don't hesitate to ask me. |
|
6/26/2007 5:17 PM | |
Posts: 5822 Rating: (412)
|
Hello, you may try this one here: CP 443 -1 Firmware Update V2.6 and Unrestricted Use in any Hardware Release (6GK7443-1EX10-0XE0 and 6GK7443-1EX11-0XE0) Best regards J_Bell |
Follow us on