Module protocol

Module protocol 

Source
Expand description

This module defines the core data structures and traits for the SDM72 Modbus protocol.

It includes definitions for all supported Modbus registers, data types for meter settings and measurements, and helper traits for encoding and decoding Modbus data.

The documentation for this module is based on the “Eastron SDM72D-M-v2 Modbus Protocol” document.

Structs§

Address
Address of the Modbus RTU protocol for the RS485 serial port. The address must be in the range from 1 to 247.
AutoScrollTime
Automatic display scroll time in seconds. The time must be in the range from 0 to 60.
ExportEnergyActive
ExportTotalPowerActive
Frequency
ImportEnergyActive
ImportTotalPowerActive
L1Current
L1PowerActive
L1PowerApparent
L1PowerFactor
L1PowerReactive
L1ToL2Voltage
L1Voltage
L2Current
L2PowerActive
L2PowerApparent
L2PowerFactor
L2PowerReactive
L2ToL3Voltage
L2Voltage
L3Current
L3PowerActive
L3PowerApparent
L3PowerFactor
L3PowerReactive
L3ToL1Voltage
L3Voltage
LtoLAverageVoltage
LtoNAverageCurrent
LtoNAverageVoltage
MeterCode
Meter code SDM72D-M-2 = 0089
NetKwh
NeutralCurrent
Password
Password must be in the range from 0 to 9999.
PulseWidth
Pulse width for the pulse output in milliseconds.
ResetHistoricalData
Reset the historical saved data.
ResettableExportEnergyActive
ResettableImportEnergyActive
ResettableTotalEnergyActive
ResettableTotalEnergyReactive
SerialNumber
SoftwareVersion
The software version showed on display
TotalEnergyActive
TotalEnergyReactive
TotalLineCurrent
TotalPower
TotalPowerApparent
TotalPowerFactor
TotalPowerReactive

Enums§

BacklightTime
Back light time of the display in minutes. The time must be in the range from 1 to 120.
BaudRate
Baud rate of the Modbus RTU protocol for the RS485 serial port. Supported rates are: 1200, 2400, 4800, 9600, 19200
Error
Represents errors that can occur within the SDM72 protocol logic.
KPPA
KPPA (Key Parameter Programming Authorization) write the correct password to get KPPA. This will be required to change the settings.
ParityAndStopBit
Parity and stop bits of the Modbus RTU protocol for the RS485 serial port.
PulseConstant
Pulse constant for the pulse output in impulses per kilo watt hour.
PulseEnergyType
Pulse energy type for the pulse output. This is the value that the pulse output returns.
SystemType
The system (wiring) type.

Traits§

ModbusInputRegister
A trait for Modbus input registers.
ModbusParam
A trait for defining Modbus parameters.

Type Aliases§

Word
16-bit value stored in Modbus register.