
PROGRAMMING
13. CUSTOM MACRO
B–63174EN/02
PROGRAMMING
(Common to Power Mate i–D and –H)
106
(4) Data table
Value of #1994 Accessible PMC area
0 D0000 to D1859
1 D1000 to D2859
2 D2000 to D3859
3 D3000 to D4859
4 D4000 to D5859
5 D5000 to D6859
6 D6000 to D7859
7 D7000 to D7999
(5) Internal relay
Value of #1995 Accessible PMC area
0 R0000 to R0999
1 R1000 to D1999
2 D2000 to D2999
NOTE
1 Only an address number consisting of a multiple of 4 is
accessible in the PMC area. When this access function is
used, the four bytes from a specified address are accessed.
(When D0000 is specified, for example, D0000 to D0003
are accessed.)
2 Relationship between a variable and PMC area data
A system variable in this area consists of 32–bit data. When
the address numbers in the PMC data area matching a
variable are α, α+1, α+2, and α+3, the data structure in the
variable are as follows:
3 Data is handle as an integer value.
4 Incorrect data may be read if data being written with a ladder
program is read with an NC program, or if data being written
with an NC program is read with a ladder program. When
data is exchanged between a ladder program and NC
program, read/write timing must be set carefully.
5 The input range is –2147483648 to 2147483647.
Value of address α+3 Value of address α+2 Value of address α+1 Value of address α
31 23 15 7 0
Tool offset values can be read and written using system variables.
Variables #2001 to #2099 can also be used.
Table 13.2(b) System variables for tool compensation memory
Compensation number System variable
1
:
99
#2001
:
#2099
D Tool offset values