Read data from Modbus slaves with CI867
I'm trying to read data from a Modbus TCP slave.
Connection with MBTCPConnect is valid but status from MBTCPReadCyc is -7006 (=there is no respose from slave).
Slave id: 1
Modbus registers: 40001-40002
With Modscan there is no problem to read data from slave.
Please see attached pictures of blocks and hardware.
I have tested everything but I don't get the communication working, Please help!
Voted best answer
I got it working now!
First I used "ModbusTCP slave" units for the modbus slave.
But as the modbus slave had the slave ID of 1 and not 255, I needed to use a "Gateway" with a "Modbus serial slave" at position 1 (slave ID).
Then I had some other modbus units that did not support function code 7 or 8 therfore diagnosic poll did not work therfore communiation could not be established.
Diagnostic poll was disabled by setting "Diagnstic poll time" to 0.
I hope my answer can help somebody in the furure.