# Mapping a data item of a Modbus RTU device to a global variable

Mapping data items to global variables makes them accessible for Node-RED flows.

1. You must add the data item to the Modbus RTU device.

1. Open the global variables view.
2. Create a new global variable.
3. Change the data type of the global variable to the appropriate data type. Choose from:
4. BOOL: Discrete Input or Coil
5. WORD: Input Register, Holding Register or Status Word
6. INT: Input Register or Holding Register, if the content can be meaningfully represented as integer
7. Change the I/O mapping of the global variable to the desired data item.

## See also

- Creating a global variable