This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus register type
#1
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.

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" },
.........................
Reply


Messages In This Thread
Modbus register type - by sx3 - 18.03.2019, 17:01
RE: Modbus register type - by admin - 18.03.2019, 17:05
RE: Modbus register type - by sx3 - 18.03.2019, 17:17
RE: Modbus register type - by admin - 18.03.2019, 17:34
RE: Modbus register type - by davidchispas - 12.03.2020, 17:51
RE: Modbus register type - by admin - 12.03.2020, 19:35
RE: Modbus register type - by davidchispas - 13.03.2020, 07:55
RE: Modbus register type - by admin - 13.03.2020, 07:58
RE: Modbus register type - by davidchispas - 13.03.2020, 08:09
RE: Modbus register type - by davidchispas - 16.03.2020, 09:51
RE: Modbus register type - by admin - 16.03.2020, 11:16
RE: Modbus register type - by davidchispas - 16.03.2020, 18:24
RE: Modbus register type - by admin - 16.03.2020, 18:35
RE: Modbus register type - by davidchispas - 16.03.2020, 18:43
RE: Modbus register type - by admin - 17.03.2020, 06:36
RE: Modbus register type - by davidchispas - 04.06.2020, 11:03
RE: Modbus register type - by admin - 04.06.2020, 11:16
RE: Modbus register type - by davidchispas - 04.06.2020, 16:19

Forum Jump: