Omron SYSMAC CS1G Operation Manual page 558

Motion control unit
Table of Contents

Advertisement

Program Example
10-1-8 Stopping a Program with General Input
Explanation of the
operation
Program
Explanation of the
program
10-1-9 Stopping Operation with Optional End Using General Input and
Assigning Position Data
Explanation of the
operation
• The program advance is held while the general input is ON.
• The axis keeps going back and forth between positions 0 and 20000 until
IW0B00 becomes 1.
ON
General
input
OFF
Axis
movement
0
01) PROG P009 Q00000001;
02) STOPMODE;
03) #IW0B00 = 0;
04) WHILE #IW0B00 <> 1;
05) WAIT #IW0B01 == 1;
06) MOVEL [J01]20000 F300000;
07) MOVEL [J01]0;
08) WEND;
09) END;
01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The general input (IW0B00) is set to 0.
04) With WHILE command, the process through 04) to 08) is repeated when
the general input (IW0B00) is not 1.
05) The program waits until the general input (IW0B01) becomes 1.
06) Positioning with linear interpolation is performed to the position
[J01]20000.
07) The axis returns to the origin.
08) This is the end of WHILE command from 04).
09) The program is completed.
• Positioning of [J01] to the position 50000 is performed. (A position
exceeding the target position)
• Once the axis reaches the target position, the operation will be stopped
with optional end after deceleration.
• After the stopping position is assigned to the position data, the axis
returns to the origin. After that, positioning is performed based on the
assigned position data.
• This program is useful for applications such as the following: There is no
original target position for positioning. A target position is decided using
the external input. After a target position is decided, positioning to the tar-
get position is performed.
20000
0
Section 10-1
20000
535

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs1w-mch71Sysmac cs seriesSysmac cs1h

Table of Contents