
11/15
EDIT
DATE
DESIG.
DESCRIPTION
CUST.
SHEET
TITLE
DRAW.NO.
FANUC Power Mate i-MODEL H
OPERATOR’S MANUAL
Custom Macro in the high response mode
B-63174EN/02-02
3.3.5 System variablesSystem variables
The following system variables are available in the motion program.
Variable number Function
#5021 ∼ #5028 Current position (Machine coordinate system)
#5041 ∼ #5048 Current position (Workpiece coordinate system)
#5061 ∼ #5068 Skip position (Workpiece coordinate system)
#5101 ∼ #5108 Deviated servo position
#1000000 ∼ #1000296 Variable timer variable (T0 ∼ T299)
#1010000 ∼ #1010036 Keep relay variable (K0 ∼ K39)
#1020000 ∼ #1020196 Counter variable (C0 ∼ C199)
#1051000 ∼ #1051007 Built in DI variable (X1000 ∼ X1007)
#1200000 ∼ #1207996 Data table variable (D0 ∼ D7999)
#1300000 ∼ #1302996 Internal relay variable (R0 ∼ R2999)
NoteNote
1.1. The usable area of the PMC data depends on the PMC type.The usable area of the PMC data depends on the PMC type.
2. The value of the above variables is referred when the motion2. The value of the above variables is referred when the motion
program is executed.program is executed.
3. When this access function is used, the four bytes from a3. When this access function is used, the four bytes from a
specispeciffied address are accessed.ied address are accessed.
Example) When #1300001 is speciExample) When #1300001 is speciffied, the four bytes from theied, the four bytes from the
#1300001 are accessed.#1300001 are accessed.
If #1207999 is speciIf #1207999 is speciffied, the error will occuried, the error will occur
because the area from D8000 to D8002 are notbecause the area from D8000 to D8002 are not
available.available.
4. When the 4. When the data table variable (D0 data table variable (D0 ∼∼ D7999) and the internal D7999) and the internal
relayrelay variable variable ((R0 R0 ∼∼ R299 R29999) are speci) are speciffied for the positionied for the position
value, the unit of the command is least input increment.value, the unit of the command is least input increment. WhenWhen
these data athese data are specire speciffied for ied for the feed ratethe feed rate,, the unit isthe unit is mm/min. mm/min.
5. Musk the variables from #1051008 to #1051010, when5. Musk the variables from #1051008 to #1051010, when
#1051007 is speci#1051007 is speciffied to read the X1007 in the built-in DI.ied to read the X1007 in the built-in DI.
Because the variables from #1051008 to #1051010 are notBecause the variables from #1051008 to #1051010 are not
available.available.
6. The following system variables are the 6. The following system variables are the write protectedwrite protected
variables. If the command to write to these system variablesvariables. If the command to write to these system variables
is speciis speciffied, the compile error 0116 occurs at compile.ied, the compile error 0116 occurs at compile.
#5021 #5021 ∼∼ #5028 : #5028 : Current positionCurrent position ( (Machine coordinateMachine coordinate
systemsystem))
#5041 #5041 ∼∼ #5048 : #5048 : Current positionCurrent position ( (Workpiece coordinateWorkpiece coordinate
systemsystem))
#5061 #5061 ∼∼ #5068 : #5068 : Skip positionSkip position ( (Workpiece coordinateWorkpiece coordinate
systemsystem))
#5101 #5101 ∼∼ #5108 : #5108 : Deviated servoDeviated servo positionposition
#1051000 #1051000 ∼∼ #1051007 : Built in DI (X1000 #1051007 : Built in DI (X1000 ∼∼ X1007) X1007)