3-8. flag query (20dh) – IAI America TTA User Manual
Page 22
-22/85-
4-3-8.
Flag Query (20DH)
Function: Query flags.
Data name
Data range (value)
Data size
[bytes]
Cumulative
bytes [bytes]
Endian Sign
extension
Unit
Description Remarks
Big Little Yes No
Command
Header '!'
1
1
Station 'XX(h)'
2
3
Message ID
'20D(h)'
3
6
Program number
'XX(h)'
2
8
‘00(h)’ in the case of global flag specification
Query start flag
number
'XXXX(h)' 4 12
Be sure to specify “Category head flag number +
Multiple of 8.”
Number of query
flags
'XXXX(h)' 4 16
The number of flags will be limited based on the
send/receive buffers.
SC 'XX(h)'
2
18
CR 0Dh
1
19
LF 0Ah
1
20
Normal response
Header '#'
1
1
Station 'XX(h)'
2
3
Message ID
'20D(h)'
3
6
Program number
'XX(h)'
2
8
‘00(h)’ in the case of global flag specification
Response start flag
number
'XXXX(h)' 4 12
Number of response
flags
'XXXX(h)' 4 16
The number of flags will be limited based on the
send/receive buffers.
Flag data (*1)
'XX(h)'
2
18
8 bits from the head flag.
Remaining flag data
Data indicated by *1
for the number of
remaining data
MAX
16382
MAX
16400
Remaining flag data = 2 bytes x (Max 8192 – 1) =
16382 bytes
SC 'XX(h)'
2
MAX
16402
CR 0Dh
1
MAX
16403
LF 0Ah
1
MAX
16404
Error
respon
se
Error response
format
Refer to the error
response format.
10 10
(Note 1) Add H (or h) at the end of each data expressed in hexadecimal notation. If there is no H or h at the end, the data is considered a decimal.
(Note 2) Data enclosed in single quotation marks indicates an ASCII code. Data is a hexadecimal ASCII code if (h) is added before the closing quotation mark, or a decimal ASCII code if (d) is
added before the closing quotation mark.