
5.6.2 Built-in Functions
Table 5-7 MAXL has predefined functions.
Function
Name
Input
Argument(s)
Return
Argument(s)
Remarks
sin float float
cos float float
tan float float
asin float float
acos float float
atan float float
Trigonometry functions, input angle value
in radians.
exp float float
Calculates the exponential function value
of a floating-point number.
pow float x,
float y
float
Calculates the value of x raised to the
power of y, x^y.
log float float
Calculates the natural logarithm (base e)
of a floating-point number
log10 float float
Calculates the common logarithm (base
10) of a floating-point number.
min float a,
float b
float
Returns minimum value
max float a,
float b
float
Returns maximum value
abs float float
Calculates the absolute value of a floating-
point number.
sqrt float float
Calculates the square root of a floating-
point number.
round float int
Rounds float value to integer.
floor float float
Calculates the floor (greatest integer less
than or equal to) value of a number.
ceil float float
Calculates the ceiling (smallest integer
greater than or equal to) value of a number.
This is the result of rounding up.
sync int busId,
float delay
-
Starts CanOPEN SYNC mechanism. BusID
– bus identifier [1,2]. Delay in
milliseconds, minimum value 1.
tstamp int busId,
int
Defines TIME-STAMP interval in number
Maestro Software Manual MAXL Program Language
MAN-MASSW (Ver. Q)
5-33
Comentarios a estos manuales