Indirect Addressing With Registers - Omron C200H-MC221 Operation Manual

Motion control unit
Hide thumbs Also See for C200H-MC221:
Table of Contents

Advertisement

Indirect Addressing with Registers

9-4
Indirect Addressing with Registers
Sample Program
Explanation
Register contents
+ 2
N005
Moves the axes to (X400, Y400) by circular interpolation in the clockwise direc-
tion 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.
N006
Ends the program.
Note This series of operations is performed in Pass mode.
This program uses registers to indirectly specify position data stored in position
data addresses and uses this data in positioning operations.
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
Block N000 declares the program number and axes being used.
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.
N008
Jumps to block N004 and repeats the positioning operation 3 times.
N013
Ends the program.
E1
E2
E1
E2
First X-axis position
A100
First Y-axis position
A101
Second X-axis position
A102
Second Y-axis position
A103
Section 9-4
203

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents