3 debug string, 3 standard conversions, Fundamental types – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 74: Are built, Object types
MAXL supports two kinds of object attributes:
• Command
o
Getter
o
Setter
o
Getter/Setter
o
Executer
• Method
5.2.4.3
Debug string
To facilitate the debugging process MAXL supports run-time debug messages. It is
very similar to the TRACE macro in the MFC. The program places the TRACE
operator inside MAXL program source code with formatted debug strings. This string
will appear in the Elmo Studio when the program executes to this point. Elmo Studio
uses a debug window to display debug messages.
Syntax
TRACE ( format-string [, arguments])
Examples:
function fun(int val)
TRACE(“input value : %”, val)
…
end function
This example shows how to use the debug mechanism to retrieve the real-time value
of variable val.
5.3
Standard Conversions
• Automatic conversion from integer to float and vice versa is
performed.
For example:
int i
float f
i = 5.5 // after this program line is executed, variable i contains 5
f = i // after this program line is executed variable f contains 5 as well
• Type of any binary operation is defined according to operands type:
First
Operand
Type
Second Operand
Type
Result Type
Integer Integer Integer
Float Integer Float
Integer Float
Float
Float Float Float
Maestro
Software Manual
MAXL Program Language
MAN-MASSW (Ver. Q)
5-12