Thanks!
I'm trying to understand the modbus registers of this APC UPS, the PDF doesn't define it with Coil/discreteinput/inputregister.
It refers to Modicon standard. Could someone plase help me with a couple of JSON mapper examples so that I understand how it should be set up?
The registers are in this PDF:
http://www.apc.com/salestools/LFLG-A32FW..._R1_EN.pdf
Regards!
Hmm.. am I correct that 4000 is Holding register?
And 40001, is Holding register adress 1 (0).
Within this adress, there are 16 bits with values?
Would this be correct for bit 6 in 40003? Then I just repeat the whole row for each bit I want to read out?
{ "name": "Boost trim reley fault", "bus_datatype": "bool", "type": "register", "address": 2, "writable": 0, "value_bitmask": 0x40 },
bit 0 = 0x1
bit 1 = 0x2
bit 2 = 0x4
bit 3 = 0x8
bit 4 = 0x10
bit 5 = 0x20
bit 6 = 0x40
bit 7 = 0x80
bit 8 = 0x100
bit 9 = 0x200
bit A = 0x400
bit B = 0x800
bit C = 0x1000
bit D = 0x2000
bit E = 0x4000
bit F = 0x8000
I'm trying to understand the modbus registers of this APC UPS, the PDF doesn't define it with Coil/discreteinput/inputregister.
It refers to Modicon standard. Could someone plase help me with a couple of JSON mapper examples so that I understand how it should be set up?
The registers are in this PDF:
http://www.apc.com/salestools/LFLG-A32FW..._R1_EN.pdf
Regards!
Hmm.. am I correct that 4000 is Holding register?
And 40001, is Holding register adress 1 (0).
Within this adress, there are 16 bits with values?
Would this be correct for bit 6 in 40003? Then I just repeat the whole row for each bit I want to read out?
{ "name": "Boost trim reley fault", "bus_datatype": "bool", "type": "register", "address": 2, "writable": 0, "value_bitmask": 0x40 },
bit 0 = 0x1
bit 1 = 0x2
bit 2 = 0x4
bit 3 = 0x8
bit 4 = 0x10
bit 5 = 0x20
bit 6 = 0x40
bit 7 = 0x80
bit 8 = 0x100
bit 9 = 0x200
bit A = 0x400
bit B = 0x800
bit C = 0x1000
bit D = 0x2000
bit E = 0x4000
bit F = 0x8000