
583
Program Example
Section 10-1
10-1-8 Stopping a Program with General Input
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.
Program
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;
Explanation of the
program
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.
10-1-9 Stopping Operation with Optional End Using General Input and
Assigning Position Data
Explanation of the
operation
• 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.
0
20000
0
20000
OFF
ON
General
input
Axis
movement
Содержание CS1W-MCH71 -
Страница 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Страница 3: ...iv ...
Страница 29: ...xxx ...
Страница 33: ...xxxiv ...
Страница 35: ...xxxvi ...
Страница 39: ...xl ...
Страница 69: ...24 Performance Section 1 7 ...
Страница 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Страница 283: ...238 Saving Data Section 5 4 ...
Страница 417: ...372 Command Details Section 6 3 ...