Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
7 - 77
7 AUXILIARY AND APPLIED FUNCTIONS
(6) How to execute single block during continuous operation
Turn the single block mode signal (M4408) ON during program operation.
During move block execution, the program is stopped after termination of that
block and execution waits for the single block start signal (M4409) to turn from
OFF to ON.
Executing PLC No.
Single block start signal (M4409)
Single block processing signal (M4009)
Single block mode signal (M4408)
N3N2N1
ON
OFF
OFF
ON
ON
OFF
A macro instruction block, e.g. arithmetic operation, is pre-read during execution
of the move instruction for PTP (e.g. G00) or CP (e.g. G01). Therefore, if the
single block function is executed while the macro instructions are pre-read during
motion, the executing block number and executing PLC No. displayed are those
in the pre-read area.
N5N1
O0010 ;
N1 G01 X100. F100. ; (Single block processing signal is ON)
N2 #D0 = 0 ;
N3 #D2 = 1 ;
N4 #D3 = 2 ;
N5 #D4 = 3 ; (Pre-read complete block)
M02 ;
%
During N1 execution, the single block processing signal is turned ON. If the macro
instructions in up to N5 have been pre-read at this time, making a single block start
for one block changes the executed PLC No. from N1 to N5.
Executing PLC No.
Single block start signal (M4409)
Single block processing signal (M4009)
Single block mode signal (M4408)
OFF
OFF
OFF
ON
ON
[Motion program example]