Programming the Mio R-4
“^” Button Commands
These Button Commands are used in the NetLinx protocol and are case insensitive.
All commands that begin with "^" have the capability of assigning a variable text address range and button state range.
A device must first be defined in the NetLinx programming language with values for the Device: Port: System (in
all programming examples - Remote is used in place of these values).
Variable text ranges allow you to target one or more variable text channels in a single command.
Button State ranges allow you to target one or more states of a variable text button with a single command.
The “.” Character is used for the 'through' notation, also the “&” character is used for the 'And' notation.
"^" Button Commands with Embedded Codes
^BMF
(Cont.)
• ’%GD<bargraph ramp down>’ = Set the bargraph ramp down time in 1/10 second.
•
• ’%GG<bargraph drag increment> = Set the bargraph drag increment. Refer to the ^GDI command on
page 49 for more information.
• ’%OT<feedback type>’ = Set the Feedback (Output) Type to one of the following: None, Channel,Invert,
ON (Always ON), Momentary, or Blink.
• ’%SM’ = Submit a text for text area button.
• ’%SF<1 or 0>’ = Set the focus for text area button.
• ’%OP<0-255>’ = Set the button opacity to either Invisible (value=0) or Opaque (value=255).
• ’%OP#<00-FF>’ = Set the button opacity to either Invisible (value=00) or Opaque (value=FF).
• ’%UN<Unicode text>’ = Set the Unicode text. See the^UNI section on page 54 for the text format.
• ’%EF<text effect name>’ = Set the text effect.
• ’%EC<text effect color>’ = Set the text effect color.
• ’%ML<max length>’ = Set the maximum length of a text area.
• ’%MK<input mask>’ = Set the input mask of a text area.
Example:
SEND_COMMAND Device,"'^BMF-500,1,%B10%CFRed%CB Blue %CTBlack%Ptest.png'"
Sets the button OFF state as well as the Border, Fill Color, Border Color, Text Color, and Bitmap.
"^" Button Commands
^ANI Run a button animation (in 1/10 second).
Syntax:
"'^ANI-<vt addr range>,<start state>,<end state>,<time>'"
Variable:
• 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.