
604
Program Example
Section 10-1
04) The axis moves to the position 100000 with linear interpolation.
05) This is the syntax of PARALLEL command.
06) If the external input is turned ON between the start position 80000 and
the end position 90000, the ON position will be assigned to the position
data (PL0015).
07) This is the end of PARALLEL command from 03).
08) The axis returns to the origin.
09) The process through 09) to 12) is repeated when the general input
(IW0B00) is not 1.
10) Positioning is performed based on the position data.
11) The axis returns to the origin.
12) This is the end of WHILE command from 09).
13) The program is completed.
10-1-27 Single Block Ignored (NSTOP)
Explanation of the
operation
• The block with NSTOP command is not stopped with block stop in Single
Block Operation Mode.
• For example, when debugging a program in Single Block Operation Mode,
if NSTOP command is put in the blocks not containing axis movement
commands, the blocks will not be stopped (other blocks with axis move-
ment commands will be stopped). This will economizes the time and work
for debugging.
Note
When debugging a program in Single Block Operation Mode, Start Mode 2
has to be set in advance.
Program
01) PROG P031 Q00000003;
02) MOVEL [J01]50000 [J02]50000 F500000;
03) NSTOP NOPS;
04) NSTOP #PL0000 = #SL0204;
05) NSTOP #PL0001 = #PL0000 * 3;
06) NSTOP #PL0002 = # #PL0000;
07) NSTOP #PL0003 = #PL0002 / 4;
08) NSTOP #PL0004 = # #PL0000;
09) MOVEL [J01]#PL0004 [J02]#PL0004;
10) NSTOP DWELL T5000;
11) MOVEL [J01]0 [J02]0;
12) END;
Explanation of the
program
01) A program No. and axes to be used are specified.
02) The axis moves to the position [J01]50000, [J02]50000 with linear interpo-
lation.
03) to 08) Various arithmetic operations are executed. (Not stopped at the
end of the block in Single Block Operation Mode)
09) Positioning is performed based on the result of the arithmetic operations.
10) The program is held for 5 seconds. (Not stopped at the end of the block in
Single Block Operation Mode.)
11) The axes return to the origin.
12) The program is completed.
When executing the above program to END command in Single Block Opera-
tion Mode, the start signal will be turned OFF-ON 5 times. Without NSTOP
command, the start signal will be turned OFF-ON 12 times.
Summary of Contents for CS1W-MCH71 -
Page 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Page 3: ...iv ...
Page 29: ...xxx ...
Page 33: ...xxxiv ...
Page 35: ...xxxvi ...
Page 39: ...xl ...
Page 69: ...24 Performance Section 1 7 ...
Page 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Page 283: ...238 Saving Data Section 5 4 ...
Page 417: ...372 Command Details Section 6 3 ...