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.
Содержание CS1W-MC221 -
Страница 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Страница 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 11: ...xii ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Страница 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Страница 227: ...200 Command Area Section 3 6 ...
Страница 351: ...324 Interface Specifics Section 5 4 ...
Страница 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Страница 575: ...548 Error Log Section 12 6 ...
Страница 589: ...562 Performance Appendix A ...
Страница 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Страница 683: ...656 Origin Search Patterns Appendix F ...
Страница 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...