
15/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
LimitationsLimitations
Bracket nesting
Brackets can be used to a depth of one level for every macro statement.
The operation can not be specified between bracket ‘[’ and bracket ‘]’.
Example)
#j = #[#i] •••OK
#j = ABS[#i] •••OK
#j = #[#[#i]] •••NG
#j = ABS[#[#i]] •••NG
#j =#[#i+1] •••NG
Brackets (‘[’ and ‘]’) can not be specified in the conditional expression of
WHILE, IF statements as follows.
Example)
IF [#[#i] EQ 1] GOTO100 •••NG
WHILE [#[#i] EQ 1] DO1 •••NG
Referring variables
If the variable is specified after F or address word, brackets (‘[’ and ‘]’)
can not be specified.
Example)
G00 X #i •••OK
G00 X #[#i] •••NG
The variables can not be referred as the number after GOTO, DO and
END.
Example)
GOTO#i •••NG
IF [.....] GOTO #i •••NG
WHILE [...] DO#i •••NG
END#i •••NG
Number of the terms for the operation
The number of the terms for the operation is up to two per a block. The
operation can not be specified for a conditional expression of WHILE
statement or IF statement. The operation can not be specified for the
block that the ABS operation is specified.
Example)
#i = #i + #j •••OK
#i = #i ∗ #j •••OK
#i = #i ∗ #j / #k •••NG
IF [#i EQ #i +1] GOTO100 •••NG
WHILE [#i EQ #i +1] DO1 •••NG
#i = ABS[#i] •••OK
#i = ABS[#i + #j] •••NG
#i = ABS[#i] + ABS[#j] •••NG