10-13-2022 12:45 PM - edited 10-13-2022 12:49 PM
Hi,
I am running into an issue with my modbus setuo. Basically it works for a minute and it gets interrupted and then I receive no data at all. Trying to figure out if its necessary to implement some sort of "timeout and reconnect" code into my current modbus code.
Error:
−1967353903 | The communication between the Modbus master and slave devices was interrupted. Check the connection status between the two devices. |
Modbus TCP/IP:
Modbus Gateway (Serial to TCP) ---> Slave devices are daisy chained RS-485, have verfied all the parameters for modbus on each device.
My modbus code is in a timed loop which exceutes every ten seconds. I have no idea why it gets interrupted, checked the wiring and used third part MB poll softwares. Any help would be appreciated in helping me figuring out whats causing it to get interrupted. I know i can ping the gateway and poll the devices using the third party MB polling softwares.
Thanks
10-17-2022 04:33 PM
A couple things pop out at first glance...
Also post your actual code NOT a picture of a code fragment.
10-18-2022 11:03 AM - edited 10-18-2022 11:04 AM
I thought the timed loop was executing every 10 seconds thus it would mean the modbus transmit would only execute every 10 seconds. I was trying to limit the amount of requests as it just bombards the gateway and takes down my comms, which i think is what is happening. I misunderstood the timed loop then, can you elaborate on the steps from your second point? Also attached is my VI.
Thanks,
Wally