{ "modbus_rtu_devices": [ { "enabled": true, "device_id": "rtu_temp_sensor_lab", "port_path": "/dev/ttyS7", "baud_rate": 9600, "slave_id": 1, "poll_interval_ms": 5000, "data_points": [ { "name": "temperature", "address": 0, "type": "INT16", "scale": 0.1 }, { "name": "humidity", "address": 1, "type": "UINT16", "scale": 0.1 } ] }, { "enabled": false, "device_id": "rotary encoder", "port_path": "/dev/ttyS7", "baud_rate": 9600, "slave_id": 111, "poll_interval_ms": 5000, "data_points": [ { "name": "count", "address": 1, "type": "INT16", "scale": 1 }, { "name": "total_count", "address": 2, "type": "INT16", "scale": 1 } ] }, { "enabled": false, "device_id": "backup_counter", "port_path": "/dev/ttyS7", "baud_rate": 9600, "slave_id": 10, "poll_interval_ms": 1000, "data_points": [ { "name": "count", "address": 32, "type": "UINT32" } ] } ], "modbus_tcp_devices": [ { "enabled": true, "device_id": "前台大厅1号空调", "ip_address": "192.168.1.233", "port": 503, "slave_id": 1, "poll_interval_ms": 1000, "data_points": [ { "name": "new_point", "address": 101, "type": "UINT16", "scale": 0.1 } ] }, { "enabled": false, "device_id": "plc_workshop1", "ip_address": "192.168.1.120", "port": 502, "slave_id": 1, "poll_interval_ms": 1000, "data_points": [ { "name": "motor_speed", "address": 100, "type": "UINT16", "scale": 1 }, { "name": "pressure", "address": 102, "type": "FLOAT32", "scale": 0.01 }, { "name": "valve_status", "address": 104, "type": "UINT16", "scale": 1 } ] } ], "modbus_rtu_bus_configs": { "/dev/ttyS7": { "inter_device_delay_ms": 150 } } }