MasterCam Mazak Tutorial
MasterCam Mazak Tutorial
Mastercam to
Mazatrol Post-Processor Tutorial
Introduction
The following tutorial instructs the user in the approach to programming that allows a
Mastercam file with its associated toolpaths to output the desired Mazatrol code.
It is not the intention of this tutorial to teach the user the use of Mastercam or the
Mazatrol conversational system. It is assumed that the user of this product has been
instructed in the use of the former items. Mastercam instruction can be provided by your
local Mastercam reseller. For mazatrol instruction please consult your Mazak/ Mazatrol
Programming Manuals or contact your local Mazak representative.
Note: This text was compiled using Version 1.18.3 of the Mazatrol Post Processor and
Mastercam Version X4 some dialogs presented may have changed or you may be
using either an earlier or later version of Mastercam.
Contents
Section 1a. Programming a 2-1/2 axis Mill Part
Section 1b. Programming a 3 axis Mill Part
Section 1c Programming a 4 axis Mill Part
Section 1d Programming a 5 axis Mill Part
Section 2a. Programming a 2-axis Lathe Part
Section 2b Programming a Mill/Turn Part
Select
Chain
2. Select Done
3. Select or Create a 1.5Dia Face Mill as shown.
4.
Click on Misc. Values button and set Face Machining to Face as shown below
Please note that we are using line machining to output line ctr unit type to Mazatrol.
We will discuss also using Standard Pocket type units such as Face. PCKT and Slot
later in this tutorial
5. Click OK when done.
6. Set Facing Toolpath Parameter Values as shown;
3.
4.
Select Done
Select 0.5 Dia Flat end Mill as shown.
Select
Chain
Note: As you may notice the Misc. Values dialog box allows every setting in the
mazatrol SNO line and UNIT (UNO) line to be set by the user and override the
automatically set values output by the post-processor. This will be shown in more detail
in the next chapter.
10
Note: Another advantage of using the Mazatrol Post-Processor is that we can output
lead-in and lead-out values from mastercam. In the previous settings we have computer
compensation with left direction. Therefore only use LINE-CTR so that correct
accuracy is maintained. You can of course also use other type of compensation such as
LINE-LFT and LINE-RGT but in those cases it would be safer to set Compensation to
Control so that the Control picks up the tool radius and compensates accordingly.
6. Select Done. This should return you to the operations manager. Select Post icon
in operations Manager Menu to post. When Post processing dialog appears settings
should be as shown below
11
7. Select OK. The file name dialog should then appear as shown below:
Note: We do not need to create an NC file but Mastercam needs to have this setting so
that the post-processor can function. This file can be created just as you would with a
standard NC post processor. It is not used for actual output.
12
8. Click OK
9. Select a number between 1 and 9999 and hit ENTER. This will be the program
number for your Mazatrol output file (Mazatrol Work No.).
13
14
15
6. Select Done
16
17
18
Note: It is best not to use Depth Cuts when machining pockets. If depth cuts are used
unnecessarily long code is output. It is best if you set the value SRV-Z within the misc.
values dialog.
Note: To have the option of either using one tool or two tools for roughing and finishing
we can set this at the Rough and Finish pull down menu in the Misc. Values dialog box
(this option is also available for contour machining equivalent to LINE machining in
Mazatrol). We have also set specific Bottom finishes and Wall finishes. In the mastercam
toolpaths it is not possible to create or activate many of these types of conversational
language settings therefore in many cases the only access to these parameters will be
through the misc. values pages as shown above.
Sample output below when this is processed.
-------------------------------------------------------------------------------UNO UNO
DEPTH SRV-Z SRV-R BTM WAL FIN-Z FIN-R
1 PCKT.MT 0.0912 0.0912 *
1 1 0
0
SNO SNO NOM. NO. APRCH-X APRCH-Y TYPE ZFD DEP-Z WID-R C-SP FR M M
1 E-MILL 0.38 E
?
?
CW
G01 0.0912
0.27 203 0.450 3 8
2 E-MILL 0.38 E
?
?
CW
G01
0.27 203 0.450 3 8
19
1.
2.
3.
4.
Toolpaths
Drill
The five (5) x 0.5dia circles
Done
20
6. In order for all the tools to be captured and appear at the top of the drill line set
the Program # to the value shown. (Values of 10001 and larger may be used to
group common tools together for this type of operation) you will need select the
operation then Edit selected operations then Change Program# as shown below.
By leaving set to Auto the output will use the values set in the toolpath dialog
21
Note: All the Drill Cycles available to Mazatrol are accessible via Drill Cycle Menu as
shown above.
9.OK
22
Now we will copy the previous operation. Therefore the only changes we need to make
will be the tool we want to use and the drilling depth. All the other values will stay the
same.
23
24
25
14. OK.
Below see an example of posted output read into a Mazatrol Control Editor below (NOT
INCLUDED FOR ILLUSTRATION PURPOSES ONLY).
DRILLS
GROUPED
TOGETHR
26
27
In this file we have created a part using pocketing that would be very difficult to program
in Mazatrol because the pocket has multiple islands. We have also used a tool that is too
big to complete the machining of the pocket and then taken advantage of Mastercams
Pocket Remachining routine. As the part already has defined stock go ahead and run
verify out of the Operations Manager to see the current toolpaths.
28
Switch Off
Depth Cuts,
Do not use
Entry Motion,
*** IMPORTANT NOTE: Mazatrol adds (for line machining units) an extra lead in and
lead out value equal to the tool radius programmed therefore when selecting an entry
and exit position when using the strategy described above that you select positions which
do not gouge the part.
29
2. Set all other pocket toolpaths programmed likewise using Edit Common Toolpath
parameters and go to Misc. Values button
30
UNo.UNo.
2 WPC-0
X
Y
0.00000
UNo.UNo.
3 OFFSET
0
Z
0.00000
4
0.00000
0.00000
0.00000
U(X)
V(Y) D(0) W(Z)
0.00000
0.00000
0.00000 0.00000
FIG PTN
1 LINE
2 LINE
3 CCW
4 LINE
X
Y R/ANGLE
7.0535 2.8850
4.9465 2.8850
5.2600 3.5000 0.75999
5.2600 5.9378
CNR
There will be times when you may wish to modify the settings that are automatically
calculated for those parameters on both the UNO (unit Line) and SNO (Tool Cutting
Definition Line) this will be done as shown below. Again you will need to access the
Misc. Values Button.
31
For example above we will change the output for SRV-Z and SRV-R to values shown
below:
Change
values
32
33
34
35
36
Make sure
Program # is
set as shown
2. We now need to make sure that for all the operations in this group the drill cycles are
set as follows:
37
Note: We have used 6 tools in the previous section - the Mazatrol will allow this many
tools for this type of cycle - but the number of tools used by the mazatrol when manually
programming at the control is based upon internal calculations which reference BuiltIn Parameters.
38
39
40
3.Now to add chamfering toolpath copy and paste the second operation within the group
as shown
41
4. Then paste this operation so that it precedes the final tap operation.
5. Select Tool as shown.
As you have copied the operation within the group the Program # is still correct as
shown.
6. Set TAP page as follows:
42
43
Section 2 :Lathe
1. Programming a Basic Part.
Obviously one can access these to create a toolpath but what is important to mention is
the following: When programming for Mazatrol output use
LATHE
Mastercam
Face
Canned Rough
Canned Finish
Canned Groove
Thread
Drill
Cutoff
Manual
MILL IN LATHE
Mastercam
C-axis Drill
C-axis Drill
C-axis Drill
Cross Contour
C-Axis Contour
C-Axis Contour
C-Axis Contour
Manual
Mazatrol Output
- EDG; FCE
- BAR; IN, OUT, FCE, BAK Also some GRV
- BAR; IN, OUT, FCE, BAK
- GRV; IN, OUT, FCE, BAK
- THR
- DRL
- GRV
- LMP
Mazatrol Output
- MDR
- MTP
- BOR
- MGV
- LCT
- RGT
- LFT
- MMP
45
We will Rough and Finish outside profile, Drill and Thread ID then thread OD and final
step will be grooving OD.
46
47
Note: Stock Setup settings will affect the first line of the mazatrol UNO 0 and MAT data
i.e. the material selected will be output and the OD will be OD-Max and Length will be
Length will be based on the values entered in the job setup see below:
48
49
Important note: TO access to the material line i.e. the first line of the Mazatrol
Program where the size and material of the stock are defined. These values in some
cases such as the length and diameter will overwrite previously defined values in the
Job Setup. See below:
Go back to the first parameter page of the Facing Toolpath and click on Misc. Values.
Then click on the Material Line. You should then see the following display:
50
Lets change the finish allowance values to FIN-X = 0.02 and FIN-Z = 0.01 by entering
in the dialog as shown below:
51
Click OK and in the Operations Manager Move this newly created Manual Operation to
be the first operation.
52
Move to here
53
54
5.
55
56
6.
If we were to post for output now, we would get window as shown below. We
provide this to illustrate our progress. When we have completed the complete part
program we will then document how to run the post.
57
58
59
60
61
We will now Thread the OD, set the Parameters as shown below
62
63
64
Note: As you may notice the Misc. Values dialog box allows every setting in the
mazatrol SNO line and UNIT (UNO) line to be set by the user and override the
automatically set values output by the post-processor.
65
66
67
68
69
70
6. Select Done. This should return you to the operations manager. Select Post
71
7. Select OK. The file name dialog should then appear as shown below:
Note: We do not need to create an NC file but Mastercam needs to have this setting so
that the post-processor can function
72
8. Hit Enter
73
Save File
74
Mill/Turn
Essentially we program as normal but there are a few rules to follow when programming
for a C/Y axis milling capable lathe using the Mazatrol Post Processor. Please be sure to
go through the previous sections of this tutorial before working throught his section.
Open Mazatrol_Mill_Turn.MCX
You will notice that there are pre-built operations which cover the c-axis toolpaths that
are available in Mastercam. We have the option of machining the front face profile using
Mastercam 2D Contour OR C-Axis Contour we have included the 2D Contour
essentially because it allows the user more control and can add a lead-in and lead-out
although this is technically not necessary as Mazatrol will handle entry and exit
conditions. Only Line Center-Machining will output LFT and RGT are not available as
output choices.
75
76
:1
Note: Currently not available for Man Pro as positioning or simultaneous (future)
Using the rules described earlier for programming 2 axis toolpaths we supply a sample
file with the toolpaths already built
1. Open mazatrol_4th_axis.mcx
:2
Note: Currently not available for Man Pro as positioning or simultaneous (future)
Using the rules described earlier for programming 2 axis toolpaths we supply a sample
file with the toolpaths already built
1. Open mazatrol_5th_axis.mcx
77
Appendix
Working with the Misc. Values Dialog to modify /override
automatically generated output.
There will be times when you will wish to adjust the output at the mastercam
programming stage or when a part has been programmed for a non-mazatrol control. As
has been discussed earlier any value of the SNO and UNO lines can be overridden
through the Misc. Values Page.
In the following example we will take the automatically generated groove of the
previously programmed part and enter values which will then appear in the mazatrol
code.
Below is Current Misc. values Dialog with current Auto Settings and then outputted
code.
78
79
You can then see in the output below that those setting are now in transferred over.
80
This can be done with every toolpath and operation and allows complete control to the
programmer.
Camaix USA
Industrial Technology Development
[email protected]
81