
8/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
Example)
NoteNote
Arithmetic and logic operationArithmetic and logic operation cancan not not be performed be performed in an in an
equation of condition.equation of condition.
Example)
IF[#i EQ #i + 1] •••NG
IF[#i EQ - #i ] •••OK
IF[#i EQ #j] •••OK
Repetition (While Statement)
Specify a conditional expression after WHILE. While the specified condition is
satisfied, the program from DO to END is executed. If the specified condition
is not satisfied, program execution proceeds to the block after END.
The same format as for the IF statement applies.
Example)
(1) If the specified conditional expression
is satisfied (#i = #j), this program
branches to the block with sequence
number n, and the processing2 is
executed.
(2) If the specified condition is not satisfied
(#i #j), the processing1 is executed.
(1) While the specified condition is
satisfied (#i = #j), the processing1
from DO to END is executed.
(2) If the specified condition is not
satisfied (#i #j), the
processing2 is executed.
Nn
IF [#i EQ #j] GOTO n ;;
Processing2
Processing1
(1)
Processing1