DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming PLC → PC “ 01 03 10 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00 08 72 98” Feedback message: 4.3.3 CRC CHK (check sum) The CRC Check starts from “Slave Address” and ends in “The last data content.” Calculation of CRC: Step 1 : Set the 16-bit register (CRC register) = FFFFH. Step 2 : Operate XOR on the first 8-bit message (Address) and the lower 8 bits of CRC register. Store the result in the CRC register Step 3 : Right shift CRC register for a bit and fill “0” into the highest bit. Step 4 : Check the lowest bit (bit 0) of the shifted value.
If bit 0 is 0, fill in the new value obtained at step 3 to CRC register; if bit 0 is NOT 0, operate XOR on A001H and the shifted value and store the result in the CRC register. Step 5 : Repeat step 3 – 4 to finish all operation on all the 8 bits. Step 6 : Repeat step 2 – 5 until the operation of all the messages are completed.
The final value 4-8 Field Name Example (Hex) START No data input ≥ 10 ms Slave Address 01 Command code 03 Bytes Count 10 Data Hi (T20) 00 Data Lo (T20) 01 Data Hi (T21) 00 Data Lo (T21) 02 Data Hi (T22) 00 Data Lo (T22) 03 Data Hi (T23) 00 Data Lo (T23) 04 Data Hi (T24) 00 Data Lo (T24) 05 Data Hi (T25) 00 Data Lo (T25) 06 Data Hi (T26) 00 Data Lo (T26) 07 Data Hi (T27) 00 Data Lo (T27) 08 CRC CHK Low 72 CRC CHK High 98 END No data input ≥ 10 ms