Defining Macros on Milling Operations

You can define macros on a milling Machining Operation.

This is done using the Macros tab of the Machining Operation editor. In this example you can add circular approach, circular retract, and linking macros to a Profile Contouring operation.


Before you begin: Open a Manufacturing Program containing a Profile Contouring operation.
Related Topics
About NC Macros
Macros
  1. From any product:

    1. Select Start > Machining > Machine Programming.

      A PPR context with an empty Machining Cell is created. An empty Activities Process Tree opens automatically.

    2. Create a generic machine or assign a machine from the database.

      As soon as a machine is assigned to the Machining Cell, a Part Operation and a Manufacturing Program are created in the Activities Process Tree.

    3. Alternatively, open an existing Machining Process or PPR context .

      By default, the Activities Process Tree opens automatically.

  2. Activate the Manufacturing Program.

    1. Click Axial Machining Operations.
    2. Click Drilling in the sub-toolbars that appear.
    3. Go to the Macros tab in the Machining Operation dialog box that appears.

      The initial status of all the macros in the Macro Management list is Inactive .

  3. Right-click the Approach macro line and select Activate in the contextual menu.

    The macro line is activated. turns to , meaning some definition data exist but may require modifications.

  4. In the Current Macro Toolbox, select the Circular horizontal axial mode from the list.

    A sensitive icon representing the 3 elementary paths of this macro appears.



  5. Double-click each elementary path to display a dialog box that allows you to specify the exact characteristics the path.

    The current elementary path is displayed in magenta.

    1. In the dialog box corresponding to the circular path, set the Radius to 15 mm

      to have a 10mm vertical path followed by a 15mm radius circular path.

      The sensitive icon is updated.

  6. Click Tool Path Replay to check the circular approach.

    The yellow light turns to green, meaning the data are up-to-date.

  7. Under Macro Management, as you did above:

    1. Activate the Retract macro line and create a circular retract macro.
    2. Activate the Linking Retract macro line and select Axial. Assign a 20mm value to the retract path.

      The Linking Approach/Retract macros have a common behavior and are seen as the same object. It allows to handle Activate/Deactivate for both Approach and Retract. Consequently, they share the same name and it is not possible to rename one independently from the other. The same applies to Between passes and Between passes link macros.

    3. Select the Linking Approach line, then select the Axial mode. Assign a 20mm value to the approach path.

  8. In the Options tab, select the Cornerized clearance with radius check box, then enter a corner radius value of 3mm.



  9. In the Tool Path Replay dialog box, select the Different colors mode in order to visualize feedrate changes. See Color Modes.

    The tool path is displayed with the following default colors:

    • Yellow: approach feedrate
    • Green: machining feedrate
    • Blue: retract feedrate
    • Red: Rapid feedrate
    • White: user-defined feedrate.



    Note: Transition Paths are represented by dashed white lines.

    The status of the macros are now Up to date.



  10. Click OK to validate and exit the dialog box. The Machining Operation is updated with the specified macros.