Issue
Is there an I/A Series G3 Modbus object that converts a PM820 three register date and time format value?
Environment
I/A Series G3 - all versions
Cause
The Schneider Electric (Square D) PM820 Power Meter provides date and time in a 3 register (6 byte) compressed format. The three registers provide a single timestamp consisting of month, day, year, hour, minute, second. For example, if the date was 01/25/00 at 11:06:59, the Hex values would be 0119, 640B, 063B.
Hexadecimal | High Byte | Low Byte |
---|---|---|
0119 | 01 = month | 19 = day |
640B | 64 = year | 0B = hour |
063B | 06 = minute | 3B = seconds |
Note: Date format is a 3 register (6 byte) compressed format. Year 2001 is represented as 101 for the year value.
Resolution
Program object PM_ConvertDateTime.bog decodes and converts the register values to date and time. The object will split the bytes and decode to individual outputs as well as provide a dateTime output. Connect the three sequential registers to in, in1, and in2.
Download object: PM_ConvertDateTime.bog