Shorthand variable text commands – AMX 8.5" Color Passive LCD Touch Panels User Manual
Page 40
Programming
36
Color Passive-Matrix LCD Touch Panels
Shorthand Variable Text Commands
The table below lists the shorthand variable text commands you can use with the touch panel. The
shorthand command data is one-byte, non-ASCII format except for pages, passwords, text, and
bitmap names.
Shorthand Variable Text Commands
@BMF
Sets multiple
attributes to a but-
ton, slider, or
gauge.
This command allows you to program up to 12 attributes on one command line.
Syntax:
"’@BMF’,
Variables:
variable text address = 1 - 255
optional data = See below
Optional data:
’%R,
’%B’,
page 26.
’%F’, styles> = See the Font Styles and Programming Numbers table on page 26.
’%T’,
’%P’,
’%I’,
’%J’,
For %C1-%C6, see the Colors and Programming Numbers table on page 26.
’%C1’,
’%C2',
’%C3’,
’%C4’,
’%C5’,
’%C6’,
Example:
SEND_COMMAND TP,"’@BMF’,255,’%T POWER |ON’
’%B’,’4’,’%C1’,’72’"
Sets the text on button 255 to POWER ON (appears on two lines), adds a triple-line bor-
der, and sets the On-state color to White.
@BMP
Adds a bitmap file
to a button.
Bitmap files are imported into TPDesign3; the numbers are assigned by the touch panel
during the download process.
Syntax:
"’@BMP’,
Variables:
variable text address = 1 - 255
bitmap = Bitmap
Example:
SEND_COMMAND TP, "’@BMP’,85,’Bitmap1’"
Adds the Bitmap1 file to button 85.
1
4
7
8
9
6
3
2
5