Command Reference
FAULT_MANAGER_RETURN
Table explanation
Group Fault_Manager
Syntax FAULT_MANAGER_RETURN <Return Label>
Op. Code 164
Modes Program
Description This command complements the FAULT_MANAGER command
and acts as the RETURN command for the FAULT_MANAGER
routine. The program will return to the specified label number.
This command can be used more than once in the routine, for
example when using a number of conditional sentences.
Syntax
Arguments
Return Label The number of the label
number to return to.
Setting -1 as the label number
causes the program to return
to the FAULT_MANAGER
Serial
1 U
Example LABEL 5
MOVE 1000 -1
…
…
FAULT_MANAGER
IF Fault_code = 151 THEN GO_TO 22
IF Fault_code = 152 THEN GO_TO 22
FAULT_MANAGER_RETURN -1
LABEL 22
HOME_SW 1000, 100
FAULT_MESSAGE_CLEAR
FAULT_MESSAGE_RETURN 5
Example
Explanation
In this example, if the error code is neither 151 nor 152, the
program endlessly returns to the FAULT_MANAGER, checking
this condition over and over again. In case the over-travel fault
occurs, label 22 is called and then the program returns to label
5.
See Also FAULT_MANAGER, FAULT_MESSAGE_CLEAR, ALARM_RESET
Variables: Fault_code, Fault_line
XtraWare User Manual 111