Retrieving the communication status of a Modbus RTU device
You can retrieve the communication status of Modbus RTU devices via status words. You can map status words to global variables in order to process them in an application program.
- Prerequisite
- You must add Modbus RTU devices to your device configuration.
- Open the global variables view.
- Create a new global variable and change its data type to WORD.
- Map the newly created variable to the desired status word. Choose from:
- Modbus RTU Client - [ID].Status Word: communication status of all servers connected to a client
- Modbus RTU Server - [ID].Status Word: communication status of an individual server
Changing the data type of a global variable