Programming manual
CNC 8055
CNC 8055i
PROGR
A
M CONTR
O
L
INSTRUCTIONS
14.
·M· & ·EN· M
ODELS
S
OFT
: V02.2
X
·399·
Fl
o
w
co
nt
ro
l
in
st
ruc
ti
o
n
s
14.4
Flow control instructions
The GOTO and RPT instructions cannot be used in programs that are executed from a PC connected
through the serial line.
( GOTO N(expression) )
The mnemonic GOTO causes a jump within the same program, to the block defined by the label
N(expression). The execution of the program will continue after the jump, from the indicated block.
The jump label can be addressed by means of a number or by any expression which results in a
number.
( RPT N(expression), N(expression), P(expression) )
The mnemonic RPT executes the part of the program between the blocks defined by means of the
labels N(expression). The blocks to be executed may be in the execution program or in a RAM
memory program.
The label P(expression) indicates the number of the program containing the blocks to be executed.
If not defined, the CNC interprets that the portion to be repeated is located in the same program.
All the labels can be indicated by means of a number or by any expression which results in a number.
The part of the program selected by means of the two labels must belong to the same program, by
first defining the initial block and then the final block.
The execution of the program will continue in the block following the one in which the mnemonic
RPT was programmed, once the selected part of the program has been executed.
(IF condition <action1> ELSE <action2>)
This instruction analyzes the given condition that must be a relational expression. If the condition
is true (result equal to 1), <action1> will be executed, otherwise (result equal to 0) <action2> will
be executed.
Example:
(IF (P8 EQ 12.8) CALL 3 ELSE PCALL 5, A2, B5, D8)
If P8 = 12.8 executes the mnemonic (CALL3)
If P8<>12.8 executes the mnemonic (PCALL 5, A2, B5, D8)
The instruction can lack the ELSE part, i.e., it will be enough to program IF condition <action1>.
Example:
(IF (P8 EQ 12.8) CALL 3)
G00 X0 Y0 Z0 T2 D4
X10
(GOTO N22)
; Jump instruction
X15 Y20
; It is not executed
Y22 Z50
; It is not executed
N22
G01 X30 Y40 Z40 F1000
; Continues execution in this block
G02 X20 Y40 I-5 J-5
...
N10 G00 X10
Z20
G01 X5
G00 Z0
N20 X0
N30 (RPT N10, N20) N3
N40 G01 X20
M30
When reaching block N30, the program will execute section N10-N20 three times.
Once this has been completed, the program will continue execution in block N40.
Since the RPT instruction does not interrupt block preparation or tool compensation, it may be used
when using the EXEC instruction and while needing to maintain tool compensation active.
i
Содержание 8055 M
Страница 1: ...CNC 8055 M EN Programming manual Ref 1711 Soft V02 2x...
Страница 8: ...8 Programming manual CNC 8055 CNC 8055i SOFT V02 2X...
Страница 12: ...12 CNC 8055 CNC 8055i Declaration of conformity and Warranty conditions...
Страница 16: ...16 CNC 8055 CNC 8055i Version history...
Страница 22: ...22 CNC 8055 CNC 8055i Returning conditions...
Страница 24: ...24 CNC 8055 CNC 8055i Additional notes...
Страница 26: ...26 CNC 8055 CNC 8055i Fagor documentation...
Страница 238: ...238 Programming manual CNC 8055 CNC 8055i 11 IRREGULAR POCKET CANNED CYCLE M EN MODELS SOFT V02 2X 2D pockets...
Страница 284: ...284 Programming manual CNC 8055 CNC 8055i 11 IRREGULAR POCKET CANNED CYCLE M EN MODELS SOFT V02 2X 3D pockets...
Страница 336: ...336 Programming manual CNC 8055 CNC 8055i 12 PROBING M EN MODELS SOFT V02 2X PROBE 12 Tabletop probe calibration...
Страница 394: ...394 Programming manual CNC 8055 CNC 8055i 13 HIGH LEVEL LANGUAGE PROGRAMMING M EN MODELS SOFT V02 2X Expressions...
Страница 442: ...442 Programming manual CNC 8055 CNC 8055i 15 COORDINATE TRANSFORMATION M EN MODELS SOFT V02 2X TCP Transformation G48...
Страница 448: ......
Страница 454: ...454 Programming manual CNC 8055 CNC 8055i B M EN MODELS SOFT V02 2X Program control instructions...
Страница 462: ...462 Programming manual CNC 8055 CNC 8055i C M EN MODELS SOFT V02 2X Summary of internal CNC variables...
Страница 463: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 463 Key code KEY CODE Alpha numeric keyboard and monitor...
Страница 464: ...464 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 465: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 465 Key code Alphanumeric operator panel...
Страница 466: ...466 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code MC operator panel...
Страница 467: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 467 Key code...
Страница 468: ...468 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 469: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 469 Key code MCO TCO operator panel...
Страница 470: ...470 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code Alphanumeric keyboard...
Страница 471: ...Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X 471 Key code 11 LCD Monitor...
Страница 472: ...472 Programming manual CNC 8055 CNC 8055i D M EN MODELS SOFT V02 2X Key code...
Страница 478: ...478 Programming manual CNC 8055 CNC 8055i F M EN MODELS SOFT V02 2X Maintenance...
Страница 479: ...Programming manual CNC 8055 CNC 8055i F SOFT V02 2X 479...
Страница 480: ...480 Programming manual CNC 8055 CNC 8055i F SOFT V02 2X...
Страница 481: ......