Omron CS1W-MC221 - 02-2008 Operation Manual page 474

Motion control units
Table of Contents

Advertisement

Programming Examples
8-1-2
Positioning with Linear Interpolation
Operation
Programming Example
Explanation
When the optional input turns ON, this program uses linear interpolation to
move the X-axis by 300 and the Y-axis by 400 from the present position. This
positioning operation will be repeated (up to 21 times) until position data
address A1000 contains 1.
N000
P002
N001
G91
N002
G01
N003
G71
N004
G70
N005
G79
N001
Specifies incremental positioning.
N002
Waits until optional input 16 (general input 1) turns ON. When it turns ON, the
X-axis is moved by 300 and the Y-axis by 400 with linear interpolation at a
speed of 50.
N003
Checks the content of A1000 and ends the program if it is 1.
N004
Jumps to block N002. Block N004 will jump to N002 20 times (performing 21
positioning operations).
Note The operations above are performed in Stop Mode, and not Pass Mode,
because an option is specified.
XY
X300
Y400
F50
N005/A1000=1
N002/L20
Section 8-1
#16
447

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-mc221Cs1w-mc221-v1Cs1w-mc421Cs1w-mc421-v1

Table of Contents