73
5-3-1 Specifying Position Data Addresses (A0000 to A1999)
It is possible to use the contents of a position data address for position data or an
M code by specifying that address in an argument in an axis movement com-
mand or M code. For example, when the following program is executed, the con-
tents of A1000 (123.45) will be used for the X-axis data and the contents of
A1001 (50) will be used for the M code.
:
:
:
:
N010
G01
XA1000 MA1001
:
:
:
:
Position data
A0000
0
A0001
0
A1000
123.45
A1001
50
A1999
0
Address
Program block
5-3-2 Specifying Registers (E00 to E31)
Position data can be specified indirectly by specifying a register (E00 to E31) in
an axis movement command or M code. The relationship between the register
and position data contents is shown below.
Register
Position data
E00
1000
A1000:
123.35
E01
1001
A1001:
50
Registers and position data aren’t assigned together to each task; they can be
used independently for different tasks.
The contents of registers are all cleared to zero only when power is turned ON.
Initialize register contents at the beginning of the program by executing an func-
tion such as the SUBSTITUTION function (G63). Registers can contain values
from 0 through 1999. An error will occur if a value greater than 1999 is input in a
register. The possible range of values for position data is –39,999,999 through
39,999,999.
If the register name is in parentheses, i.e. (E00), the content of register will be
treated as a position data address.
For example, when the following program is executed, the contents of A1000
(123.45) will be used for the X-axis data and the contents of A1001 (50) will be
used for the M code.
Position data
Register
Indirect Addressing of
Position Data
List of G Symbols
Section 5-3
Содержание C200H-MC221 -
Страница 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Страница 2: ......
Страница 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 10: ......
Страница 12: ......
Страница 16: ...xvi ...
Страница 42: ......
Страница 48: ......
Страница 196: ......
Страница 212: ......
Страница 242: ......
Страница 258: ......
Страница 304: ......