451
Programming Examples
Section 8-1
Programming Example
N000
P006
XY
N001
G53
X100
Y100
N002
G72
P800
N003
G53
X200
N004
G72
P800
N005
G53
Y200
N006
G72
P800
N007
G79
Subroutine
N000
P800
XY
N001
G27
XY
M10
N002
G01
X10
Y10
F10
N003
G01
X20
N004
G01
Y20
N005
G01
X10
N006
G01
Y10
N007
G27
XY
M20
N008
G26
XY
M30
N009
G73
Explanation
P006: N001
Sets the workpiece origin offset to (X100, Y100).
P006: N002
Calls subroutine P800.
P800: N001
Returns to the workpiece origin. The workpiece coordinate system is selected
at this time. M code M10 is output and the Unit waits for the M code reset.
P800: N002 through N006
The subroutine’s series of absolute positioning operations is performed by lin-
ear interpolation in Pass Mode.
P800: N007
Returns to the workpiece origin. M code M20 is output and the Unit waits for
the M code reset.
P800: N008
When the reset is received, block N008 returns to the reference origin. M code
M30 is output and the Unit waits for the M code reset.
P800: N009
When the reset is received, block N009 returns to main program P006.
P006: N003
Changes the workpiece origin offset to X200.
P006: N004
Calls subroutine P800 and repeats the same series of operations.
8-1-6
Changing the Interpolation Acceleration Time
Operation
This program changes the setting of the interpolation acceleration time
parameter and performs linear interpolation.
Programming Example
N000
P007
XY
N001
G69
#3/X500
N002
G01
X100
0Y500
F300
N003
G01
X2000
Y–1000
N004
M20
N005
G69
#3/X100
N006
G01
X3000
Y1000
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 ...