Programming manual
CNC 8070
STATEMENTS AND
IN
STRUCTI
O
NS
Pr
ogr
am
m
ing st
at
em
ent
s
15.
(S
OFT
V02.0
X
)
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)
Summary of Contents for CNC 8070
Page 1: ...CNC 8070 REF 0504 SOFT V02 0X PROGRAMMING MANUAL Soft V02 0x Ref 0504...
Page 2: ......
Page 4: ......
Page 6: ......
Page 12: ......
Page 14: ......
Page 16: ......
Page 22: ......
Page 26: ......
Page 28: ......
Page 30: ......
Page 32: ......
Page 34: ......
Page 62: ...Programming manual 28 CNC 8070 2 MACHINE OVERVIEW Home search SOFT V02 0X 28...
Page 178: ...Programming manual 144 CNC 8070 7 GEOMETRY ASSISTANCE General scaling factor SOFT V02 0X 144...
Page 360: ...Programming manual 326 CNC 8070 12 CYCLE EDITOR Random multiple machining SOFT V02 0X 326...
Page 556: ...CNC 8070 16 PROBING CANNED CYCLES SOFT V02 0X 522 Programming manual...