PM 16 Customising Pmill
PM 16 Customising Pmill
Customising PowerMILL
Home Area
For the User Menu to work it is necessary for a Home Area to exist in Windows. This can be
in any convenient area on the hard disk.
If the pmuser.mac, user_menu and any other macros are be stored in this folder, then
PowerMILL will have immediate access through the default Macro search paths.
Macros
A Macro is a text file, which contains a sequence of commands to automate PowerMILL
operations. These can be created by recording each command or by typing in the commands
directly. Macros (which have a .mac extension) can then be run within PowerMILL from
the explorer.
When PowerMILL starts up, it attempts to run the initialisation macro called pmuser.mac, a
copy of which exists in \dcam\product\PowerMILL5xxx\lib\macro. By overwriting or
adding PowerMILL commands to this blank macro, you can set up your own default
settings, and parameters.
A pmuser.mac can be placed in the pmill2 folder, directly below the users Home area (this
will enable personalised macro settings for individual login accounts). The pmill2 directory
is also a convenient location for storing other user-defined macros ideally arranged in
suitable sub-folders. This will be covered later.
The pmuser.mac is automatically run whenever PowerMILL starts up thereby providing the
user with their preferred settings.
• Open the Feedrate form and change Rapid to 9999 and Accept the form.
• Open the Rapid Move Heights form and in the Incremental Heights
section, change Rapid Move Type to Skim, Safe Z to 6, Start Z to 3 and
Accept the form.
• Open the 3D Offset Finishing form; change the Tolerance to 0.02. (This
value will now be set in all the Finishing forms) Accept the form.
• The last operation has created a toolpath in the explorer. This needs to be
deleted or it will be there whenever PowerMILL opens.
• From Tools > Options, select the View tab. Untick Graduated and select
a colour of your choice. Accept the form.
It is important to remember to Accept forms that are opened during Macro creation and not
to Apply them the only exception to this being NC Program Preferences (An initialisation
file is for pre-setting forms but at this stage without executing the commands).
• Select the Plus (+) sign next to Macros in the explorer to open the tree.
This is a standard Wordpad document that can be edited with new values and then saved.
To try this out you will need to exit and re-load PowerMILL.
• Exit then restart PowerMILLto check that the settings from the pmuser
macro have been activated.
Note: Even if already set it is essential to re-specify settings if they are to be recorded into the
macro.
A macro (h426_Prefs.mac) is now created that sets up NC Preferences for the H400 post-
processor option file and the command lines are shown below. To make this macro even
more accessible it can set up to be accessed from the User menu.
EXERCISE
• Create two more NC Preference macros in C:\Temp for the Fanuc 6m and
mazak controls with the filenames fanuc6m_Prefs and Mazak_Prefs.
User Menu
In PowerMILL it is possible to create a User Menu enabling the user to further streamline
and customize the command structure. To bring up the menu, right mouse click within an
empty area of the PowerMILL explorer. A User Menu will normally be created
automatically to the Home area during installation of the PowerMILL software (if the
PowerMILL Utilities are included).
• Right click within an empty area of the explorer to access the current User
Menu (if it exists).
• If a User Menu does not exist when attempting to right click in the
explorer area then from Windows select;
Programs
• If the PowerMILL Utilities do not exist then this part of the software will
have to be put on by selecting Custom install from the installation CD.
The user menu provides access to the PowerMILL Utilities, which contain a Tool database
and the Setup Sheet generator. In addition the user can add to the User Menu command
lines to control the running of PowerMILL commands and macros.
Below is a copy of a user menu file with a line added to control an existing macro.
This line calls the h426_prefs macro created earlier in this chapter. It needs to include the
correct drive and path where the macro is located. All lettering must be in the correct upper
or lower case and include the inverted commas and hyphens where necessary.
Exercise
• Create a macro containing some useful tools and then create a line in the
above user menu to control it.
Locates the last loaded Project which will be displayed in the Look in area.
Accesses the Examples area where the Training examples are stored.
Provides direct access a user-defined folder set-up from the Customise Paths area.
Provides direct access a user-defined folder set-up from the Customise Paths area.
The form has a pull down menu that shows the five
path options available.
For multiple locations further paths can be added to the list for both Dialogue Buttons 1 and
2, but only the path currently at the top of the list will be applied.
If Dialogue Button 1 is selected it will automatically locate the path that is at the top of the
list in this form.
If it is required for Dialogue Button 1 to search for the path C:\Temp then it must first be
moved to the top of the list.
If it is required to delete a path from the list, simply select it and click the Delete icon
To move a selected path to the bottom of the list, simply select it and click the Move selected
Exercise
• Set Dialogue Button 2 to provide direct access to the
PowerMILL_Data\Models directory.