Chapter 7 XGT Dedicated Protocol
7-7
(c) XGB response format (ACK response)
Format name
Header Station No.
Command Command type
Number
of blocks
Number of
data
data
......
Tail
Frame
check
Ex. of frame ACK H20 R(r) SS H01 H02 HA9F3 ETX BCC
ASCII value H06 H3230 H52(72) H5353 H3031 H3032 H41394633 H04
1 block (max. 16 blocks possible)
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.
Number of
data
Number of data means byte number of hex type, and is converted into ASCII. This
number is determined according to data type (X,B,W) included in device name of
computer request Format.
Number of data in accordance with its data type is as follows:
Data type Available variable Number of data
Bit(X) %(P,M,L,K,F,T,C,D,R,I,Q,W)X 1
Byte(B) %(P,M,L,K,F,T,C,D,R,I,Q,W)B 1
Word(W) %(P,M,L,K,F,T,C,D,R,I,Q,W)W 2
※R area is supported at XBC-DXXXH
Data
In data area, there are the values of hex data converted to ASCII code saved.
▪ Example 1
The fact that number of data is H04 (ASCII code value:H3034) means that there is hex data of 4
bytes in data. Hex data of 4 bytes is converted into ASCII code in data.
▪ Example 2
If number of data is H04 and the data is H12345678, ASCII code converted value of this is "31
32 33 34 35 36 37 38," and this contents is entered in data area. Name directly, highest value is
entered first, lowest value last.
If data type is Bit, data read is indicated by bytes of hex. Namely, if Bit value is 0, it indicated
by H00, and if 1, by H01.
Note