Programming manual
486
CNC 8070
15.
STATEMENTS AND
IN
STRUCTI
O
NS
Pr
ogr
am
m
ing st
at
em
ent
s
(S
OFT
V02.0
X
)
464
Definition of arithmetic operations in the macros.
When including arithmetic operations in the definition of a macro, the
whole arithmetic operation must be included.
Concatenating of macros. Including macros in the definition of
other macros.
The definition of a macro can include other macros. In this case, one
of the macros included in the definition must be delimited with the \"
characters (
\"macro\"
).
#INIT MACROTAB
Resetting the table of macros
When defining a macro from a program (or MDI), it is stored in a CNC
table so it is available for all the rest of the programs. This instruction
resets the table of macros erasing the ones stored in it.
Correct definition of a macro.
#DEF "MACRO1"="P1*3"
#DEF "MACRO2"="SIN [\"MACRO1\"]"
The following macros are defined wrong.
#DEF "MACRO1"="56+"
#DEF "MACRO2"="12"
#DEF "MACRO3="\"MACRO1\"\"MACRO2\""
#DEF "MACRO4"="SIN["
#DEF "MACRO5"="45]"
#DEF "MACRO6="\"MACRO4\"\"MACRO5\""
Example1
#DEF "MACRO1"="X20 Y35"
#DEF "MACRO2"="S1000 M03"
#DEF "MACRO3"="G01 \"MA1\" F100 \"MA2\""
Example 2
#DEF "POS"="G1 X0 Y0 Z0"
#DEF "START"="S750 F450 M03"
#DEF "MACRO"="\"POS\" \"START\""
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...