447
Programming Examples
Section 8-1
8-1-2
Positioning with Linear Interpolation
Operation
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.
Programming Example
N000
P002
XY
N001
G91
N002
G01
X300
Y400
F50
#16
N003
G71
N005/A1000=1
N004
G70
N002/L20
N005
G79
Explanation
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.
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 ...