# Fanuc Power Mate i-D/H Operator Manual PROGRAMMING
(Common to Power Mate i–D and –H)
13. CUSTOM MACRO
B–63174EN/03
108
With system variables #1200 to 1959 and #1991 to 1995, the PMC
T/K/C/D/R areas can be accessed.
Variable number 1 and variable number 2 are used to access each PMC
area. The table below indicates the correspondence between the system
variable numbers and PMC areas.
Variable number 1 Variable number 2 PMC area name
#1200 to #1219 #1991 Variable timer (T)
#1220 to #1224 #1992 Keep replay (K)
#1225 to #1244 #1993 Counter (C)
#1245 to #1709 #1994 Data table (D)
#1710 to #1959 #1995 Internal relay (R)
1. Access procedure
(1) Set variable number 2 according to the PMC address number.
(2) Set variable number 1 according to the PMC address number.
Then, the desired PMC address can be accessed.
2. Relationships between system variable numbers and PMC area
addresses
An address of each PMC area is related to system variables as
described below.
(1) Variable timer (T)
T area address number
= (variable number 1 – 1200)*4 + (80*#1991)
(2) Keep relay (K)
K area address number
= (variable number 1 – 1220)*4 + (20*#1992)
(3) Counter (C)
C area address number
= (variable number 1 – 1225)*4 + (80*#1993)
(4) Data table (D)
D area address number
= (variable number 1 – 1245)*4 + (1000*#1994)
NOTE
A data table area of 1860 bytes can be accessed with the
value of #1994, so variables other than those based on the
relationship above can also be referenced.
Example : To access D1000 to D1003
Either (1) or (2) below can be used for access:
(1) Set 0 in #1994, then use #1495 for access.
(2) Set 1 in #1994, then use #1245 for access.
(5) Internal relay (R)
R area address number
= (variable number 1 – 1710)*4 + (1000*#1995)
PMC D/R area
information
#1200 to #1959
#1991 to #1995 