Mapping a data item of a Modbus RTU device to a global variable
Mapping data items to global variables makes them accessible for application programs or Node-RED flows.
- Prerequisite
- You must add the data item to the Modbus RTU device.
- Open the global variables view.
- Create a new global variable.
- Change the data type of the global variable to the appropriate data type. Choose from:
- BOOL: Discrete Input or Coil
- WORD: Input Register, Holding Register or Status Word
- INT: Input Register or Holding Register, if the content can be meaningfully represented as integer
- Change the I/O mapping of the global variable to the desired data item.
Adding a data item to a Modbus RTU server