
6/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
Note)Note)
1. The arithmetic commands except the above can not be used.1. The arithmetic commands except the above can not be used.
2. The 2. The ffigures below the decimal place are omitted when theigures below the decimal place are omitted when the
decimal part remains as a result of division.decimal part remains as a result of division.
3. 3. ““--”” cannot be placed just before cannot be placed just before ““ABSABS””..
Ex.) The command such as Ex.) The command such as ““#i#i = - = -ABS[#j]ABS[#j]”” is not is not
permitted.permitted.
4. A constant cannot be placed in the square brackets 4. A constant cannot be placed in the square brackets ““[ ][ ]”” of of
ABS command.ABS command.
5. An operator can not be used in the left side of an equation and5. An operator can not be used in the left side of an equation and
the first term of the right side of equation.the first term of the right side of equation.
Ex.) The command such as Ex.) The command such as ““--## = 100= 100”” cannot be used. cannot be used.
Unconditional branch (GOTO statement)
The program branches to the block with sequence number n unconditionally.
If sequence number except 0-89999 is specified, compile error 128 is generated.
Ex.) (n: 0 ~89999)
GOTO ;
:
:
Nn..... ;;
Conditional branch (IF statement)
An equation of condition is placed after “IF”. Put an equation of condition in
square brackets “[” and “]”. If the condition is true, then the program branches
to the block with sequence number n. If the condition is false, then the next
block is executed.
The following operators as an equation of condition can be used
Operator Meaning
EQ Equal to(=)
NE Not equal to()
GT Greater than(>)
GE Greater than or equal to()
LT Less than(<)
LE Less than or equal to ()