Programming
63
Modero S Series Touch Panels - Configuration & Programming Manual
Button Commands (Cont.)
^GSN Change the bargraph slider name or joystick cursor name. Slider names and cursor names can be found in the TPDesign4
slider name and cursor drop-down list.
•Syntax:
"'^GSN-<vt addr range>,<bargraph slider name>'"
•Variables:
variable text address range = 1 - 4000.
bargraph slider name = See table below.
•Example:
SEND_COMMAND Panel,"'^GSN-500,Ball'"
Changes the bargraph slider name or the Joystick cursor name to ’Ball’.
^ICO Set the icon to a button.
•Syntax:
"'^ICO-<vt addr range>,<button states range>,<icon index>'"
•Variables:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state).
icon index range = 0 - 9900 (a value of 0 is clear).
•Example:
SEND_COMMAND Panel,"'^ICO-500.504&510.515,1&2,1'"
Sets the icon for On and Off states for buttons with variable text ranges of 500-504 & 510-515.
?ICO Get the current icon index.
•Syntax:
"'?ICO-<vt addr range>,<button states range>'"
•Variables:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state).
custom event type 1003:
Flag - Zero
Value1 - Button state number
Value2 - Icon Index
Value3 - Zero
Text - Blank
Text length - Zero
•Example:
SEND COMMAND Panel,"'?ICO-529,1&2'"
Gets the button 'OFF state' icon index information.
The result sent to the Master would be:
ButtonGet Id = 529 Type = 1003
Flag = 0
VALUE1 = 2
VALUE2 = 12
VALUE3 = 0
TEXT =
TEXT LENGTH = 0
Ba rgraph Sli de r Names:
Circle -M
None
Circle -S
Ball
Pre cisio n
Circle -L
Rectangle -L
Re ctan gle - M
Rectan gl e -S
Wind ows Win do ws Acti ve
Joystick Cursor Names:
Ci r cl e
No ne
Cr ossh ai rs
Arrow
Gunsight
Ball
Ha nd M eta l Spi ra l
Target Vi ew Fi nd er