Omron CS1W-MCH71 Operation Manual page 649

Sysmac cs/cj-series
Hide thumbs Also See for CS1W-MCH71:
Table of Contents

Advertisement

Program Example
10-1-27 Single Block Ignored (NSTOP)
Explanation of the
operation
Note
Program
Explanation of the
program
604
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.
• 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.
When debugging a program in Single Block Operation Mode, Start Mode 2
has to be set in advance.
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 = #PL0001 + #PL0000;
07) NSTOP #PL0003 = #PL0002 / 4;
08) NSTOP #PL0004 = #PL0003 + #PL0000;
09) MOVEL [J01]#PL0004 [J02]#PL0004;
10) NSTOP DWELL T5000;
11) MOVEL [J01]0 [J02]0;
12) END;
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.
Section 10-1

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Cj1w-mch71

Table of Contents