207
Sample Program 1
N000
P008
XY
N001
G11
N002
G63
E00=0
N003
G63
A1000=100
N004
G63
A1001=100
N005
G01
XA1000 YA1001 F20 M10
N006
G01
X0
Y0
F50
N007
G60
A1000=A1000+20
N008
G70
N005/L9
N009
G63
A1000=100
N010
G60
A1001=A1001+30
N011
G60
E00=E00+1
N012
G71
N005/E0 ! 5
N013
G79
Explanation
Block N000 declares the program number and axes being used.
N001
Specifies Stop mode.
N002
Initializes register E0 to 0.
N003
Substitutes the X-axis’ initial position data into address A1000.
N004
Substitutes the Y-axis’ initial position data into address A1001.
N005
Moves the axes by linear interpolation to the X position indicated in A1000 and
the Y position indicated in A1001.
N006
Returns to the origin.
N007
Increments the X-axis’ position data by 20.
N008
Jumps to block N004 and repeats the above process 9 times.
N009
Initializes the X-axis’ position data to its original value.
N010
Increments the Y-axis’ position data by 30.
N011
Uses register E0 as a loop counter with an initial value of 0. The content of E0 is
incremented by 1.
N012
Jumps to N004 as long as the content of E0 isn’t 5. When E0=5, N012 proceeds
to the next block and ends the program.
N013
Ends the program.
Calculating Position Data
Section 9-7
Summary of Contents for C200H-MC221 -
Page 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Page 2: ......
Page 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Page 4: ...iv ...
Page 6: ...vi ...
Page 10: ......
Page 12: ......
Page 16: ...xvi ...
Page 42: ......
Page 48: ......
Page 196: ......
Page 212: ......
Page 242: ......
Page 258: ......
Page 304: ......