Command and Response Formats
Frame 1
@
0
0
W
Node
No.
Frame 3
One word of data
Data from the same word is not divided.
FCS (Frame Check
Sequence)
Precautions for Long Transmissions
When dividing commands such as WR, WL, WC, or WD that execute write
operations, be careful not to divide into separate frames data that is to be writ-
ten into a single word. As shown in the illustration below, be sure to divide
frames so that they coincide with the divisions between words.
D
Data
Header
code
Data
When a frame is transmitted, an FCS is placed just before the delimiter or ter-
minator in order to check whether any data error has been generated. The
FCS is 8-bit data converted into two ASCII characters. The 8-bit data is the
result of an EXCLUSIVE OR performed on the data from the beginning of the
frame until the end of the text in that frame (i.e., just before the FCS). Calcu-
lating the FCS each time a frame is received and checking the result against
the FCS that is included in the frame makes it possible to check for data
errors in the frame.
@
1
0
Node No. Header code
ASCII code
@
40
1
31
0
30
R
52
1
31
Calculation
result
One word of data
Data from the same word is not divided.
FCS
Terminator
R
R
0
0
Text
FCS calculation range
0100
0000
XOR
0011
0001
XOR
0011
0000
XOR
0101
0010
0011
0001
0100
0010
↓
↓
Converted to hexadecimal.
4
2
Handled as ASCII characters.
Section 6-4
FCS
*
↵
0
1
4
2
FCS
↵
Delimiter
*
↵
Terminator
445
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?