Hello,
I'm having difficulties writing to one particular register. I don't know if the device or the documentation is faulty, or if we are sending out wrong type to it.
Manufacturer say: Discrete output - 0x0006 (this is the register I'm having trouble with)
In LM it should be
I can read on Modbus documention that there are different commands, FC01 = read, FC05 = Write single, FC15 = Write multiple.
Can I in JSON mapper define for example FC05?
I have spoke with one guy that say he doesn't have any trouble resetting the filter timer over modbus using 0x0006 register.
However, he uses a Siemens Pxc100 with RTU module, and his command is "5x00005", I was thinking the 5x=FC05?
Funny thing is, I'm able to write to the first 4 registers in above list without problem and the JSON is identical, so I believe it should work as I have written in the JSON and something must be wrong in the device handling Modbus.
I'm having difficulties writing to one particular register. I don't know if the device or the documentation is faulty, or if we are sending out wrong type to it.
Code:
0x00001 Unit on
0x00002 Overpressure mode
0x00003 Boost mode
0x00004 Away mode
0x00005 Clear Alarms Write 1 to clear alarm, reads always 0
0x00006 Reset filter timer Write 1 to reset filter timer, reads always 0
Manufacturer say: Discrete output - 0x0006 (this is the register I'm having trouble with)
In LM it should be
Code:
{ "name": "Reset filter timer", "bus_datatype": "bool", "type": "coil", "address": 5, "writable": 1, "bus_address": "2/1/5" },
I can read on Modbus documention that there are different commands, FC01 = read, FC05 = Write single, FC15 = Write multiple.
Can I in JSON mapper define for example FC05?
I have spoke with one guy that say he doesn't have any trouble resetting the filter timer over modbus using 0x0006 register.
However, he uses a Siemens Pxc100 with RTU module, and his command is "5x00005", I was thinking the 5x=FC05?
Funny thing is, I'm able to write to the first 4 registers in above list without problem and the JSON is identical, so I believe it should work as I have written in the JSON and something must be wrong in the device handling Modbus.
Code:
.........................
{ "name": "Unit ON", "bus_datatype": "bool", "type": "coil", "address": 0, "writable": 1, "bus_address": "2/1/0" },
{ "name": "Overpressure mode", "bus_datatype": "bool", "type": "coil", "address": 1, "writable": 1, "bus_address": "2/1/1" },
{ "name": "Boost mode", "bus_datatype": "bool", "type": "coil", "address": 2, "writable": 1, "bus_address": "2/1/2" },
{ "name": "Away mode", "bus_datatype": "bool", "type": "coil", "address": 3, "writable": 1, "bus_address": "2/1/3" },
{ "name": "Clear Alarms", "bus_datatype": "bool", "type": "coil", "address": 4, "writable": 1, "bus_address": "2/1/4" },
{ "name": "Reset filter timer", "bus_datatype": "bool", "type": "coil", "address": 5, "writable": 1, "bus_address": "2/1/5" },
.........................