
11/16
EDIT
DATE
DESIG.
DESCRIPTION
CUST.
SHEET
TITLE
DRAW.NO.
FANUC Power Mate i-MODEL H
CONNECTION MANUAL(FUNCTION)
Custom Macro in the high response mode
B-63173EN-1/01-27
22.3.2 ReferReferrring ing to to variablesvariables
In order to refer to the value of a variable in a motion program, specify a word
address followed by the variable number. The value of a macro variable can be
referred just to specify the position, the distance or the feed rate.
Example)
G90 G00 X#i ;; •••OK
G91 G01 X#i F#j ;; •••OK
22.3.3 Local variablesLocal variables
Local variables from #1 to #33 are not available.
22.3.4 Common variablesCommon variables
Common variables from #100 to #199, from #500 to #699 are not available.
NoteNote
1. The value of a macro variable can not be referred just to1. The value of a macro variable can not be referred just to
specify the G code, M code, and number of M code group.specify the G code, M code, and number of M code group.
Example ) G#i ; •••NG
M#i P1 ; •••NG
M100 P#i ; •••NG
2. An expression as following is not available.2. An expression as following is not available.
Example) X[#i + #j ]
CautionCaution
As for the variables from #1245 to #1959 in addition to theAs for the variables from #1245 to #1959 in addition to the
variables, which variables, which are describedare described in the in the ““22.3.5 SYSTEM22.3.5 SYSTEM
VariablesVariables””, , the value of the value of thethe variable variable can can be referredbe referred to, too. to, too.
But the value of the system variables from #1245 to #1959 isBut the value of the system variables from #1245 to #1959 is
referred only when the programs are compiled. So, if thereferred only when the programs are compiled. So, if the
value of the macro variable is changed after compiling thevalue of the macro variable is changed after compiling the
programs, the changed value of the macro variable will notprograms, the changed value of the macro variable will not
be reflected to the executing motion program.be reflected to the executing motion program.