AC800m Modbus TCP Help
I am trying to establish communication with some Modbus TCP slaves. My MBTCP Connect block shows Valid as true. But, status in my read block shows -5. What does it mean. I want to read from address %QW10#40000, %QW16#050h, %IX10#1. What data types should I choose in Read block for read variable.
Are you trying this in one block? You cannot mix data types in the same read block, this could be causing your problem.
40000 is a holding register so should be an integer of some sort (uint or dint) - Modbus doesn't handle reals, it can only transfer 16 bit integers. IX refers to FC2 which is for digitals so these should be bools.