Command, function and parameter description
See also:
Example:
6-3-67 ERRORMASK
Type:
Description:
! C a u t i o n
See also:
6-3-68 EXP
Type:
Syntax:
Description:
Arguments:
Example:
6-3-69 FALSE
Type:
Description:
Example:
6-3-70 FAST_JOG
Type:
Each task has its own ERROR_LINE parameter. Use the PROC modifier to
access the parameter for a certain task. Without PROC the current task will
be assumed. Refer to 8-2 Error Handling for more detailed information on
error handling.
Note This parameter is read-only.
BASICERROR, PROC, RUN_ERROR
>> PRINT ERROR_LINE PROC(4)
23.0000
Axis Parameter
The ERRORMASK axis parameter contains a mask value that is ANDed bit
by bit with the AXISSTATUS axis parameter on every servo cycle to deter-
mine if a motion error has occurred.
When a motion error occurs the enable switch (WDOG) will be turned OFF,
the MOTION_ERROR parameter will have value 1 and the ERROR_AXIS
parameter will contain the number of the first axis to have the error.
Check the AXISVALUES parameter for the status bit allocations. The default
setting of ERRORMASK is 268. Refer to 8-2 Error Handling for more detailed
information on error handling.
It is up to the user to define in which cases a motion error is generated. For
safe operation it is strongly recommended to generate a motion error when
the following error has exceed its limit for the servo axis 0 in all cases. This is
done by setting bit 8 of ERRORMASK.
AXIS, AXISSTATUS, ERROR_AXIS, MOTION_ERROR, WDOG
Mathematical Function
EXP( expression )
The EXP function returns the exponential value of the expression.
expression
Any valid BASIC expression.
>> print exp(1.0)
2.7183
Constant
The FALSE constant returns the numerical value 0.
Note A constant is read-only.
test:
res = IN(0) OR IN(2)
IF res = FALSE THEN
PRINT "Inputs are off"
ENDIF
Axis Parameter
Section 6-3
137