2 return operator, 4 types, 1 fundamental types – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 73: 2 object types, Object types

5.2.3.2.2 return Operator
Issuing a return operator from run is functionally equivalent to using the exit
operator. Consider the following example:
function run()
int
i
…some
code…
if(i>2)
exit
return
end
if
...some
code…
end function
The exit and return statements in the preceding example are functionally identical.
5.2.4
Types
MAXL supports three kinds of object types:
•
are built into the language (such as int and float).
Instances of these fundamental types are called “variables.”
•
are built-in types with encapsulated methods and
properties (such as axis and vector).
•
used for formatting debug messages
5.2.4.1 Fundamental Types
Fundamental types in MAXL are divided into two categories: integer and floating.
The following table explains the restrictions on type sizes.
Table 5-2 Fundamental Types of the MAXL
Category
Type
Contents
Integer
int
32 bits integer type.
Floating
float
64 bits float point type. Like double in C/C++
5.2.4.2
Maestro
Software Manual
MAXL Program Language
MAN-MASSW (Ver. Q)
Object Types
An object is a base unit of the Maestro.
There are several types of MAXL objects:
• Axis
• Vector
• Group
• Trajectory
• Program
Each of these objects is defined by its name and uses a specific set of attributes. These
attributes set depends upon object type.
5-11