Omron C200HX Operation Manual page 445

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

Host Link Communications
Response Frame Format
1
0
x 10
x 10
@
Node no.
FCS (Frame Check Sequence) When a frame is transmitted, an FCS code is placed just before the delimiter or
The response from the PC is returned in the format shown below. Prepare a pro-
gram so that the response data can be interpreted and processed.
1
0
x 16
x 16
Header
End code
code
The header code and text depend on the Host Link command that was received.
The end code indicates the completion status of the command (e.g., whether or
not an error has occurred).
When the response is longer than 131 characters, it will be divided into more
than one frame. A carriage return delimiter (↵, CHR$(13)) instead of a terminator
will automatically be set at the end of the frame. A terminator will be set at the end
of the last frame.
Item
@
An "@" symbol is placed at the beginning of every response.
Node no.
The PC's node number set in DM 6648 of the PC Setup.
Header code
The 2-character command code is returned.
Text
The results of the command are returned.
FCS
The 2-character Frame Check Sequence code is returned.
Terminator
Two characters, "" and the carriage return (CHR$(13)) indicate the
end of the response.
terminator in order to check whether an error has occurred in the transmission.
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). Calculating
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
R
Header code
Node no.
ASCII code
@
40
1
31
0
30
R
52
1
31
Calculation
result
Text
Function
R
0
0
Text
FCS calculation range
0100
0000
EOR
0011
0001
EOR
0011
0000
EOR
0101
0010
0011
0001
0100
0010
i
i
Converted to hexadecimal.
4
2
Handled as ASCII characters.
Section 8-2

FCS
Terminator

0
1
4
2
FCS
Terminator
427

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents