445
SECTION 8
G-Language Programming Examples
This sections provides examples of G-language programming for the CS1W-MC421/221.
8-1
Programming Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
446
8-1-1
Positioning with PTP Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
446
8-1-2
Positioning with Linear Interpolation. . . . . . . . . . . . . . . . . . . . . . . .
447
8-1-3
Positioning with Linear and Circular Interpolation . . . . . . . . . . . . .
448
8-1-4
Indirect Addressing with Registers. . . . . . . . . . . . . . . . . . . . . . . . . .
449
8-1-5
Using the Workpiece Origin Offset . . . . . . . . . . . . . . . . . . . . . . . . .
450
8-1-6
Changing the Interpolation Acceleration Time . . . . . . . . . . . . . . . .
451
8-1-7
Positioning while Calculating Position Data . . . . . . . . . . . . . . . . . .
453
8-1-8
Stopping a Program with a General Input . . . . . . . . . . . . . . . . . . . .
455
8-1-9
Stopping the Program and Substituting Position Data . . . . . . . . . . .
455
8-1-10
Positioning a Turntable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
457
8-1-11
Positioning with Improved Locus Accuracy in Circular Interpolation
459
8-1-12
Starting Peripheral Devices during Operation . . . . . . . . . . . . . . . . .
460
8-1-13
Positioning at High Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
461
8-1-14
Shifting from Aligned to Rough Winding . . . . . . . . . . . . . . . . . . . .
462
8-2
Executing MC Programs from the Ladder Program . . . . . . . . . . . . . . . . . . . .
462
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 ...