TM8100/TM8200 Computer-Controlled Data Interface (CCDI) Protocol Manual
CCDI
47
© Tait Electronics Limited
April 2007
1.10.6
QUERY_DISPLAY_RESPONSE
Solicited.
The QUERY_DISPLAY_RESPONSE message is sent to the PC in
response to a QUERY 7(display) command (q0270C6).
The QUERY_DISPLAY_RESPONSE message shows the contents of the
control head display.
A QUERY_DISPLAY_RESPONSE message always consists of at least two
progress messages:
■
Start of the query display response
■
End of the query display response.
Between those messages are multiple separate messages given for each
display object (i.e. a text line or an icon).
If the QUERY 7 (display) command is applied before a previous QUERY
7 (display) has been completed (i.e. if the QUERY DISPLAY RESPONSE
“End of Query Display Response” has not been sent to the CCDI port)
then the error “RU not ready” will be returned.
Format
d [SIZE] [PTYPE] [PARA1] [PARA2] [CHECKSUM]
■
‘d’ is sent as a single ASCII character representing the
QUERY_DISPLAY_RESPONSE command.
[PTYPE] is a single-digit character (hexadecimal value) indicating either
start or end of the display response, or representing the display object type:
[PTYPE]
[PARA1]
[PARA2]
Function
0
(Start)
Start of the Query Display response.
F
(End)
0
End of the Query Display response. No error.
1
End of the Query Display response. Refresh disabled.
2
End of the Query Display response. Query Display
busy.
1
(Display string text,
ASCII only)
[X_POSITION]
[Y_POSITION]
[FONT] (9 digits)
variable length
display string
[X_POSITION], = display string x-position
(3 hexadecimal digits)
[Y_POSITION], = display string y-position
(3 hexadecimal digits)
[FONT] = display string font number (3 hexadecimal
digits)
2
(Display icon)
[X_POSITION]
[Y_POSITION]
[FONT]
[ICON_ID]
(11 digits)
[X_POSITION] = displayed icon x-position
(3 hexadecimal digits)
[Y_POSITION] = displayed icon y-position
(3 hexadecimal digits)
[FONT] = display string font number (3 hexadecimal
digits)
[ICON_ID] = display icon ID (2 hexadecimal digits)