4
« on: February 04, 2016, 02:35:44 AM »
Hi Again!
I have been able to read bits over the MODBUS TCP/IP but I am having trouble writing from the HMI to the PLC.
For example I have r6 which I can read from using the address and function code as:
11030.
i.e. Function Code 1 followed by the Bit Address.
I tried to write to r1 using the same format i.e. 51025 but this give me an error.
I suspect that the following section from page 19-9 in the manual may be the reason:
“All the Nano-10 I/O bits are mapped identically to both the MODBUS “0x” and 1x space. Although MODBUS names the 0x address space as “Coil (which means output bits) and the “1x” address space as “Input Status” (which means input bits only), the Nano-10 PLCs treat both spaces the same. Some MODBUS drivers only allow you to “read” from the 0x space and “write” to 1x space but you still use the same offset shown on Table 14.1”
I am somewhat confused about the above statement. I am trying to use Advanced HMI as the HMI programme and the MODBUS TCP driver will not accept addresses of the format 0-1025 or 1-1025. So what would be the correct address to map to r1 on 1025 but in the “1x” space?
Confused…..