FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
290
In a program, the flow of control can be changed using the GOTO
statement and IF statement. Three types of branch and repetition
operations are used:
Branch and repetition GOTO statement (unconditional branch)
IF statement (conditional branch: if ..., then...)
WHILE statement (repetition while ...)
A branch to sequence number n occurs. When a sequence number outside
of the range 1 to 99999 is specified, P/S alarm No. 128 occurs. A sequence
number can also be specified using an expression.
GOTO n ;
n: Sequence number (1 to 99999)
Example:
GOTO1;
GOTO#10;
16.5
BRANCH AND
REPETITION
16.5.1
Unconditional Branch
(GOTO Statement)

Leave a Reply

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