EasyManua.ls Logo

Fagor CNC 8070 - Definition of Macros

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
Programming statements
15.
(SOFT V02.0X)
463
15.1.22 Definition of macros
Macros may be used to define a program block or part of it with their
own names in the format "MacroName" = "CNCblock". Once the
macro has been defined, programming "MacroName" will be the
same as programming "CNCblock". When executing a macro from the
program (or MDI), the CNC will execute its associated program block.
The macros defined via program (or MDI) are stored in a CNC table;
this way, they are available for the rest of the programs without having
to define them again. This table is initialized on CNC power-up and
it can also be initialized from the part-program using the #INIT
MACROTAB instruction, thus deleting the macros saved.
#DEF: Macro definition
Up to 50 different macros may be defined at the CNC. The defined
macros may be accessed from any program. When trying to define too
many macros, the CNC issues the relevant error message. The macro
table may be initialized (erasing all the macros) using the instruction
#INIT MACROTAB.
The definition of the macro must be programmed alone in the block.
The programming format is:
#DEF "MacroName" = "BloqueCNC"
Several macros may be defined in a block as follows.
#DEF "Macro1"="Block1" "Macro2"="Block2" ...
Parameter Meaning
MacroName Name used to identify the macro in the
program. It may have up to 30 characters and
consist of letters and numbers.
CNCBlock Program block. It may be up to 140 characters
long.
(Definition of macros)
#DEF "READY"="G0 X0 Y0 Z10"
#DEF "START"="SP1 M3 M41" "STOP"="M05"
(Execution of macros)
"READY" (same as programming G0 X0 Y0 Z10)
P1=800 "START" F450 (same as programming S800 M3 M41)
G01 Z0
X40 Y40
"STOP" (same as programming M05)

Table of Contents

Other manuals for Fagor CNC 8070

Related product manuals