Programming
45
AXB-TPI/3 Touch Panel Interface 3
System Send_Commands (Cont.)
TPAGEON
Turn On page
tracking.
This command turns On page tracking, whereby when the page or popups change, a
string is sent to the Master. This string may be captured with a CREATE_BUFFER
command for one panel and sent directly to another panel.
Syntax:
"'TPAGEON'"
Example:
SEND_COMMAND Panel,"'TPAGEON'"
DEFINE_DEVICE
TP1 = 128 (*AMX Touch Panel*)
TP2 = 129 (*AMX Touch Panel*)
DEFINE_VARIABLE
TP1_BUFFER[100] (*Buffer for TP1*)
TP2_BUFFER[100] (*Buffer for TP2*)
TRASH[50] (*For Parsing Above*)
DEFINE_START
CREATE_BUFFER TP1,TP1_BUFFER
CREATE_BUFFER TP2,TP2_BUFFER
SEND_COMMAND TP1,'TPAGEON'
SEND_COMMAND TP2,'TPAGEON'
DEFINE_PROGRAM
(* PAGE TRACKING ROUTINE *)
IF(LENGTH_STRING(TP1_BUFFER))
{
IF(FIND_STRING(TP1_BUFFER,'PAGE-',1))
{
TRASH=REMOVE_STRING(TP1_BUFFER,'PAGE-',1)
SEND_COMMAND TP2,"'PAGE-',TP1_BUFFER"
CLEAR_BUFFER TP1_BUFFER
}
IF((FIND_STRING(TP1_BUFFER,'PPON-',1)) OR(FIND_STRING(TP1_BUFFER,
'PPOF-',1)))
{
SEND_COMMAND TP2,TP1_BUFFER
CLEAR_BUFFER TP1_BUFFER
}
}
IF(LENGTH_STRING(TP2_BUFFER))
{
IF(FIND_STRING(TP2_BUFFER,'PAGE-',1))
{
TRASH=REMOVE_STRING(TP2_BUFFER,'PAGE-',1)
SEND_COMMAND TP1,"'PAGE-',TP2_BUFFER"
CLEAR_BUFFER TP2_BUFFER
}
IF((FIND_STRING(TP1_BUFFER,'PPON-',1)) OR
(FIND_STRING(TP1_BUFFER,'PPOF-',1)))
{
SEND_COMMAND TP1,TP2_BUFFER
CLEAR_BUFFER TP2_BUFFER
}
}
(* The command string is sent to the Controller in the ’PAGE-(page name)’ or ’PPON/
PPOF-(page name)’ format. The string is captured in the buffer for one panel and sent to
the other panel. If panels are combined using the DEFINE_COMBINE statement, the rou-
tine needs to be written only once, and the command is sent back to the same panel. *)
(* END OF PAGE TRACKING ROUTINE *)
Содержание AXB-TPI/3
Страница 1: ...instruction manual Touch Panels and Accessories AXB TPI 3 Touch Panel Interface 3 Firmware version G3 ...
Страница 6: ...iv AXB TPI 3 Touch Panel Interface 3 Table of Contents ...
Страница 32: ...TPI Configuration and Usage 26 AXB TPI 3 Touch Panel Interface 3 ...
Страница 72: ...Programming 66 AXB TPI 3 Touch Panel Interface 3 ...
Страница 79: ...Upgrading the Firmware 73 AXB TPI 3 Touch Panel Interface 3 9 Press F10 to exit the SoftROM program ...
Страница 80: ...Upgrading the Firmware 74 AXB TPI 3 Touch Panel Interface 3 ...
Страница 84: ...Troubleshooting 78 AXB TPI 3 Touch Panel Interface ...
Страница 87: ...Appendix 81 AXB TPI 3 Touch Panel Interface ...