EasyManua.ls Logo

Fagor CNC 8070 - Flow Controlling Instructions; Jump to a Block ($GOTO)

Fagor CNC 8070
556 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...



Programming manual
CNC 8070
STATEMENTS AND INSTRUCTIONS
Flow controlling instructions
15.
(SOFT V02.0X)
479
15.2 Flow controlling instructions
15.2.1 Jump to a block ($GOTO)
$GOTO N<expression>
$GOTO [<label>]
One of the following parameters is defined in this instruction:
This instruction provokes a jump to the block defined with
"N<expression>" or "[<label>]", that may be defined at a point before
or after the $GOTO instruction. Program execution continues after the
jump at the indicated block.
The $GOTO instruction may be programmed in two ways:
With a block number.
In these blocks that are the target of a jump, the label must be
programmed followed by ":".
With a label.
The call instruction and the destination block must be in the same
program or subroutine. There cannot be a jump to a subroutine or
between subroutines.
There cannot be jumps to blocks contained in another instruction ($IF,
$FOR, $WHILE, etc.)
Although the flow controlling instructions must be programmed alone
in the block, the $GOTO instruction may added to an $IF instruction
in the same block. This way, it is possible to exit the blocks contained
in an instruction ($IF, $FOR, $WHILE, etc.) without having to end the
loop.
<expression> It may be a number, parameter or arithmetic expression
whose result is a number.
<label> It may be a sequence of up to 14 characters consisting of
uppercase and lowercase letters and numbers (neither
blank spaces nor quote marks allowed).
Destination N<number>:
Call $GOTO N<number> or N<number>:
Destination [<label>]
Call $GOTO [<label>]
N10 $GOTO N60 N40: N10 $GOTO [LABEL]
... ... ...
N60: ... N90 $GOTO N40: N40 [LABEL]

Table of Contents

Other manuals for Fagor CNC 8070

Related product manuals