Professional Documents
Culture Documents
MCAMX4 Transition Guide
MCAMX4 Transition Guide
MCAMX4 Transition Guide
Transition Guide
May 2009
TERMS OF USE Use of this document is subject to the Mastercam End User License
Agreement. A copy of the Mastercam End User License Agreement is
included with the Mastercam product package of which this docu-
ment is part. The Mastercam End User License Agreement can also be
found at:
www.mastercam.com/legal/licenseagreement/
iii
Contents
2. Overview .................................................................................. 5
Migration Requirements ...................................................... 6
Mastercam Files That You Must Update ............................... 7
Mastercam Files That You Do Not Need to Update .............. 8
Configuration Files ................................................................ 9
Mastercam X Configuration Files .......................................... 9
Version 8 or 9 Configuration Files ......................................... 9
Post Processors .................................................................. 11
C-Hooks, NET-Hooks, and VB Scripts .............................. 12
Getting Help
Mastercam provides several sources of documentation and support to
help you. Because Mastercam is so widely used in manufacturing,
additional resources are available through your Reseller and on the
Internet.
Mastercam Help
Located in the Mastercam \Help directory, you can access a
comprehensive context-sensitive Help system from any dialog box or
ribbon bar, and from the Mastercam Help menu.
Documentation
The \Documentation folder in your Mastercam installation includes
a suite of documentation tools, training videos, and other resources
you can use to make the most of your Mastercam experience. These
publications and movies are designed to get you up and running
quickly, and to provide ongoing education and support as you work
with basic and advanced features.
Additional Training
Additional Mastercam training is available from a variety of sources,
including your Mastercam Reseller and CNC Software, Inc. Two
options are listed below:
Mastercam University: CNC Software sponsors Mastercam
University, an affordable online learning platform that gives
you 24/7 access to Mastercam training materials. Take
advantage of more than 180 videos to master your skills at
your own pace and help prepare yourself for Mastercam
Certification. For more information on Mastercam University,
BEFORE YOU BEGIN / Getting Help • 3
You can also leave a message for CNC Support Services twenty-four
hours a day, seven days a week via our email or website addresses.
When sending email, please include:
The serial number of your SIM HASP or NetHASP
Telephone number and contact information where you can be
reached
Files required to reproduce an issue, such as .MCX and post
files
email support@mastercam.com
chapter 2
Overview
Use this overview to learn about the files you need to migrate
and/or convert to reproduce various settings and preferences
of your current Mastercam environment in your new
Mastercam X4 installation.
Most Mastercam files can be migrated to Mastercam X4 so that
you can keep your current customized work environment.
What you need to do to fully migrate your customized files to
Mastercam X4 depends on which version you are updating
from.
If you are migrating from a previous release of
Mastercam X, most files need to be updated even
though the extension remains unchanged. A few files
can be used without updating.
If you are migrating from Mastercam Version 9 or 8, all
files must be updated because Mastercam X
introduced new file extensions and some new file
types.
Appendix A on page 61 explains some of the differences
between some file types in Mastercam X and previous versions
of Mastercam. It also lists the location of library and setting files
in Mastercam X.
In general, configuration files, post processor files, C-Hooks,
and NET-hooks require additional handling and are covered
separately in this chapter.
6 • MASTERCAM X4/ Transition Guide
Migration Requirements
Updating to a new Mastercam version involves both moving
customized files to the new installation and updating files whose
formats have changed. When you install Mastercam X4, you need to be
aware of the following:
If you are replacing your current Mastercam X installation
with Mastercam X4 by installing it in the same folder, you will
have an opportunity to use a backup utility as part of the
installation program to preserve your customized files. We
recommend that you do this.
Mastercam’s migration utility copies all of your customized
files (except part files) to their corresponding locations in the
Mastercam X4 installation folder. We make this utility
available during installation only for customers who are
updating to Mastercam X4 from Mastercam X3 or X3MU1.
See “Mastercam X4 Migration Utility” on page 15 for more
information about the migration utility.
The Update folder function in Mastercam X4 moves and
updates selected files from previous versions of Mastercam X,
as well as Versions 8 and 9. You can use this function to update
files that were moved from X3 by the migration utility.
See page 17 for more information about this function.
If you are keeping your current Mastercam X installation and
installing Mastercam X4 to a different folder, copy your
customized files to the new folder. See page 8 for a list of files
that need to be copied.
The migration utility will copy these files automatically.
OVERVIEW / Migration Requirements • 7
Note: The migration utility only places files in their new location.
It does not convert them for use in Mastercam X4.
8 • MASTERCAM X4/ Transition Guide
Configuration Files
Post Processors
Post Files
All post processors used with previous versions of Mastercam must be
2
updated by using the UpdatePost utility, which is installed in your
\chooks folder.
This includes post processors that have been copied to your
Mastercam X4 installation by the Update folder function (page 17).
Setup Sheets
Use the UpdatePost utility to update all setup sheets created with the
.SET File setup sheet program (*.SET).
See “UpdatePost Utility” on page 23 for more information on
converting post processors and setup sheets.
12 • MASTERCAM X4/ Transition Guide
Procedure Overview
Below is a brief overview of the transition procedure for previous
versions of Mastercam X as well as versions 8 and 9. Each step listed
below is discussed in detail in this chapter.
Notes:
• Use the Mits8to9 C-Hook to update Version 8 wire power
libraries (.WP8) to Version 9 wire power libraries (.WP9).
• Use the HD9toGMD C-Hook to update Router Head Definition
files (.HD9) to Mastercam X component libraries (.GMD).
UPDATING FILES TO MASTERCAM X4 / Mastercam’s Migration Utility • 15
Note: Except for the .CONFIG files, the migration utility only
moves files; it does not convert them for use with Mastercam X4.
After using the utility to move files, you must still convert them
either by using the Update folder function or by opening them in
Mastercam X4.
The following table lists the files that the migration utility acts on.
16 • MASTERCAM X4/ Transition Guide
Updating Files
Mastercam provides tools that easily convert files from previous
versions, including Mastercam versions 8 and 9. Typically, you would
first update your files using these methods, and then edit your custom
tool definition, configuration, and control definition files to use your
converted files instead of the system defaults.
3
Update Folder
Use the Update folder function to convert an entire folder of files. For
example, you can convert all of your tool libraries and/or part file
folders in a single operation. It does not matter which Mastercam
product you are running or which machine definition is active. This
function works for the following file types:
Part files (.MCX, .EMCX, .MC9, .MC8)
Operation libraries (.OPERATIONS, .OP9, .OP8)
Control definitions (.CONTROL)
Default files (.DEFAULTS, .DF9, .DF8)
Tool libraries (.TOOLS, .TL9, .TL8)
Machine definitions (.MMD, .RMD, .LMD, .WMD, .GMD)
Materials files (.MATERIALS, .MT9, .MT8)
Wire power libraries (.POWER, .WP9)
Post Files (.PST, .PSB)
Note: Update folder only copies the post files to the X4 directory. It
does not convert them. You must use the UpdatePost utility to
convert your posts to X4. See page 23 for more information.
Notes:
• Update folder will not update Version 8 Wire power libraries
(.WP8). Use the Mits8to9 C-Hook to update .WP8 files to .WP9
files.
• Router Head Definition files (.HD9) must be updated using the
HDtoGMD C-Hook.
• Update folder only copies the post files to the X4 directory. You
must use the Update Post Utility to convert your posts to
Mastercam X4.
• Post text files (.TXT) from Version 8 and Version 9 are not copied
3
with this function.
• Only files supported by the products enabled on your SIM will
be updated.
6 Navigate to the folder that contains the desired text file and
select it.
7 Mastercam prompts you to enter a name for the converted
library. Mastercam will create a new library from the text file
instead of adding the tools to the currently open library.
8 Repeat this procedure for each text file that you want to
convert to a tool library.
9 Use the Tool Manager to open the new libraries and edit any
tool definitions.
TIP: Read the online help in the Tool Manager to learn how to
copy tools from one library to another.
Custom Tools
Tool libraries that contain custom tool types, or tool definitions that
use custom tool profile geometry, require additional manual editing to
function properly.
UPDATING FILES TO MASTERCAM X4 / Updating Files • 21
2 Choose Files from the list at the left of the dialog box.
22 • MASTERCAM X4/ Transition Guide
3 In the File usage section, select the type of library or file that
you have converted.
5 Repeat steps 3 and 4 for each converted library or file that you
want to use as a default.
6 Click the Save As button when you’ve selected all the libraries
and files that you wish to use as defaults.
7 Repeat this procedure for your metric .CONFIG file. (If you
normally work in metric, repeat for your inch .CONFIG file.)
UPDATING FILES TO MASTERCAM X4 / Post Files • 23
Post Files
UpdatePost Utility
The UpdatePost utility is a C-Hook that is supplied with Mastercam X4
and installed in your \chooks folder. It converts posts (including
binary posts) and .SET setup sheets from Mastercam Version 4 or later.
The converted post retains the name of the original post, while the
original post is saved with an extension that indicates the originating
3
version. (See Table 2 on page 24 for examples.)
UpdatePost can also create a machine definition and/or a control
definition from a post processor. Many Version 9 users will find this a
convenient way to get up and running quickly. See “Automatic
Machine and Control Definition Creation (Version 9 and Earlier)” on
page 26 for more information on automatically creating machine and
control definitions from a post processor.
If you did not copy your posts with the Update folder
function, you may wish to copy your original posts to a
temporary folder or to your Mastercam X4 posts folder
before running UpdatePosts. Make sure you include any
.TXT files used by the original post. These .TXT files are not
required if you used the Update folder function.
After you run UpdatePost, the new post retains the original
file name, and the original post is renamed with a backup
extension (for example, Postname.PST_version).
UpdatePost can convert several posts at once, but only if
they are the same machine type (for example, Mill, Lathe,
Router, Mill/Turn, or Wire). If you have many posts to
convert, you may wish to sort them by machine type.
Consider whether you will need to create a machine and/
or control definition for each post (Version 9 or earlier
users), or whether you will use the new posts with existing
definitions (Mastercam X users).
2 Start the UpdatePost utility.
UPDATING FILES TO MASTERCAM X4 / Post Files • 25
Note: After clicking the Select Post(s) button, select All Files (*.*)
from the Files of type list so that you can select the .SET files.
Like converted post files, your new setup sheet will have the same
name as the old one. Mastercam will create a backup copy of your
original file with a different extension (SetupSheetName.SET_version).
Note: Each time you run the UpdatePost utility and save posts to
the same directory, the log is overwritten.
The LINE (x, y) block tells you the location of the error in the
original and converted post, in this case, line 1200 in each.
UPDATING FILES TO MASTERCAM X4 / Post Files • 31
When you open the converted post, Mastercam displays the affected
code as a block of three lines:
The first line is the actual line of code created by UpdatePost.
The second line is the original line, commented out, and
preceded by the phrase CNC<<CONVERT>>.
The third line reproduces the error message from the log,
formatted as a comment, and preceded by the phrase
3
CNC<<MSG ... >>.
The following code shows a typical conversion error. In this example,
Mastercam knows that the line is supposed to be an else command,
but it cannot convert the other word because it has not been properly
defined:
else, #'nobrk' emulation option
#CNC<<CONVERT>> else, p_nobrk_emul #'nobrk'
emulation option
#CNC<<MSG-ERROR(1200,1200)>> Label has not been
defined[*30]
3 Click Add files and select the desired post processor. Click OK.
See the Mastercam X4 Reference Guide or the online help for more
detailed information.
34 • MASTERCAM X4/ Transition Guide
5 Select the library to use as the default from the drop-down list.
6 Repeat the previous two steps for inch and metric tool
libraries and the material library.
7 Click OK twice to close the dialog box and save the machine
definition.
4 Under File Usage, click on the type of file that you wish to
select.
5 Click the file cabinet button and choose the desired file.
Note: If you are using Mastercam Wire, please see “Editing a Wire
Machine Definition to Use Mastercam X Flushing Options” on
page 40.
Note: You may get a message that says you are editing the disk copy
of the machine definition. Click OK to continue.
3
2 Click the Edit General Machine Parameters button on the
toolbar.
To edit the control definition to use C-Hooks for Agie Wire EDM
machines
1 From the Settings menu, choose Control Definition Manager
and open the desired control definition.
Do not open the enhanced Agievision control definition. See
the Mastercam X4 Wire Getting Started Guide or the online
help for more information.
2 If necessary, select Wire from the Control type drop-down
menu.
UPDATING FILES TO MASTERCAM X4 / Machine and Control Definitions • 43
5 Under Select item’s file name, click the file cabinet button,
navigate to the \mcamx\chooks directory, and select the
agie.dll C-Hook.
6 Select the option to Enable chooks from misc values button.
Selecting this option allows you to access the C-Hook’s
interface from the Wirepath dialog box.
3
8 Under Select item’s file name, click the file cabinet button,
navigate to the \chooks directory, and select the agiereg.dll
C-Hook.
9 Select the option to Enable chooks from aux registers
button.
Selecting this option allows you to access the C-Hook’s
interface from the Wirepath dialog box.
3
5 Make sure that the Control type displays the desired machine
type.
7 Click Add files and select the desired post processor from the
network location. Click OK.
8 Select the network post from the Post processors drop-down
menu.
6 Select the network folder with the new .CONTROL file and
click OK.
7 Select the new .CONTROL file. Make sure that you see the
network path as shown below.
48 • MASTERCAM X4/ Transition Guide
8 Select the new post processor. Make sure that you see the
network path as shown below.
Converting Parts
The following sections describe what happens when Mastercam
converts a Version 9 file, how to convert files in batch, and offer some
examples of how Mastercam validates your current operations against
the machine definition in the converted file. If you are converting parts
from an earlier Mastercam X version, Mastercam preserves all the
machine group and machine and control definition information.
Each conversion session can mix inch and metric parts. If you
edit your machine preferences between sessions, make sure
you apply the same changes to both inch and metric
configuration files.
Severe incompatibility
When Mastercam is physically unable to perform an operation on the
selected machine, it displays the following message:
If you are converting many files, print this report or copy it to another
document so you can refer to it later. Close this dialog box and the
Incompatible Machine dialog box to proceed with the conversion.
When Mastercam creates the machine group for this file, it will not use
the incompatible machine definition. Instead, it creates a special
machine group based on system default values for the selected
machine type. Note that no post has been assigned.
Minor incompatibilities
In the case of a minor incompatibility, the machine can run the
operations, but some of the programmed parameters on the existing
operation do not match the range of values set up in the machine
definition. Mastercam creates the machine group with the selected
machine, and then edits the operation as necessary to conform with
the machine definition. Click the Details button to review a status
report that tells you exactly which values have been changed.
You will first see the following message while converting the file:
UPDATING PARTS AND MACHINING JOBS / Converting Parts • 55
Axis combinations
For machines that have multiple axis combinations in their machine
definitions, Mastercam automatically tries to select the best
combination for each operation as it converts it. Axis combinations are
used most often with multi-spindle/multi-turret lathes, so Mill and
Router users will rarely have to deal with this, although it is possible to
create axis combinations for some sophisticated milling applications.
56 • MASTERCAM X4/ Transition Guide
File Locations
Mastercam X introduced new file extensions and some new file types.
Table 1 on page 62 lists these new files and—if they have them—their
equivalents in Version 9. It shows file names and paths for Mastercam
Mill; other Mastercam products have equivalent paths.
Table 1: Mastercam X libraries and files
File Type Version 9 Mastercam X
Part files extension .MC9 .MCX, .EMCX
location \mcam\mill\mc9 \mcamx\mcx
Support Files
Tool Libraries
In Mastercam X, the default tool library is a property of the machine
definition. This lets you organize your tools for each machine or type
of machine in its own library which is automatically selected when you
create toolpaths for that machine.
MASTERCAM X: GENERAL FILE INFORMATION / Support Files • 65
Coolant Options
One of the differences between tool definitions in Mastercam X and
earlier versions of Mastercam is that Mastercam X lets you select a
default coolant option from a wider range of coolant types. When you
create or edit a tool definition, you can select a default coolant option
from any type of coolant available in the active machine definition. If
you later use that tool with a different machine (and if you choose to
get the coolant option from the tool definition), it is your responsibility
to make sure that it supports the particular coolant option stored in
the tool definition.
“Editing a Machine Definition to Use Mastercam X Coolant Options”
on page 36 tells you more about defining coolant options in your
machine definition and supporting them in your post.
Mastercam Wire supports flushing instead of coolant. See “Editing a
Wire Machine Definition to Use Mastercam X Flushing Options” on
page 40 for more information.
Material Libraries
Previous versions of Mastercam maintained separate versions of
material libraries for each individual product. In Mastercam X, a single
library (default.MATERIALS) stores Mill and Lathe settings, so that
these products can use the same library. If you want to use material
libraries migrated from your current Mastercam products, you can
handle this in either of two ways:
Convert one library (for example, Mill) and manually edit the
Lathe settings.
Convert each library and edit your configuration file and
machine definitions so that the default material library for
each product is different.
Mastercam Router installs its own material library, router.MATERIALS,
in the same folder as default.MATERIALS.