I adjusted the register 5083 value to “3000”, and it works.
Node RED code for anyone who will run into the same issue:
[
{
"id": "9606d5f00ffec92c",
"type": "modbus-read",
"z": "92a4ac0b7f31d055",
"name": "evcs_val",
"topic": "",
"showStatusActivities": true,
"logIOActivities": false,
"showErrors": true,
"showWarnings": true,
"unitid": "1",
"dataType": "HoldingRegister",
"adr": "5083",
"quantity": "1",
"rate": "10",
"rateUnit": "s",
"delayOnStart": false,
"startDelayTime": "",
"server": "c33f869fcc86e517",
"useIOFile": false,
"ioFile": "",
"useIOForPayload": false,
"emptyMsgOnFail": false,
"x": 100,
"y": 800,
"wires": [
[
"49f4af7b3b3e5599"
],
[]
]
},
{
"id": "d03f50e988adbf49",
"type": "debug",
"z": "92a4ac0b7f31d055",
"name": "debug 17",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 420,
"y": 780,
"wires": []
},
{
"id": "ac7beb45b468f782",
"type": "modbus-write",
"z": "92a4ac0b7f31d055",
"name": "evcs_set_register",
"showStatusActivities": true,
"showErrors": true,
"showWarnings": true,
"unitid": "1",
"dataType": "HoldingRegister",
"adr": "5083",
"quantity": "1",
"server": "c33f869fcc86e517",
"emptyMsgOnFail": false,
"keepMsgProperties": false,
"delayOnStart": false,
"startDelayTime": "",
"x": 450,
"y": 880,
"wires": [
[
"af3761cc8e9647a5"
],
[
"a97b1dc6737e0025"
]
]
},
{
"id": "49f4af7b3b3e5599",
"type": "switch",
"z": "92a4ac0b7f31d055",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "3000",
"vt": "num"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 230,
"y": 800,
"wires": [
[
"d03f50e988adbf49"
],
[
"cf0596ea5871f45a",
"c5b0b2154c7178ee"
]
]
},
{
"id": "cf0596ea5871f45a",
"type": "change",
"z": "92a4ac0b7f31d055",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "3000",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 260,
"y": 880,
"wires": [
[
"ac7beb45b468f782"
]
]
},
{
"id": "af3761cc8e9647a5",
"type": "debug",
"z": "92a4ac0b7f31d055",
"name": "debug 20",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 860,
"wires": []
},
{
"id": "a97b1dc6737e0025",
"type": "debug",
"z": "92a4ac0b7f31d055",
"name": "debug 21",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 900,
"wires": []
},
{
"id": "c5b0b2154c7178ee",
"type": "debug",
"z": "92a4ac0b7f31d055",
"name": "debug 22",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 420,
"y": 820,
"wires": []
},
{
"id": "9cff7c7910a9845b",
"type": "comment",
"z": "92a4ac0b7f31d055",
"name": "EVCS: set the minimum excess solar power to start in auto mode. The default value is 100 (register 5083)",
"info": "",
"x": 380,
"y": 740,
"wires": []
},
{
"id": "c33f869fcc86e517",
"type": "modbus-client",
"name": "evcs",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": true,
"queueLogEnabled": false,
"failureLogEnabled": true,
"tcpHost": "192.168.0.10",
"tcpPort": "502",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyUSB",
"serialType": "RTU-BUFFERD",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "100",
"serialAsciiResponseStartDelimiter": "0x3A",
"unit_id": "1",
"commandDelay": "1",
"clientTimeout": "1000",
"reconnectOnTimeout": true,
"reconnectTimeout": "2000",
"parallelUnitIdsAllowed": true,
"showErrors": true,
"showWarnings": true,
"showLogs": true
}
]