Defining Macros

The operating mode described hereunder proposes two modes to define macros:

These modes are available for all 3 Axis Surface Machining operations with
the exception of the Roughing operations where only the numeric mode is available,
and the ZLevel operations where the two modes below are proposed, but with a limited number of motion types to avoid inconsistencies:

You can insert PP Words as you define the macros.
PP words can be inserted and edited in macros of the following operations:

  • Sweep Roughing, Sweeping, Z-level (for Approach, Retract, Linking and Between Passes),
  • Pencil, Contour-driven, Spiral milling (for Approach, Retract, and Linking),
  • Roughing, Prismatic Roughing, Power Machining and Cavities roughing (Pre and Post motions).
   
 
  1. Go to the macros  tab .

    You are offered three methods to add the macros:

    • the catalog method. Click   to save a macro in a catalog and to read a macro from a catalog.
      For more information on how to save or load an existing macro, please refer to Build and use a macros catalog.

    • the graphic method, using macros proposed by the application,

    • the numeric method, by defining yourself the macros.

    In the Macro Management frame, you will find the list of the type of macro that can be defined
    for the current machining operation.
    And for each type, you will find the Name of the macro and the machining Mode affected to this macro.

Graphic mode:

  1. By default, you are offered a graphic mode, with macros proposed by the application,
    the parameters of those you can edit.

     
  2. Select the Approach macro in the list above.
    In the Definition tab, select a machining mode from the list:

    The viewer in the dialog box is updated accordingly, with pre-defined parameters:

    The current macro path is colored violet.

    The graph displayed in the viewer of the dialog box is a generic representation of a macro mode.
    It is not the true representation of the macro you are using or defining.
    To check the tool path, click Replay.
  3. With the cursor in the viewer window of the dialog box, you can zoom in and out and pan the paths.

  4. Place your cursor on a portion of the macro path. Right-click to display the contextual menu.

    • Deactivate: Deactivates the selected macro path,

    • Activate: Activates a path that was previously deactivated,

    • Feedrate: Allows you to modify the feedrate type associated to the selected macro path by
      making a selection in the sub-menu. If Local is selected, you can assign a local feedrate value.

    • Parameter: Tunes up the parameters of the macro in the dialog box that is then displayed.

    The parameters dialog box can also be launched by double-clicking a portion of the path in the viewer.

  5. Double-click a label in the viewer to start the edition dialog box of the corresponding parameter.

  6. Once you are satisfied with the settings of a macro, select another one to tune up,
    or click OK to validate and exit the dialog box.

  7. Still in this mode, you can select Build by user at the bottom of the Mode list.
    You can use the following icons to specify macro paths:

    Icon Function
    Add Tangent motion
    Add Horizontal motion
    Add Axial motion
    Add Circular motion
    Add PP word list
    Add motion perpendicular to a plane
    Add distance along a line motion
    Add normal motion
    Add back motion
    Add circular within a plane motion
    Add box motion
    Add prolonged motion
    Add high speed milling motion
    Keep machining feedrate
    Remove all motions
    Delete selection motion
  8. Click an icon to add the predefined macro path. The viewer is updated with the added path.
    A zoom out is performed to enable you to visualize all the macro paths.

  9. The current path is colored violet. A contextual menu is available:

    • Deactivate: Deactivates the selected macro path,

    • Activate: Activates a path that was previously deactivated,

    • Feedrate: Allows you to modify the feedrate type associated to the selected macro path
      by making a selection in the sub-menu. If Local is selected, you can assign a local feedrate value.

    • Parameter: Tunes up the parameters of the macro in the dialog box that is then displayed.

      The parameters dialog box can also be launched by double-clicking a portion of the path in the viewer.

    • Delete: Deletes the current macro path

    • Insert: Inserts another macro path.

    The graph displayed in the viewer of the dialog box is a generic representation of a macro mode.
    It is not the true representation of the macro you are using or defining.
    Click Tool Path Replay to check the result of you settings.
  10. When a geometry is required (e.g. Add circular within a plane motion) the geometry is also represented.
    A contextual menu is available on this geometry:

    • Select: Displays the edition dialog box of the geometry,

    • Analyze: Launches the geometry analyser.

  11. You can also double-click a label in the viewer.
    This will start the editon dialog box of the corresponding parameter.

 

Numeric mode:

  1. Click to switch to the numeric definition mode of the macros.

This button is not available if you have selected Build by user.
 
  1. The list of the machining modes available is displayed.
    It is the same as above, with the exception of Build by user.

  2. When you select one mode, its sensitive icon and required parameters are displayed in the viewer:

  3. Set the parameters according to your needs.
    Use the interrogation mark to display or hide the graphical help.

  4. In the Options tab, you can define the name of the macro and enter a comment.

More information is available in the Macro Reference chapter.

PP Words

  1. Make sure you have defined a machine in the Part Operation and a PP word table on that machine.
    If you have not done so, a warning is displayed, and the PP Words Selection Assistant is not usable.
    However, you can type PP words directly in the PP Words Selection  dialog box, using your own syntax.

  2. In Build by user mode, click Add PP word list ,
    In the other mode, double-click the green cross (that is inserted automatically before each elementary motion) in the sensitive icon.

  3. The PP Words Selections dialog box appears.

  4. Click Add PP word list . The PP Words Selection Assistant is displayed.

  5. Select the type of Major Words you require from the drop down list:

    Select a Major or a Minor word. It is displayed in the Current Selection field. Click Apply.
    The PP Words are displayed in the PP Words Selections dialog box

    Click OK. The PP Words are displayed in the sensitive icon:

    Alternatively, you can type a PP Word directly in the PP Words Selections dialog box with your own syntax:

  • If the current macro ends with a PP word, the Add PP word list  becomes inactive and you cannot add more PP words.
    However, you can edit and complete existing PP words.
  • in ZLevel, macro motions are transformed in case of collision:
    • HSM mode (3 motions) is transformed into circular mode (3 motions),
    • Circular mode (3 motions) is transformed into prolonged movement mode (2 motions),
    • Prolonged movement mode is transformed into ramping mode (2 motions),
    • Ramping mode is transformed into axial mode (1 motion).

    The PP words of the HSM motion are put on the circular motion and all PP words are merged.