Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR6 (master) connect with PC, data communication with Modbus TCP/IP


Nikki Mar 21, 2018 11:35 AM

Hi,

I am trying to connect my CR6 datalogger (10/100 ethernet) with my PC. On my PC there is al simulation program running: Modbus Eth. TCP/IP PLC. Between the CR6 and my PC there is a switch connected en those systems are connected with ethernet. This is what i have done:
TCPOpen("10.3.11.14",502,1,20,Handle,3)
ModbusMaster (Result,Handle,-9600,1,3,ModBus,1,10,3,200,0)
Unfortunaly, I get a Handle value of 0 with the function TCPOpen(). And a value of -11 of the Result of ModbusMaster function. How can I correct open the TCPOpen() connection?

Thanks!


JDavis Mar 21, 2018 04:36 PM

Check on the PC if a firewall is blocking the port 502, which the software listens on.

Log in or register to post/reply in the forum.