Programming
77
Modero G4 Touch Panels - Configuration and Programming
"^" 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.
^IRM
Pulse the given IR channel for onTime in tenths of seconds. Delay offTime in tenths of a second
before the next IR pulse is allowed. ^IRM allows the command itself to specify the port number. ^IRM
is needed because commands programmed on the panel itself can only be sent to a single port
number. (currently this is defined as 1 only).
Note:
The port number of the IR will be the port number assigned in TPD4.
Syntax:
"'^IRM-<port>,<channel>,<onTime>,<offTime>'"
Variables:
port = User-defined port on the device (panel).
channel = 1 - 255 (channel to pulse).
onTime = 1/10th of a second.
offTime = 1/10th of a second.
Example:
SEND_COMMAND Panel,"'^IRM-10,5, 20, 10'"
Sets the port 10 IR channel 5 on time to 1 second and off time to 2 seconds.
Bargraph Slider Names:
Circle -M
None
Circle -S
Ball
Precision
Circle -L
Rectangle -L
Rectangle -M
Rectangle -S
Windows
Windows Active
Joystick Cursor Names:
Circle
None
Crosshairs
Arrow
Gunsight
Ball
Hand
Metal
Spiral
Target
View Finder