Modbus addressing between AC500 and non ABB HMI
Communication between ABB AC500 PLC with non-ABB make HMI is done, and i am able to transfer values through Modbus over Ethernet.
I am trying to get the selection status (Boolean info) to my PLC. However I am not sure about the equivalent address in %MX0.0.0 form.
Like if the Modbus address in the HMI is 002034, then what would be an equivalent address in my PLC program?
Please help me to resolve this challenge.
Thanks in advance.
Voted best answer
Type Modbus Addresses in AB or Codesys help and you can find a formula to transfer from Modbus address to %MX... and vice versa.
Address hexadecimal = 16#3016
DEC := HEX2DEC(16#3016) := 12310
BYTE := 12310 / 8 := 1538,75 -> 1538
BIT := 12310 mod 8 := 6
Bit variable: %MX0.1538.6
In case you have Modbus address = 2034 (DEC)
Byte:=2034 / 8 := 254.25 -> 254
BIT :=2034 mod 8: = 2
Bit variable: %MX0.254.2
Source: CoDeSys help