Positioning and control functionsSTOP / BREAK handling [IF STOP GOSUB xxx]111UnithardwareConnectorassignment / cableTechnical dataConfigurationPositioning andcontrol functionsOptimizationfunctionsInterfacesAccessories /optionsStatusParameterError listand is used to bring the individual outputs (e.g. the control output for a pump or avalve) into a safe status.Each error program must contain a 'WAIT START' instruction.The 'WAIT START' instruction causes the programming procedure to stop until anexternal QUIT and START occurs.Then OUTPUT instructions can again be present for resetting the outputs.There must be a RETURN or END instruction at the end of the error program.♦ The END instruction stops the program.♦ The RETURN instruction executes a jump back into the program line which waspreviously interrupted. If necessary, an interrupted movement is continued(provided that the error has been acknowledged).Main Program Error ProgramN001: IF ERROR GOSUB 200 N200: OUTPUT O9=0N002: OUTPUT O9=1 N201: WAIT STARTN003: POSA 0 N202: OUTPUT O9=1N004: POSA 4000 N203: RETURNN005: OUTPUT O9=0N006: GOTO 002If the axis is now stopped and switched off due to an error, e.g. during POSA 4000positioning, a sub-program jump is then executed to program line 200 and outputO9 is set to zero at this point.The program then stops in program line 201 and waits until the error has beenacknowledged and, if necessary, a new start is made.At program line 202, output O9 is switched on again, at program line 203, a jump ismade back to the previously interrupted program line N004.The axis executes the rest of the travel to position 4000, and the main program isthen continued at program line N005.If the error program is concluded with END rather than RETURN, the programindicator remains in the same position. The program stops running at this point.Machine zero then has to approached or the program indicator must be resetexplicity.8.4.29 STOP / BREAK handling [IF STOP GOSUB xxx]For influencing behavior after STOP or BREAK.IF STOP GOSUB xxxThis instruction can only be programmed, like normal IF instructions, in theprogram. It controls the procedure executed in the program when a stop statusoccurs.Normally, a STOP / BREAK command in the COMPAX will cause a activelyrunning move to be interrupted; the program is stopped.The 'IF STOP GOSUB xxx' instruction makes it possible to set the outputs todefined states in a stopped condition.If such an instruction has already run in the program and a stop command occurslater:♦ the current travel motion is interrupted and then♦ a 'Stop program' is run, this is stored from program line number xxx.Error program withWAIT STARTExample:IF STOPGOSUB xxxSyntax: