10 maestro user program priority – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 106

Maestro
Software Manual
MAXL Program Language
MAN-MASSW (Ver. Q)
5.10
Maestro User Program Priority
Every Maestro User Program has an assigned priority. By default, each Maestro User
Program is assigned the Normal (2) priority. A Maestro User Program can have one of
the priority values described in Table
Note:
This feature does not impact the compatibility of previous
Maestro versions. In software versions that include the
Maestro User Program Priority feature, by default, all
programs are assigned Normal priority.
Table 5-9 Maestro User Program Priorities
Priority Value Description
High 1
The Program is scheduled to run before Programs with
all other priorities.
Normal 2
The Program is scheduled to run before Programs with
Low priority.
Low 3
The Program is scheduled to run after Programs with all
other priorities.
The User can set the Maestro Program Priority by calling the priority(int val) method,
where val is the Program Priority value.
If a Maestro User Program with high priority is running, all other programs will be
blocked, unless there is a context switching option in the program that is running. For
example, a call to a wait function or an event that triggers an until condition.
All programs can be interrupted by a callback function.
5-44