Programming
Deferred PAUSE function
Introduction The command PAUSE (%Qxy.i.16) allows you to suspend the sequence of movements. It only becomes active when the moving part is stopped, that is, at the end of a G09 or G10 instruction.
The next movement starts as soon as the PAUSE command is reset to 0.
The bit ON_PAUSE (%Ixy.i.26) signals when it is set to 1 that the axis is in a PAUSE l l state.
This function has 2 possible uses: the block by block execution of the movement program, synchronization of the axes by the same step by step axes control module.
Block by block execution of the movement program
If the current instruction is an instruction with stop, the activation of the command
PAUSE in the debugging screen in automatic mode or setting the PAUSE bit
(%Qxy.i.16) to 1 causes, after the end of the execution of the current instruction, the switch to wait mode: the stopping of the movement sequencing.
It is thus possible by successively activating and deactivating the PAUSE command to execute the movements block by block with the aim of facilitating the debugging.
Synchronization of several axes
For each axis, the setting of the PAUSE bit (%Qxy.i.12) to 1 by the program causes, after the end of the execution of the current instruction, the switch to wait mode.
When the PAUSE bit is reset to 0, the module continues the execution of the instructions.
TLX DS 57 PL7 40E 09.2000
97
Programming
Example The execution of the movement of the moving part 1 is stopped when moving part 0 reaches position 100000. The movement is activated again when the moving part 0 reaches dimension 500000.
IF (%ID2.1 >= 100000) THEN SET %Q2.1.12;
...............................
IF (%ID2.1 >= 500000) THEN RESET %Q2.1.12;
Speed (Hertz)
100000 500000
SS_FREQ
Moving part 0
PAUSE bit
Position
(pulses)
Time
SS_FREQ
Moving part 1
0
Time
Note: The PAUSE command is only processed when AUTO mode is active.
98
TLX DS 57 PL7 40E 09.2000