Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
6 - 145
6 MOTION PROGRAMS FOR POSITIONING CONTROL
6.16.11 Move block wait functions (WAITON, WAITOFF)
Code WAITON, WAITOFF
Function Move block wait functions
The next travel block is executed at the completion of ON/OFF
condition for the specified device.
Format
A
Device (X, Y, M, B, F)
WO#NIT Xx ;
A
Device (X, Y, M, B, F)
W
O#FIT Xx;
F
[Explanation]
(1) Execution of the next travel block is waited until the completion of ON/OFF
condition for the specified device. However, the operation block is executed.
(2) The response time of WAITON/WAITOFF is the operation cycle time (approx. 0.88
[ms] for 5 or less axes).
(3) The grammar is indicated below.
<WAITON statement> : WAITON #<device>
[Example] WAITON #X10 ;
<WAITOFF statement> : WAITOFF #<device>
[Example] WAITOFF #X11 ;
(4) It takes about 7 to 64[ms] from when a program is started until the program is
actually run. Therefore, If WAITON/WAITOFF is used, the Motion program can be
started at high speed. By setting a wait for a shift to the next block with WAITON
or WAITOFF after a program start has been made by the start instruction of the
Motion program, prereading of the next block has been completed, and therefore,
the next block can be executed at high speed (approx. 3.5[ms] for 4 or less axes)
after the device condition has held, improving the variation or delay in a program
start.
[Example]
WAITON #X10 ;
N1 G01 X100. Y200. F1000. ;
WAITOFF #X11 ;
N2 G01 X200. Y300. F500. ;
:
:
M02 ;
%
When X10 turns ON, N1 block is executed.
When X11 turns OFF, N2 block is executed.
(5) WAITON/WAITOFF cannot be used with the home position return instruction.