Installation guide
96 Programming Commands
ERRAXIS Miscellaneous Command
ACTION: Returns the controller axis number which created the error/warning for
the task.
PROGRAM SYNTAX: ERRAXIS - used in an expression
REMARKS: If a zero is returned then the error was not axis related or there is no
actual error.
To determine the error/warning use the ERR command.
EXAMPLE: ERROR_HANDLER:
Axis = ERRAXIS ‘ returns the axis number which created the
error trap.
Error = ERR ‘ sets error to error trap number
statements
ERR = 0,0 ‘ clears error number
GOTO ERROR_EXIT
ERRTRAP Miscellaneous Command
ACTION: Sets an Error Trap in the designated task.
PROGRAM SYNTAX: ERRTRAP = ”Task name”, Error number
REMARKS: Task name specifies the task to error trap in. The task name must be
enclosed in quotes. Only the name of the task is required; the complete
path and file extension is not required.
Error number sets the error number in the designated task.
EXAMPLE: errorflag=0
ERRORCHECK:
If IN(101)=1 AND errorflag=0 THEN ‘error condition occurred
ERRTRAP=”Motion”,55
‘ error trap task “Motion” and set error code 55 in Task
“Motion”.
errorflag=1
ELSE IF IN(101)=0 THEN
errorflag=0
END IF
GOTO ERRORCHECK










