Programming
66
Modero G4 Touch Panels - Configuration & Programming Manual
Button Commands (Cont.)
?BOP
Get the overall button opacity.
•
Syntax
:
"'?BOP-<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
1015:
Flag - Zero
Value1 - Button state number
Value2 - Opacity
Value3 - Zero
Text - Blank
Text length - Zero
•
Example
:
SEND COMMAND Panel,"'?BOP-529,1'"
Gets the button 'OFF state' opacity information.
The result sent to the Master would be:
ButtonGet Id = 529 Type = 1015
Flag = 0
VALUE1 = 1
VALUE2 = 200
VALUE3 = 0
TEXT =
TEXT LENGTH = 0
^BOR
Set a border to a specific border style associated with a border value for those buttons with a defined address range.Sets
the border by name (AMX Elite) to those buttons with the variable text range of 500-504 & 510-515. The border style is
available through the TPDesign4 border-style drop-down list. Refer to theTPD4 Border Styles by Name table on page 102
for more information.
•
Syntax
:
"'^BOR-<vt addr range>,<border style name or border value>'"
•
Variables
:
variable text address range = 1 - 4000.
border style name = Refer to the Border Styles and Programming Numbers table on page 101.
border value = 0 - 41.
•
Example
:
SEND_COMMAND Panel,"'^BOR-500.504&510.515,10'"
Sets the border by number (#10) to those buttons with the variable text range of 500-504 & 510-515.
^BOS
Set the button to display either a Video or Non-Video window.
•
Syntax
:
"'^BOS-<vt addr range>,<button states range>,<video state>'"
•
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).
video state = Video Off = 0 and Video On = 1.
•
Example
:
SEND_COMMAND Panel,"'^BOS-500,1,1'"
Sets the button to display video.
^BPP
Set or clear the protected page flip flag of a button. Sets the button to protected page flip flag 1 (sets it to password 1).
• Syntax:
"'^BPP-<vt addr range>,<protected page flip flag value>'"
• Variables:
variable text address range = 1 - 4000.
protected page flip flag value range = 0 - 4 (
0 clears the flag
).
• Example:
SEND_COMMAND Panel,"'^BPP-500,1'"