Programming manual.
CNC 8070
STATEMENTS AND INSTRUCTIONS
22.
Programming statements
·431·
(REF: 1709)
22.1.22 Additional programming instructions
#FLUSH
Interruption of block preparation
The CNC reads several blocks ahead (preparation) of the one being executed in order to
calculate in advance the path to follow.
The #FLUSH instruction interrupts this block preparation in advance, executes the last
prepared blocs, synchronizes the preparation and execution of blocks and then goes on with
the program. When resuming, it begins preparing blocks again in advance.
The programming format is as follows:
#FLUSH
The blocks have data that is analyzed when it is read; to analyze it when it is executed, then
use the #FLUSH instruction.
This instruction is useful to evaluate a "block skip" condition at the time of the execution.
It must be borne in mind that interrupting block preparation may result in compensated paths
different from the one programmed, undesired joints when working with very short moves,
jerky axis movements, etc.
#WAIT FOR
Wait for an event
This instruction interrupts block preparation until the programmed condition is met. This
instruction does not synchronize block preparation and execution; for synchronizing, use
function #FLUSH.
The programming format is as follows:
#WAIT FOR [<condition>]
It is possible to compare numbers, parameters or arithmetic expressions whose result is a
number.
···
N110 #FLUSH
/N120 G01 X100
···
P100=1
#FLUSH
#WAIT FOR [P100==0]