DVP-ES3 Series Programming Manual LRC check code: 16#01+16#03+16#21+16#01+16#00+16#06=16#2C The two’s complement of 16#2C is 16#D4. ‘D’ (16#44) is stored in the low 8-bit in D113, and ‘4’ (16#34) is stored in the low 8-bit in D114. Additional remarks 1. The following table lists the format of the communication data in the ASCII mode. 2. LRC check code: The instruction adds up the values starting from the communication address to the data, then the instruction calculates the two’s complement of the sum that is the LRC check code. Example 16#01+16#03+16#21+16#02+16#00+16#02=16#29 The two’s complement of 16#29 is 16#D7. 6-528 STX ‘:’ The start-of-text character is ‘:’ (16#3A).
Address Hi ‘ 0 ’ Communication address: The 8-bit address is composed of two ASCII codes. Address Lo ‘ 1 ’ Function Hi ‘ 0 ’ Function code: The 8-bit function code is composed of two ASCII codes. Function Lo ‘ 3 ’ ‘ 2 ’ Data: The n×8-bit data is composed of 2n ASCII codes. ‘ 1 ’ ‘ 0 ’ DATA(n-1) ‘ 2 ’ ……. ‘ 0 ’ DATA 0 ‘ 0 ’ ‘ 0 ’ ‘ 2 ’ LRC CHK Hi ‘ D ’ LRC check code: The 8-bit check code is composed of two ASCII codes. LRC CHK Lo ‘ 7 ’ END Hi CR End-of-text character: END Hi=CR (16#0D), END Lo=LF (16#0A) END Lo LF 6 _