![AMX Modero G4 Instruction Manual Download Page 73](http://html1.mh-extra.com/html/amx/modero-g4/modero-g4_instruction-manual_2939252073.webp)
Programming
63
Modero G4 Touch Panels - Configuration and Programming
“^” Button Commands
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 -
Panel
is used in place of these values).
Variable text ranges
allow you to target 1 or more variable text channels in a single command.
Button State ranges
allow you to target 1 or more states of a variable text button with a single command.
“.”
Character is used for the 'through' notation, also the “
&
” character is used for the 'And' notation.
These commands are case-insensitive
"^" 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.
animation, along with available origin values =
Fade Center: Center
Slide: Top, Left, Right (default), Bottom
SlideBounce: Top, Left, Right (default), Bottom
cntrDrFade: Top, Left, Right (default), Bottom
doorFade: Top, Left, Right (default), Bottom
blkGlass: Left, Right (default)
pgCurl: LL, UL, LR (default), UR
zoomIn: Center
zoomOut: Center
implode: Center
explode: Center
spinIn: Center
spinOut: Center
waves: Center
flipCard: Top, Left, Right (default), Bottom
slats: Top, Left, Right (default), Bottom
squish: Top, Left, Right (default), Bottom
tumble: LL, UL, LR (default), UR
wipe: Top, Left, Right (default), Bottom, LL, UL, LR,UR
time = transition time in tenths of a second (from 3 to 30 with 15 being the default)
Examples:
SEND COMMAND Panel,"'^APF-400,Stan,Main Page'"
Assigns a button to a standard page flip with page name 'Main Page'.
SEND COMMAND Panle,"'^APF-400,StanAni,Main Page,Slide,Left,10'"