1/26/2010 3:54 PM | |
Joined: 1/17/2007 Last visit: 12/5/2024 Posts: 1548 Rating: (538) |
That should be OK. My only worry is that if there is any fragmentation of the packet (which can happen over Ethernet), the packet may be broken down in a several smaller packets that can arrive in any order. I am no expert in how the S7 CP firmware is functioning, but I assume that the DONE / NDR indications will only be given when the whole packet has been sent / received (i.e all fragments). Maybe someone on here can confirm this. Your method relies on the premise that the whole packet to be sent in one lump, or a least if fragmented, the fragments go in fixed order of first byte to last, or last byte to first. If for example, the packet is sent as 3 fragments (we will call these "beginning", "middle" and "end") and they are sent in a random order, with the "beginning" sent first, then the "end" sent second and the "middle" sent last. You will detect that the data packet has arrived before the "middle" packet has arrived. It is unlikely that the packet will be fragmented though as your data packets are very small. So maybe it is not a problem. The article below shows that fragmentation limits for different protocols. Ethernet Fragmentation Limits Hope this helps. |
Programming today is the race between software engineers building bigger and better idiot proof programs, and the universe producing bigger and better idiots. |
|
1/26/2010 9:10 PM | |
Joined: 11/30/2007 Last visit: 12/20/2024 Posts: 44 Rating: (1) |
It does! Thanks... |
It's life Jim, but not as we know it... |
|
Follow us on