Button Commands; Button Query Commands; Ani - AMX MIO-R4 Instruction Manual

Hide thumbs Also See for MIO-R4:
Table of Contents

Advertisement

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 f irst be def ined 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 Query Commands

Button Query commands reply back with a custom event. Each button/state combination has one custom event. Each query is
assigned a unique custom event type. The following example is for debug purposes only:
NetLinx Example: CUSTOM_EVENT[device, Address, type]
DEFINE_EVENT
CUSTOM_EVENT[TP,529,1001]
CUSTOM_EVENT[TP,529,1002]
CUSTOM_EVENT[TP,529,1003]
CUSTOM_EVENT[TP,529,1004]
CUSTOM_EVENT[TP,529,1005]
CUSTOM_EVENT[TP,529,1006]
CUSTOM_EVENT[TP,529,1007]
CUSTOM_EVENT[TP,529,1008]
CUSTOM_EVENT[TP,529,1009]
CUSTOM_EVENT[TP,529,1010]
CUSTOM_EVENT[TP,529,1011]
CUSTOM_EVENT[TP,529,1012]
CUSTOM_EVENT[TP,529,1013]
CUSTOM_EVENT[TP,529,1014]
CUSTOM_EVENT[TP,529,1015]
{
SEND_STRING 0,"'ButtonGet Id=',ITOA(CUSTOM.ID),' Type=',ITOA(CUSTOM.TYPE)"
SEND_STRING 0,"'Flag
SEND_STRING 0,"'VALUE1 =',ITOA(CUSTOM.VALUE1)"
SEND_STRING 0,"'VALUE2 =',ITOA(CUSTOM.VALUE2)"
SEND_STRING 0,"'VALUE3 =',ITOA(CUSTOM.VALUE3)"
SEND_STRING 0,"'TEXT
SEND_STRING 0,"'TEXT LENGTH =',ITOA(LENGTH_STRING(CUSTOM.TEXT))"
}
All custom events have the following 6 fields:
Field
Uint Flag
slong value1
slong value2
slong value3
string text
text length
These fields are populated differently for each query command. The Encode field is not used in any command.
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'"
Mio Modero R-4 Remote - Instruction Manual
// Text
// Bitmap
// Icon
// Text Justification
// Bitmap Justification
// Icon Justification
// Font
// Text Effect Name
// Text Effect Color
// Word Wrap
// ON state Border Color
// ON state Fill Color
// ON state Text Color
// Border Name
// Opacity
=',ITOA(CUSTOM.FLAG)"
=',CUSTOM.TEXT"
Description
0 means text is a standard string, 1 means Unicode encoded string
button state number
actual length of string (this is not encoded size)
index of first character (usually 1 or same as optional index)
the text from the button
button text length
Runs a button animation at text range 500 from state 1 to state 25 for 10 second.
SEND_COMMANDs
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mio-rcc-kit

Table of Contents