Omron CS1W-MC221 - 02-2008 Operation Manual page 478

Motion control units
Table of Contents

Advertisement

Programming Examples
Programming Example
Subroutine
Explanation
8-1-6
Changing the Interpolation Acceleration Time
Operation
Programming Example
N000
P006
XY
N001
G53
X100
N002
G72
P800
N003
G53
X200
N004
G72
P800
N005
G53
Y200
N006
G72
P800
N007
G79
N000
P800
XY
N001
G27
XY
N002
G01
X10
N003
G01
X20
N004
G01
Y20
N005
G01
X10
N006
G01
Y10
N007
G27
XY
N008
G26
XY
N009
G73
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.
This program changes the setting of the interpolation acceleration time
parameter and performs linear interpolation.
N000
P007
XY
N001
G69
#3/X500
N002
G01
X100
N003
G01
X2000
N004
M20
N005
G69
#3/X100
N006
G01
X3000
Y100
M10
Y10
F10
M20
M30
0Y500
F300
Y–1000
Y1000
Section 8-1
451

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-mc221Cs1w-mc221-v1Cs1w-mc421Cs1w-mc421-v1

Table of Contents