Programming instructions

9-14
Commands for Controlling Processes and Programs NC Programming 17VRS
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
; Reverse vectors for the tool changing program
N0025 .RM6_6 Q3 Turn arm back
N0026 .RM6_5 Q8 Retract gripper
N0027 .RM6_4 SE 0:12 Transfer. G1 -> Mag.
G0 -> Spindle
N0028 TSM
N0029 .RM6_3 Q6 Spindle clamp closed
N0030 .RM6_2 Q5 Open gripper
N0031 RTS
N0032 .RM6_7 Q8 Retract gripper
N0033 .RM6_8 Q6 Clamp closed
N0034 .RM6_9 Q5 Open gripper
N0035 .RM6_10 RE 0:12
N0036 TSM
N0037 .RM6_12 BTE .M6_T0
N0038 G48 [ ] RTS
N0039 RTS
Consistent reverse vector programming permits errors that occur during
program execution to be taken into account.
If, for example, a malfunction occurs while a Q function is being executed,
the reverse vectors are employed for moving the machine back to an un-
critical state.
This is no longer possible if the reverse vectors are cleared by a control-
reset.
Remedial action
In these situations, clearing the reverse vectors by control-reset must be
prevented.
This is possible by an event (here: event 0:15) and its nesting in the SPS
program.
Control-reset is not possible as long as the event is set (during the execu-
tion of the Q functions). Control-reset is only possible after the event has
been reset.
Note:
If, in exceptional situations, control-reset shall be possible
even after an event has been set, the event can manually be
reset via the user interface.
This enables the machine manufacturer to distinguish between
authorized and non-authorized end users.
With tool changers, updating the tool management must be
ensured.
9.6 Conditional Branches
Conditional branches are not performed unless the corresponding condi-
tion is met. If this condition is not met, the program continues to execute
starting at the following NC block.
Branch if Spindle is Empty ‘BSE’
The BSE branch command can be used to determine whether or not the
spindle is empty.
BSE <label>
BSE .SPLE
If the spindle is empty, program execution is continued from the branch
label that is specified in the command parameter.
Syntax