Specification of macro content (P-CHAN-00062)

P-CHAN-00062

Specify macro content

Description

This parameter specifies the macro content (NC syntax).

Parameter

makro_def[i].nc_code

Data type

STRING

Data range

Maximum of 80 characters (application-specific)

Dimension

----

Default value

*

Remarks

Example 1: The parameter calculation is replaced by the macro CALC_P5.

makro_def[4].symbol       CALC_P5

makro_def[4].nc_code     P5 = P2 + 3

 

Example 2: The programming of a motion block is replaced by the macro RELPOS1.

makro_def[6].symbol      RELPOS1

makro_def[6].nc_code    G01 G91 X10 Y20 F100

 

Example 3: Nested macros when XML configuration files are used.

makro_def[15].symbol     ABWAHL
makro_def[15].nc_code    60 - 7
# The NC code G53 is generated from the expression ABWAHL = 53 (makro_def[18]).
makro_def[18].symbol     NPV_ABWAHL
makro_def[18].nc_code    G\"ABWAHL\"

 

 

* Note: The default value of variables is a blank string.