This task shows you how to define macros on a milling operation.
This is done using the Macros tab page of the machining operation editor. In this example you will add circular approach, circular retract, and linking macros to a Profile Contouring operation. For more general information about macros, see NC Macros. |
||
Predefined MacrosYou can use predefined macros. These are made up from one or more paths in a specific order. Just select the desired mode in the Current Macro Toolbox. You can then adjust parameters of the macro (such as path length and feedrate). User-Built MacrosYou can also build your own macros using the Build by user mode. Depending on the context, you can use the following icons to specify macro paths:
In addition, the following icons allow you to:
Macro EditionA sensitive icon representing the elementary paths of the macro will help you to build or edit your macro. The current macro path is colored violet. Right-clicking a macro path gives you access to a contextual menu.
|
||
Inherited MacrosIf you create a machining operation and there are other operations of the same type in the program, the new operation will inherit the macros used in the most-recently edited operation of the same type. An operation is considered edited when you click OK to quit the operation definition dialog box. |
||
Create a Profile Contouring operation as described in the Prismatic Machining User's Guide. | ||
1. | Double-click the Profile Contouring operation in the specification tree to edit that operation. | |
2. | Select the Macros tab page in the operation definition dialog box. The initial status of all the macros in the Macro Management list is Inactive. | |
3. |
Right-click the Approach macro line and activate
the macro by means of Activate. In the Current Macro Toolbox select the Circular horizontal axial mode. A sensitive icon representing the 3 elementary paths of this macro appears.
|
|
4. |
Double-click each elementary path to display a dialog box that
allows you to specify the exact characteristics the path. The following dialog box allows you to specify the exact characteristics of the circular path.
Set the values of the circular approach paths so as to have a 10mm vertical path followed by a 15mm radius circular path. |
|
5. | You can then click Replay to check the circular approach. The status of the macro becomes Up to date. | |
6. | Activate the Retract macro in the Macro Management list and create a circular retract macro in the same way. | |
7. | Select the Linking Retract macro line in the Macro Management list, then in the Current macro Toolbox select the Axial mode. | |
8. |
Double-click the displayed value, then assign a 20mm value to
the retract path.
|
|
9. | Select the Linking Approach line in the Macro Management list, then select the Axial mode. Assign a 20mm value to the approach path. | |
10. |
In the Options tab, select the Cornerized clearance with
radius check box, then enter a corner radius value of
3mm.
|
|
11. |
Click Replay to validate the tool path. Make sure that the Different colors mode is activated by selecting this icon in the Tool Path Replay dialog box.
|
|
In the Replay dialog box select the By colors mode
in order to visualize feedrate changes. The tool path is displayed
with the following colors:
Please note that transition paths are represented by dashed white lines. |
||
The status of the macros are now Up to date.
|
||
12. |
Click OK to accept the modifications made to the operation. The operation is updated with the specified macros. |
|
PP Words in MacrosYou can insert PP words in macros by double-clicking the green X symbols in the sensitive icons. The PP Words Selection dialog box is displayed. You can enter the syntax in the following ways:
For Pocketing and Profile Contouring operations, you should
select the NC_CUTCOM_ON instruction in the list of available
syntaxes if you want the program to interpret cutter compensation
automatically (that is, by a CUTCOM/LEFT or CUTCOM/RIGHT instruction).
If you choose different syntax in the list, it will be used
as selected. Default Linking Macros in Case of CollisionIf a user-defined linking macro is not collision free, a default linking macro is applied. Macro Motion Tangent to Tool Path and Parallel to Tool AxisWhen the tangent to the tool path is parallel to the tool axis, the following macro motions are replaced by an axial motion:
Helix Approach MacroFor Pocketing, Profile Contouring, Multi-axis Curve Machining and Multi-Axis Flank Contouring operations, a Helix approach macro can be used rather than a Ramping approach macro when a cutter approaches raw material. The helix is specified by defining radius, height and angle values. The figure below illustrates a helix approach macro when
the Direction of cut is Climb and the tool's Way of rotation
is Right: The figure below illustrates a helix approach macro when
the Direction of cut is Conventional and the tool's Way of rotation
is Right: |
||
|