AC500 Modbus RTU Slave, adresses for input/output
How do I assign my inputs and outputs to specific modbus adresses (40000...) so the master can access my data?
For example, I have the input "UPS_alarm" bool on %IX0.1. How do I assign it to an modbus address the other PLC can access?
I have already from before set the correct parameters regarding RTS(telegram), parity, baud, adress etc in "com1 - modbus parameters".
In case your AC500 CPU should be a slave to other PLC, the simplest answer is:
In this way you assign status of the DI channel %IX0.1 to Modbus bit %MX0.0.1 = 40001 Modbus address (depends of Modbus protocol).
Better is to assign a variable in HW configuration to DI channel %IX0.1 e.g. UPS_Alarm. Then your statement will be:
Type Modbus Addresses in Codesys Help, and you can see Modbus mapping of AC500
Source: Codesys Help