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

Motion control units
Table of Contents

Advertisement

Programming Examples
8-1-7
Positioning while Calculating Position Data
Operation
Programming Example 1
Explanation
After initializing the position data, this program moves the axes 10 times while
incrementing the X-axis' position data by 20. Next, the Y-axis position data is
incremented by 30 and the positioning operation is repeated five times. The
positioning will be in grid as shown in the following diagram.
N000
P008
XY
N001
G11
N002
G63
E00=0
N003
G63
A1000=100
N004
G63
A1001=100
N005
G01
XA1000 YA1001 F20 M10
N006
G01
X0
N007
G60
A1000=A1000+20
N008
G70
N005/L9
N009
G63
A1000=100
N010
G60
A1001=A1001+30
N011
G60
E00=E00+1
N012
G71
N005/E0 ! 5
N013
G79
N001
Specifies Stop Mode.
N002
Initializes register E0 to 0.
N003
Substitutes the X-axis' initial position data into address A1000.
N004
Substitutes the Y-axis' initial position data into address A1001.
N005
Moves the axes by linear interpolation to the X position indicated in A1000
and the Y position indicated in A1001.
N006
Returns to the origin.
N007
Increments the X-axis' position data by 20.
Y0
F50
Section 8-1
453

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents