Separating address letter and mathematical expression
It is also possible to only assign a macro name the address letter and program or define the mathematical expression in a second macro.
This permits macros that reference the main axes to be defined in a higher-level NC program. The macro may then be used in the subroutine or cycle, providing a certain independence from the selected processing level.
Programing Example
Separating address letter and mathematical expression
Only the address letter is contained in the macro content. The mathematical expression is programmed or defined in a separate macro:
"1.PA" = "X" "2.PA" = "Y" primary axis)
"Ziel_1.HA" = "V.E.POS1 + P12"
"1.PA" "TARGETl_1.PA" "2.PA" 100