Hello, I am trying to log the voltage current and power data from the m850 power meter via rs485 with a dt80 logger. I found some code examples and put the following code together. I have linked the manual with the modbus register list. Can any one say if this should work? Any Help most welcome
https://www.hobut.co.uk/wp-content/uploads/2022/02/M850-LTHN-RS-PO-User-manual-rev-4-SP-compressed-10-10-14.pdf
Begin’M850PM’
‘=================================================
‘
‘ DT80 code to read a Hobut M850 power meter
‘ via RS485 Modbus
‘
‘ 1 Phase 2 wire configuration.
‘ Reads all Modbus type 3 registers.
‘
‘ This code used block reads of Modbus registers
‘ - Block reads are in groups of 10 for readability
‘ - Block reading reduces reading times of registers
‘ -Channel Variables
‘ ----- 4CV = Voltage
‘ ----- 7CV = Current
‘ ----- 10CV = Watts
‘=================================================
‘ Profile settings for Modbus Master
‘ Note: Check port settings and set profile to match.
Profile SerSen_Port Mode=RS485
Profile SerSen_Port Function=Modbus_Master
Profile SerSen_Port BPS=9600
Profile SerSen_Port Data_Bits=8
Profile SerSen_Port Stop_Bits=1
Profile SerSen_Port Parity=None
Profile SerSen_Port Flow=None
RA”PwrMtr”(“B:”,Data:Ov:7D)1M
‘Block read registers 1 to 10 and save to channel variable 1 to 10.
1Modbus(Ad1,R3:1,MBF,MES,TO1,RT2,=1..10CV,W)
1CV(“Not Used~V”,FF6)
2CV(“Not Used~V”,FF6)
3CV(“Not Used~V”,FF6)
4CV(“Voltage Phase 1~V”,FF6)
5CV(“Not Used~A”,FF6)
6CV(“Not Used~A”,FF6)
7CV(“Current Phase 1~A”,FF6)
8CV(“Not Used”,FF6)
9CV(“Not Used~W”,FF6)
10CV(“Watts Phase 1~W”,FF6)
End
Hello, I am trying to log the voltage current and power data from the m850 power meter via rs485 with a dt80 logger. I found some code examples and put the following code together. I have linked the manual with the modbus register list. Can any one say if this should work? Any Help most welcome
https://www.hobut.co.uk/wp-content/uploads/2022/02/M850-LTHN-RS-PO-User-manual-rev-4-SP-compressed-10-10-14.pdf
Begin’M850PM’
‘=================================================
‘
‘ DT80 code to read a Hobut M850 power meter
‘ via RS485 Modbus
‘
‘ 1 Phase 2 wire configuration.
‘ Reads all Modbus type 3 registers.
‘
‘ This code used block reads of Modbus registers
‘ - Block reads are in groups of 10 for readability
‘ - Block reading reduces reading times of registers
‘ -Channel Variables
‘ ----- 4CV = Voltage
‘ ----- 7CV = Current
‘ ----- 10CV = Watts
‘=================================================
‘ Profile settings for Modbus Master
‘ Note: Check port settings and set profile to match.
Profile SerSen_Port Mode=RS485
Profile SerSen_Port Function=Modbus_Master
Profile SerSen_Port BPS=9600
Profile SerSen_Port Data_Bits=8
Profile SerSen_Port Stop_Bits=1
Profile SerSen_Port Parity=None
Profile SerSen_Port Flow=None
RA”PwrMtr”(“B:”,Data:Ov:7D)1M
‘Block read registers 1 to 10 and save to channel variable 1 to 10.
1Modbus(Ad1,R3:1,MBF,MES,TO1,RT2,=1..10CV,W)
1CV(“Not Used~V”,FF6)
2CV(“Not Used~V”,FF6)
3CV(“Not Used~V”,FF6)
4CV(“Voltage Phase 1~V”,FF6)
5CV(“Not Used~A”,FF6)
6CV(“Not Used~A”,FF6)
7CV(“Current Phase 1~A”,FF6)
8CV(“Not Used”,FF6)
9CV(“Not Used~W”,FF6)
10CV(“Watts Phase 1~W”,FF6)
End