![background image](http://html1.mh-extra.com/html/omron/cs1w-mc221/cs1w-mc221_operation-manual_742361480.webp)
453
Programming Examples
Section 8-1
8-1-7
Positioning while Calculating Position Data
Operation
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.
Programming Example 1
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
Y0
F50
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
Explanation
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.
Summary of Contents for CS1W-MC221 -
Page 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Page 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 11: ...xii ...
Page 15: ...xvi ...
Page 19: ...xx ...
Page 27: ...xxviii Conformance to EC Directives 6 ...
Page 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Page 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Page 227: ...200 Command Area Section 3 6 ...
Page 351: ...324 Interface Specifics Section 5 4 ...
Page 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Page 575: ...548 Error Log Section 12 6 ...
Page 589: ...562 Performance Appendix A ...
Page 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Page 683: ...656 Origin Search Patterns Appendix F ...
Page 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...