AMX AXB-TPI/3 Instruction Manual page 71

Touch panel interface
Hide thumbs Also See for AXB-TPI/3:
Table of Contents

Advertisement

Button String Commands (Cont.)
$SC
Send a serial port
send_command
within a panel, as
if sent from
Axcess.
$SP
Send data out
through the serial
port of the source
panel to a
destination panel.
$TO
Send touch
coordinates out
through the
Program port.
WORKING?
Verify the
communication
between touch
panels through
the use of the
on-panel editor.
AXB-TPI/3 Touch Panel Interface 3
Syntax:
"$SC <device offset>,"'<send_command>,<variable
text #>,<data>'""
Variables:
device offset = Device number.
variable text # = The variable text number value on the touch panel.
data = 0 - 59 characters.
Example 1:
SEND COMMAND Panel,"$SC 1,"'@TXT',2,'TEXT'"
The string is sends the command to put text on a button with a variable text value of 2. It is
crucial that all the correct ' and " be used with no spaces after the commas.
You cannot perform ASCII-number conversions within the commands.
Example 2:
SEND COMMAND Panel,"$SC 1,"'SLEEP'"
Sets a touch panel to sleep.
Translates the ¦ and translates it as a carriage return to the next line. Sends data out the
serial port with trailing CR and LF.
Syntax:
"$SP"<data>""
Variables:
data = Serial string command.
Example:
SEND COMMAND Panel,"$SP "CALIBRATE""
Sends the Calibrate command to another panel through the Serial Port.
$SP "$SC 1,"'@TXT',1,'TEST'""
Uses the $SP command to send a Send Command ($SC ***) to another panel through the
Serial Port. This is an on-panel button string that is entered using on-screen keyboard.
Syntax:
"$TO <touch output enabling via the program port>"
Variable:
touch output enabling = 0 (Input Touch Only), 1 (Input and Output Touch), or 2 (Output
Touch Only).
Example:
SEND COMMAND Panel,"$TO 0"
Sets the panel only to input touch.
Responding touch panels tell the sending touch panel to change its Main page to the color
white.
Syntax:
"WORKING?"
Example:
• 10.4" panel serial port is connected to TPI program port.
• 10.4" panel wants to verify communication between the TPI and itself.
• 10.4" panel issues "WORKING?" to its serial port. It will be sent as '$SP "WORKING?".
• TPI receives the command and responds to the 10.4" panel by telling it to set the Main
page background to white.
Programming
65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fg5975

Table of Contents