Fanuc Power Mate i-D/H Operator Manual

3. HIGH–SPEED RESPONSE
FUNCTION
PROGRAMMING
(Power Mate i–H)
B–63174EN/03
279
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
GOTO #i 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
3.4.7
Limitations

Leave a Reply

Your email address will not be published. Required fields are marked *