3 until control statement, 4 trace control statement, 5 reset control statement – ElmoMC Multi-Axis Motion Controller-Maestro User Manual

Page 99: 8 difference between static and dynamic group

Advertising
background image

5.7.3

until control statement

The until keyword suspends the execution of the program until the specified
expression has a false value (0).

Syntax

until(expression)

Example:

function foo()

// do something

……

until(g_var>0) // program wait until g_var >0

end function

5.7.4

TRACE control statement

To send messages from the virtual machine to Elmo Studio uses a program statement
with a TRACE keyword. The Elmo Studio is the standard IDE for development and
debugging of MAXL programs. If Maestro’s virtual machine comes across a statement
with TRACE during debugging MAXL programs, an Elmo Studio output window
appears with a TRACE message.

5.7.5

reset control statement

The reset keyword is used to restart the program. After a program reaches a reset,
program flow will be restarted from the next run function. At the same time the entire
call function stack resets.

5.8

Difference Between Static and Dynamic Group

The

Maestro

supports both static and dynamic group. Table

5-8 below describes the

differences between the two groups.

Table 5-8 Static and Dynamic Groups

Feature

Static Group

Dynamic Group

Definition

Static Group is a group
created only if all nodes of
the group exist

Dynamic Group is created
always independently of the
amount switched-on nodes in
the group.

Size of group

Number of nodes in the
group after its initialization

Number of switching-on nodes
in the group after the Maestro
restarts or performs a Refresh

function call.

Maestro

Software Manual

MAXL Program Language

MAN-MASSW (Ver. Q)

5-37

Advertising