Delta AS Series Programming Manual page 913

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
LRC check code: 16#01+16#03+16#21+16#01+16#00+16#06=16#2C
Additional remarks
1.
The following table lists the format of the communication data in the ASCII mode.
STX
Address Hi
Address Lo
Function Hi
Function Lo
_6
DATA(n-1)
.......
DATA 0
LRC CHK Hi
LRC CHK Lo
END Hi
END Lo
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 - 6 3 4
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.
':'
The start-of-text character is ':' (16#3A).
' 0 '
Communication address:
The 8-bit address is composed of two ASCII codes.
' 1 '
' 0 '
Function code:
The 8-bit function code is composed of two ASCII codes.
' 3 '
' 2 '
Data: The n×8-bit data is composed of 2n ASCII codes.
' 1 '
' 0 '
' 2 '
' 0 '
' 0 '
' 0 '
' 2 '
' D '
LRC check code:
The 8-bit check code is composed of two ASCII codes.
' 7 '
CR
End-of-text character:
END Hi=CR (16#0D), END Lo=LF (16#0A)
LF

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents