Fanuc Power Mate i-D/H Operator Manual

3. HIGH–SPEED RESPONSE
FUNCTION
PROGRAMMING
(Power Mate i–H)
B–63174EN/03
273
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 n;
:
:
Nn ..... ;
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 ()
Example)
IF [#i EQ #j] GOTO n;
(1)
Processing1
Nn
(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.
Processing2
(2)
NOTE
Arithmetic and logic operation can not be performed in an
equation of condition.
Example)
IF[#i EQ #i + 1] ..... NG
IF[#i EQ – #i ] ........ OK
IF[#i EQ #j] ........... OK
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.
Unconditional branch
(GOTO statement)
Conditional branch
(IF statement)
Repetition (While
Statement)

Leave a Reply

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