Using Node-RED to Expose Sensor Data into Modbus TCP Registers on the Enterprise IIoT Gateway

This is a fundamental flow designed to demonstrate the Modbus polling process. It includes two primary Modbus Read nodes:

Read Flag Sensor 1: This node monitors the sensor’s status flag to determine if new data is available. The output will be a boolean value (True/False) based on the current state of that register.

Read Holding Registers: This node is triggered only if the previous “Flag” node returns True. It reads the actual sensor data stored in the Holding Registers.

Auto-Reset Logic: Additionally, this flow is configured to automatically evaluate the output; once the data is successfully read, it sends a command to reset the sensor flag to False. This prepares the system for the next data transmission cycle.

You can easily modify this flow to test your specific Modbus Server configuration and overall logic functionality.

Read more here: Source link