I had an issue this morning where a TCP Client instruction in a stage program hung without properly executing the JMP on Success or JMP on Error.
It seems similar to the TCP Server hang reported here:
https://forum.hosteng.com/index.php?topic=3324.0I read through the posts before troubleshooting, and I tried the suggestions posted. Here's the sequence I followed:
1. Found program hung on S3; did not jump to S5 or S90 (see attached)
2. Checked the following:
ST145 Off
ST146 Off
DST411 9346708
DST51 0
3. Try restarting main stage program --> no difference
4. Try re-initialize PLC I/O --> no difference
5. Create new Modbus TCP Client Device, and write change to PLC (no program changes to use the new device yet, only the addition of the new device) --> no difference
6. Change MRX instructions to use the new TCP Client Device, write to PLC --> MRX instructions now work! **However, now I'm getting PL-Link errors to the other 2 PLCs on the network (showing PL.Rate around 0 to 1); this was not happening before.
7. Re-initialize PLC I/O again --> all better. Both the MRX instruction and the PL.Rates are normal.
I haven't restarted the PLC, so as far as I know the first (troublesome) Modbus TCP device is still in some kind of error state. I'm not sure if that's helpful for troubleshooting. If so, please let me know.
Thanks,
Brian