This sequence defines the steps used by modbus_scan.sh to identify Modbus RTU devices. Each step reads specific registers and matches the response to a device profile.
modbus_scan.sh