Chapter 7 XGT Dedicated Protocol
7-2
7.1.2 Frame structure
(1) Base format
(a) Request frame (external communication device → XGB)
Header
(ENQ)
Station
number
Command
Command
type
Structurized data area
Tail
(EOT)
Frame check
(BCC)
(b) ACK response frame (XGB → external communication device, when receiving data normally)
Header
(ACK)
Station
number
Command
Command
type
Structurized data area or
Null code
Tail
(ETX)
Frame check
(BCC)
(c) NAK response frame (XGB → Cnet I/F module → external communication device when receiving
data abnormally)
Header
(NAK)
Station
number
Command
Command
type
Error code ( ASCII 4 Byte )
Tail
(ETX)
Frame check
(BCC)
1) The numerical data of all frames are ASCII codes equal to hexadecimal value, if there’s no clear
statement.
The terms in hexadecimal are as follows.
Station No.
When the main command is R(r) or W (w) and the command type is numerical (means a data type)
All of the terms indicating size of all data in the Formatted data area.
Monitoring registration and command registration number of execution commands.
All contents of data
2) If it is hexadecimal, H is attached in front of the number of frames like H01, H12345, H34, H12,
and H89AB.
3) Available frame length is maximum 256 bytes.
4) Used control codes are as follows.
5) If the command is small letter (r), BCC value is added in check frame. The other side capital
letter (R), BCC value is not added in check frame.
Codes Hex value Name Contents
ENQ H05 Enquire Request frame initial code
ACK H06 Acknowledge
ACK response frame initial code
NAK H15
Not
Acknowledge
NAK response frame initial code
EOT H04 End of Text Request frame ending ASCII code
ETX H03 End Text Response frame ending ASCII code
Note