4/2/2024 6:40 AM | |
Joined: 9/28/2022 Last visit: 8/26/2025 Posts: 37 Rating:
|
Still stuck on this |
4/9/2025 1:25 PM | |
Joined: 9/28/2022 Last visit: 8/26/2025 Posts: 37 Rating:
|
I want to add to this problem as I've just experienced/helped debug a similar problem where it gets stuck at 0x8181 or doesnt want to send more bytes, it is possible that the recieving end is only handling x bytes, as some CP cards only want to send in 400 byte batches, ref this manual page 25 Here it states that the max TPDU size is 400 bytes for AG_SEND/AG_LSEND, meaning if the stream on the recieving end only reads once x bytes, it will get stuck after 400 bytes, and you must then read from the network stream multiple times to account for this batching, if you're under 1432 bytes its possible to use SSEND (speed send) to get it all in one TPDU, but this has the said 1432 byte send limit per telegram. If you are making your own socket listener i advice you make some sort of batching implementation for example batching your reads in x bytes as even S7-1500 will batch the sending, but here you have a higher 1452 byte TPDU |
This contribution was helpful to
1 thankful Users |
Follow us on