LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ModBus TCP communication dropouts on Watlow gateway

I'm using the NI Modbus ver 1.21 driver library to communicate with a Watlow F4 controller via TCP on a Watlow EM00 Gateway module.  Read errors occur if too much time transpires between access operations.  I've experimented with changing the timeout property with no effect.

 

Also have tried using the VISA drivers but have similar results.

 

Any suggestions?

 

Rich

0 Kudos
Message 1 of 4
(2,957 Views)

From first point of view it looks like this is device related.

 

Havent worked with the Watlow gateway, but from experience with some other devices this behavior can occur if you poll to fast after recieving an answer. Try some testing and measure the timing, and try different poll timers. Perhaps you can see a pattern and tune the poll-timing. You do not need to adjust the timeout property,but need to wait a bit before you poll for a new value, after recieving one - try adjusting this "delay" timer.

 

From a related experience, this can happen when reading multiple input registers, or writing several holding registers. Some devices are just slow and do some stuff after ex. writing holding registers, and ignores all incoming bits'n'bytes while its busy, and if it shouldnt ignore them its buffer will eventually get overloaded. the coils should perhaps not give this resultif you only read thoes.

0 Kudos
Message 2 of 4
(2,941 Views)
ops.. didnt get that you wrote "Read errors occur if too much time transpires between access operations", and somehow I can edit my past post (the option has dissapeard hehe). how often do you read the device, at what interval?
0 Kudos
Message 3 of 4
(2,925 Views)

I've found that sampling at 1-3 seconds seems to be OK.  Extending the interval to 5 sec always gives a "read error".  It acts like the connection "goes away" in between samples.  Changing the sampling operation to open-read-close at any update rate works fine.

 

Watlow says it must be a driver issue.....

0 Kudos
Message 4 of 4
(2,920 Views)