HI all,
For those who have a CCGX connected to a multiplus/quattro and want to read registers via Modbus TCP and import them to the inputs page of emoncms. I have worked out the code that is required for the config file in the interfacers section of the emonhub.
As @James_Hill mentioned the unit ID must be included as there is multiple unit ID’s/slaves on the Victron VE Bus system. See below.
I wanted the SOC and charge/discharger power feed for the My Solar & Battery app.
[[ModbusTCP]]
Type = EmonModbusTcpInterfacer
[[[init_settings]]]
modbus_IP = 192.168.x.x
modbus_port = 502
[[[runtimesettings]]]
rName = Battery State of Charge (System), Input Voltage Phase 1, Grid Power, Battery Power,
register = 31, 4, 821, 843
nReg = 1,1,1,1
nUnit = 239, 239, 100, 100
rType = uint16, uint16, uint16, int16
nodeId = 27
pubchannels = ToEmonCMS,
interval = 10
[[27]]
nodename = Multiplus
[[[rx]]]
names = Battery State of Charge (System), Input Voltage Phase 1, Grid Power, Battery Power,
datacodes = H,H,h,h
scales = 0.1,0.1,1,1
units = %, V, W, W
Cheers
Gareth