
Programming
50
Modero S Series Touch Panels - Configuration & Programming Manual
Button Commands
^ANI
Run a button animation (in 1/10 second).
• Syntax:
"'^ANI-<vt addr range>,<start state>,<end state>,<time>'"
• Variables:
variable text address range = 1 - 4000.
start state = Beginning of button state (0= current state).
end state = End of button state.
time = In 1/10 second intervals.
• Example:
SEND_COMMAND Panel,"'^ANI-500,1,25,100'"
Runs a button animation at text range 500 from state 1 to state 25 for 10 second.
^APF
Add page flip action to a button if it does not already exist.
• Syntax:
"'^APF-<vt addr range>,<page flip action>,<page name>'"
• Variables:
variable text address range = 1 - 4000.
page flip action =
Stan[dardPage] - Flip to standard page
StanAni[mated] - Flip to standard page using an animated transition (3 extra parameters)
Prev[iousPage] - Flip to previous page
Show[Popup] - Show Popup page
Hide[Popup] - Hide Popup page
Togg[lePopup] - Toggle popup state
ClearG[roup] - Clear popup page group from all pages
ClearP[age] - Clear all popup pages from a page with the specified page name
ClearA[ll] - Clear all popup pages from all pages
page name = 1 - 50 ASCII characters.
• Example:
SEND COMMAND Panel,"'^APF-400,Stan,Main Page'"
Assigns a button to a standard page flip with page name 'Main Page'.
^BAT
Append non-unicode text.
• Syntax:
"'^BAT-<vt addr range>,<button states range>,<new text>'"
• 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).
new text = 1 - 50 ASCII characters.
• Example:
SEND_COMMAND Panel,"'^BAT-520,1,Enter City'"
Appends the text 'Enter City' to the button’s OFF state.
^BAU
Append unicode text. Same format as ^UNI.
• Syntax:
"'^BAU-<vt addr range>,<button states range>,<unicode text>'"
• 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).
unicode text = 1 - 50 ASCII characters. Unicode characters must be entered in Hex format.
• Example:
SEND_COMMAND Panel,"'^BAU-520,1,00770062'"
Appends Unicode text '00770062' to the button’s OFF state.
^BCB
Set the border color to the specified color. This applies
only if
the specified border color is not the same as the current color.
Note: Color can be assigned by color name (without spaces), number or R,G,B value (RRGGBB or RRGGBBAA).
• Syntax:
"'^BCB-<vt addr range>,<button states range>,<color value>'"
• 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).
color value = Refer to the RGB Triplets and Names For Basic 88 Colors table on page 90 for more information.
• Example:
SEND_COMMAND Panel,"'^BCB-500.504&510,1,12'"
Sets the Off state border color to 12 (Yellow). Colors can be set by Color Numbers, Color name, R,G,B, alpha colors
(RRGGBBAA) and R, G & B colors values (RRGGBB).