node i m using modbus-read * ;
node-red-contrib-modbus
v5.25.0
the config is totally correct in this nodes . the problem i think is in the server i use maybe /dev/ttyUSB0 ?
[
{
"id": "384f10890cc6f831",
"type": "modbus-read",
"z": "4c0d8eb2f4e52850",
"name": "",
"topic": "",
"showStatusActivities": false,
"logIOActivities": false,
"showErrors": false,
"showWarnings": false,
"unitid": "1",
"dataType": "HoldingRegister",
"adr": "4112",
"quantity": "4",
"rate": "10",
"rateUnit": "s",
"delayOnStart": false,
"startDelayTime": "0",
"server": "4412ae43.cdf648",
"useIOFile": false,
"ioFile": "",
"useIOForPayload": false,
"emptyMsgOnFail": false,
"x": 230,
"y": 140,
"wires": [
[
"6cf7a26b9fbe62ab",
"dcbeb403db420b52"
],
[]
]
},
{
"id": "6cf7a26b9fbe62ab",
"type": "modbus-response",
"z": "4c0d8eb2f4e52850",
"name": "modbus 1 Débit",
"registerShowMax": "20",
"x": 520,
"y": 120,
"wires": []
},
{
"id": "dcbeb403db420b52",
"type": "debug",
"z": "4c0d8eb2f4e52850",
"name": "debug 2355",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 530,
"y": 180,
"wires": []
},
{
"id": "4412ae43.cdf648",
"type": "modbus-client",
"name": "",
"clienttype": "simpleser",
"bufferCommands": true,
"stateLogEnabled": false,
"queueLogEnabled": false,
"failureLogEnabled": false,
"tcpHost": "127.0.0.1",
"tcpPort": "502",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyUSB0",
"serialType": "RTU",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "even",
"serialConnectionDelay": "100",
"serialAsciiResponseStartDelimiter": "",
"unit_id": 1,
"commandDelay": 1,
"clientTimeout": 1000,
"reconnectOnTimeout": true,
"reconnectTimeout": 2000,
"parallelUnitIdsAllowed": false
}
]