-207-
3.5 CHK (check sum)
ASCII mode:
ASCII mode adopt LRC (Longitudinal Redundancy Check) check sum. The LRC
check sum is ADR1 to the last data content and the results is 256 as one unit . the
excess parts removes , (For example , the receiving results is hexadecimal 128H
only take 28H), Then calculate the two times complement and the getting result is
LRC check sum.
For example, the first example of inquiry information check sum: 01H +03 H +21
H+02 H+00 H+02 H = 29H, and then take 2's complement = D7H.
RTU mode
CRC (Cyclical Redundancy Check) is calculated by the following steps:
Step 1: Load a 16-bit register (called CRC register) with FFFFH.
Step 2: The first byte of the command message and 16-bit CRC make low byte
XOR arithmetic .
Step 3: Shift the CRC register one bit to the right with MSB zero filling. Extract and
examine the LSB.
Step 4: If the LSB of CRC register is 0, repeat step 3, else XOR or the CRC register
with the polynomial value A001H.
Step 5: Repeat step 3 and 4 until eight shifts have been performed. When this is
done, a complete 8-bit byte will have been processed.
Step 6: Repeat steps 2 to 5 for the next 8-bit byte of the command message.
Continue doing this until all bytes have been processed. The final contents of
the CRC register is the CRC value. When transmitting the CRC value in the
message, the upper and lower bytes of the CRC value must be swapped. i.e. the
lower order byte will be transmitted first.
The following is an example of CRC generation using C language. The function
takes two arguments:
Unsigned char* data
←
a pointer to the message
Unsigned char length
←
the quantity of bytes in the message. The function returns
the CRC value as a type of unsigned int.
Summary of Contents for ZVF300H
Page 2: ......
Page 3: ...Software Version V3 75 Printing Date 2020 09 ZVF300H ZVF300H ...
Page 4: ...P1 P8 P1 P2 P2 P3 P5 P8 P9 P17 P9 P9 P9 P10 P13 P15 P18 P38 P18 P19 P24 P35 P39 P42 P39 ...
Page 6: ......
Page 7: ......
Page 8: ......
Page 9: ...method ...
Page 10: ...not personnal ...
Page 11: ...suitable ...
Page 12: ......
Page 13: ...Figure 1 5 Three phase AC Power supply ...
Page 15: ...Board ...
Page 16: ...Board ...
Page 17: ...3 Cabinet Body 8 The door of cabinet Board ...
Page 21: ...150 600 50 ...
Page 22: ......
Page 23: ......
Page 24: ......
Page 25: ......
Page 26: ......
Page 27: ...2 ...
Page 28: ......
Page 31: ......
Page 32: ......
Page 33: ...Applicable to model ZVF300H G0R4T2 3R7T2 ZVF300H G0R7T4 7R5T4 ZVF300H P4R0T4 011T4 ZVF300H ...
Page 41: ......
Page 44: ...ZVF300H ZVF300H ...
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ...till ...
Page 49: ...ZVF300H ...
Page 50: ...AO1 ...
Page 51: ...AO1 ...
Page 52: ...AO1 15 ...
Page 53: ...AO1 ...
Page 176: ... 171 ...
Page 177: ... 172 ...
Page 178: ... 173 ...
Page 179: ... 174 ...
Page 180: ... 175 ...
Page 181: ... 176 ...
Page 182: ... 177 ...
Page 183: ... 178 ...
Page 184: ... 179 ...
Page 185: ... 180 ...
Page 186: ... 181 ...
Page 191: ... 186 ...
Page 192: ... 187 ZVF300H G132 P160T4 ...
Page 195: ... 190 ...
Page 196: ... 191 ...
Page 197: ... 192 ...
Page 198: ... 193 ...
Page 199: ... 194 ...
Page 200: ... 195 ...
Page 201: ... 196 ...
Page 202: ... 197 ...
Page 205: ... 200 8 E 1 8 O 1 Communication data structures Communication data format box ASCII mode ...
Page 208: ... 203 RTU mode ...
Page 211: ... 206 ...
Page 214: ... 209 3 6 The definition of communication of Parameter address ...
Page 215: ... 210 Table 3 1 Table 3 2 ...
Page 216: ... 211 Appendix Table 3 1 Data and fault type in 5000H ...
Page 218: ... 213 Appendix Table 3 2 Data and fault type in 5001H ...
Page 219: ... 214 ...