Nesting macros
Macros may be used on the right side of the assignment (called nesting) in combination with the NC code. The maximum nesting depth is fixed [6]-6.40.
Nesting is displayed by a '\' character that precedes the delimiting quotation marks. A macro should always represent complete expressions of an NC block (NC command, mathematical expression, term). This excludes the possibility of a macro only represented by the address letter of an NC command without the related mathematical expression. This connection will be discussed in the next sections.
Syntax of Nesting macros |
"<macro_name>" = "<NC_code> \"< macro_name_i> \" <NC_code>" |
Notice | |
A macro may not be called by its own nested macro name. Only nesting of other macro names is permitted. |
Programming Example
Nesting macros