Flow control instructions. Fagor CNC 8055 para otras aplicaciones, CNC 8055 para fresadoras, CNC 8055 for milling machines, CNC 8055 for other applications

Add to My manuals
468 Pages

advertisement

Flow control instructions. Fagor CNC 8055 para otras aplicaciones, CNC 8055 para fresadoras, CNC 8055 for milling machines, CNC 8055 for other applications | Manualzz

Programming manual

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.

G00 X0 Y0 Z0 T2 D4

X10

(GOTO N22)

X15 Y20

Y22 Z50

N22 G01 X30 Y40 Z40 F1000

G02 X20 Y40 I-5 J-5

...

; Jump instruction

; It is not executed

; It is not executed

; Continues execution in this block

( 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.

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.

14.

i 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.

(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)

CNC 8055

CNC 8055i

·M· & ·EN· M ODELS

S OFT : V01.6

X

·389·

14.

Programming manual

Both <action1> and <action2> can be expressions or instructions, except for mnemonics IF and

SUB.

Due to the fact that in a high level block local parameters can be named by means of letters, expressions of this type can be obtained:

(IF (E EQ 10) M10)

If the condition of parameter P5 (E) having a value of 10 is met, the miscellaneous function M10 will not be executed, since a high level block cannot have ISO code commands. In this case M10 represents the assignment of value 10 to parameter P12, i.e., one can program either:

(IF (E EQ 10) M10) or (IF (P5 EQ 10) P12=10)

CNC 8055

CNC 8055i

·M· & ·EN· M ODELS

S OFT : V01.6

X

·390·

advertisement

Key Features

  • Advanced control algorithms for precise and smooth motion control
  • Supports a wide range of machine configurations, including multi-axis machines
  • User-friendly programming interface with graphical support
  • On-board diagnostics for easy troubleshooting
  • Remote monitoring and control capabilities
  • Supports a variety of communication protocols
  • Expandable I/O for flexible system integration

Related manuals

Frequently Answers and Questions

What is the maximum number of axes that the CNC 8055 can control?
The CNC 8055 can control up to 32 axes.
What is the maximum feedrate that the CNC 8055 can achieve?
The maximum feedrate that the CNC 8055 can achieve is 100,000 mm/min.
What is the maximum number of programs that can be stored in the CNC 8055?
The CNC 8055 can store up to 1,000 programs.

advertisement

Table of contents