Chapter 7 XGT Dedicated Protocol
7-13
(c) XGB Response format (ACK response)
Format name
Header
Station No.
Command Command type
Tail Frame check
Frame (Example)
ACK H20 W(w) SS ETX BCC
ASCII value H06 H3230 H57(77) H5353 H03
Item Description
BCC
When command is lowercase (r), only one lower byte of the value resulted by
adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and
added to BCC, and sent.
(d) XGB Response format (NAK response)
Format name
Header Station No. Command Command type
Error code
(Hex 2 Byte)
Tail Frame check
Frame (Example)
NAK H20 W(w) SS H4252 ETX BCC
ASCII value H15 H3230 H57(77) H5353 H34323532 H03
Item Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by adding
1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to
BCC, and sent.
Error code
Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to
10.1.4 XGT dedicated communication error codes and countermeasures.
(e) Example
This example supposes that "HFF" is written in M230 of station No. 1.
1) PC request format (PC → XGB)
Format name
Header
Station
No.
Command
Command
type
Number
of blocks
Device
Length
Device Name
Data
Tail
Frame
check
Frame (Example)
ENQ H01 W(w) SS H01 H06 %MW230 H00FF EOT BCC
ASCII value
H05 H3031 H57(77) H5353 H3031 H3036
H254D573233
30
H30304646 H04
2) For ACK response after execution of command (PC ← XGB)
Format name
Header
Station No.
Command
Command type
Tail Frame check
Frame (Example)
ACK H01 W(w) SS ETX BCC
ASCII value
H06 H3031 H57(77) H5353 H03
3) For NAK response after execution of command (PC ← XGB)
Format name
Header
Station
No.
Command
Command type
Error code
Tail Frame check
Frame (Example)
NAK H01 W(w) SS
Error code (2 Byte)
ETX BCC
ASCII value
H15 H3031 H57(77) H5353
Error code (4 Byte)
H03