![background image](http://html1.mh-extra.com/html/omron/cs1w-mc221/cs1w-mc221_operation-manual_742361476.webp)
449
Programming Examples
Section 8-1
N003
Moves the axes to (X300, Y200) by circular interpolation in the counter-clock-
wise direction with a radius of 100. A positive value is specified for the radius,
so an arc smaller than a semicircle (1/4 circle) is drawn.
N004
Moves the axes to (X300, Y300) by linear interpolation.
N005
Moves the axes to (X400, Y400) by circular interpolation in the clockwise
direction with a radius of 100. A negative value is specified for the radius, so
an arc greater than a semicircle (3/4 circle) is drawn.
8-1-4
Indirect Addressing with Registers
Operation
This program uses registers to indirectly specify position data stored in posi-
tion data addresses and uses this data in positioning operations.
Programming Example
N000
P005
XY
N001
G11
N002
G63
E1=100
N003
G63
E2=101
N004
G01
X(E1)Y(E2)F100
N005
G60
E1=E1+2
N006
G60
E2=E2+2
N007
G75
3
N008
G70
N004/L3
N009
G79
Explanation
N001
Specifies Stop Mode.
N002 through N003
Set the initial position data addresses in the registers.
N004
Reads the position data from the addresses specified in the registers and
moves the axes to this point by linear interpolation.
N005 through N006
Updates the contents of the registers.
N007
If optional input 3 is ON, the next block will be skipped and the program will
end.
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 ...