EV/DV300 Series Power Meter
V:2.0 Revised October 2018
40
The receiving device recalculates a CRC during receipt of the message, and compares the
calculated value to the actual value it received in the CRC field. If the two values are not equal,
an error results.
The CRC is started by first pre-loading a 16-
bit register to all 1’s. Then a process begins of
applying successive 8-bit bytes of the message to the current contents of the register. Only
the eight bits of data in each character are used for generating the CRC. Start and stop bits,
and the 51 EV/DV Series parity bit, do not apply to the CRC. During generation of the CRC,
each 8-bit character is exclusive ORed with the register contents. Then the result is shifted in
the direction of the least significant bit (LSB), with a zero filled into the most significant bit
(MSB) position. The LSB is extracted and examined. If the LSB was a1, the register is then
exclusive ORed with a preset, fixed value. If the LSB was a 0, no exclusive OR takes place. This
process is repeated until eight shifts have been performed. After the last (eighth) shift, the
next 8-bit byte is exclusive ORed with the register current value, and the process repeats for
eight more shifts as described above. The final contents of the register, after all the bytes of
the message have been applied, is the CRC value. When the CRC is appended to the message,
the low-order byte is appended first, followed by the high-order byte.
4.2 Format of Communication
Explanation of frame (Hex)
Table 4.3 Frame example
Addr
Fun
Data
start reg
hi
Data
start reg
lo
Data #of
regs hi
Data #of
regs lo
CRC16
hi
CRC16
lo
06H
03H
00H
00H
00H
21H
84H
65H
In Table 4.3, the meaning of each abbreviated word is,
Addr:
address of slave device
Fun:
Function code
Data start reg hi
Start register address high (high byte)
Data start reg lo
Start register address high (low byte)
Data #of reg hi
Number of register (high byte)
Data #of reg lo
Number of register (low byte)
CRC16 Hi:
CRC (high byte)
CRC16 Lo:
CRC (low byte)
Содержание EV300 Series
Страница 1: ...EV DV300 Series Power Meter Chapter 1 Introduction V 2 0 Revised October 2018 1 Cover page...
Страница 34: ...EV DV300 Series Power Meter Chapter 3 Operation and Setting V 2 0 Revised October 2018 34...
Страница 54: ...EV DV300 Series Power Meter Appendix V 2 0 Revised October 2018 54 Appendix B Ordering Information...
Страница 55: ...EV DV300 Series Power Meter Appendix V 2 0 Revised October 2018 55...