Delta AH500 Programming Manual page 580

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
STX
Address Hi
Address Lo
Function Hi
Function Lo
DATA (n-1)
.......
DATA 0
LRC CHK Hi
LRC CHK Lo
END Hi
END Lo
2.
LRC check code: The values starting from the communication address to the data are added
up. The two's complement of the sum gotten 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 - 4 1 2
':'
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 '
' 1 '
' 0 '
' 2 '
Data: The n×8-bit data is composed of 2n ASCII codes.
' 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

Advertisement

Table of Contents
loading

Table of Contents