giáo trình Lập trình gia công tiện phay mastercam 2023 được soạn thảo đầy đủ và dễ hiểu và chi tiết từ công đoạn cài đặt phôi, dao, cài đặt máy, lập trình gia công , tới xuất chương trình để đưa vào máy gia công thực tế được soạn thảo hết sức chi tiết giúp tất cả chúng ta có thể đọc và thực hành được.
Trang 1Generic Fanuc Mill-Turn TT
Main/Sub Spindles &
Upper/Lower Turrets
Trang 2Mastercam 2023 Generic Fanuc Mill-Turn TT (Main/Sub Spindles & Upper/Lower Turrets)
Copyright: 1998 - 2022 In-House Solutions Inc All rights reserved
Disclaimer Of All Warranties And Liability
In-House Solutions Inc makes no warranties, either express or implied, with respect to thismanual or with respect to the software described in this manual, its quality, performance,merchantability, or fitness for any particular purpose In-House Solutions Inc manual is sold
or licensed "as is." The entire risk as to its quality and performance is with the buyer Shouldthe manual prove defective following its purchase, the buyer (and not In-House SolutionsInc., its distributer, or its retailer) assumes the entire cost of all necessary servicing, repair, ofcorrection and any incidental or consequential damages In no event will In-House SolutionsInc be liable for direct, indirect, or consequential damages resulting from any defect in themanual, even if In-House Solutions Inc has been advised of the possibility of such damages.Some jurisdictions do not allow the exclusion or limitation of implied warranties or liability forincidental or consequential damages, so the above limitation or exclusion may not apply toyou
Copyrights
This manual is protected under International copyright laws All rights are reserved Thisdocument may not, in whole or part, be copied, photographed, reproduced, translated orreduced to any electronic medium or machine readable form without prior consent, in writing,from In-House Solutions Inc
Trademarks
Mastercam is a registered trademark of CNC Software, Inc
Trang 3Generic Fanuc Mill-Turn TT
n What Is Mill -Turn?
n Mill -Turn Workflow
n Mill-Turn Machine File
n Generic Mill-Turn Machines
n How to add the machine to the list
n Set the Initial Spindle, the Stock Typeand Part Handling
n Select the part geometry and createthe sub spindle geometry
n Set the bar stock, the number of parts
to machine and the extra stockamounts on the ends of the part
n Define the Tool plane origin of theinitial spindle
n Define how much the part is stickingout of the chuck
n Define the Tool plane origin of the subspindle
n Set the location where the subspindle will grab the part and define acutoff tool if needed
Trang 4Left Spindle Toolpaths Topics Covered
n Lathe Face toolpath
n Set the Axis combination/ Spindle Origin
n Lathe Rough toolpath
n Lathe Finish toolpath
n Backplot
n Verify
Sync Manager & Simulation Topics Covered
n Introduction to Mastercam Code Expert
n Sync Manager
n IOF file
n Mastercam Simulation
n Pickoff-Pull-Cutoff toolpath group
n Part Handling Simulation
Trang 5Right Spindle Toolpaths Topics Covered
n Right Spindle Lathe Face toolpath
n Set the Axis combination/ Spindle Origin
n Right Spindle Lathe Rough toolpath
n Right Spindle Lathe Finish toolpath
n Edit Part Handling toolpath
n Change Lower Turret Park
n Post Process from Sync Manager
n Modify NC Output Settings inProperties
n Edit tokens in Machine Explorer
n Edit tokens in Sync Manager
Trang 6Table Of Contents
Trang 7Step 2: Sync Manager 52
Trang 8Step 3: Customize The machine File 116
Trang 9Mill - Turn Introduction
Trang 10WHAT IS MILL -TURN?
Mastercam Mill-Turn combines the power of Mastercam's Mill and Lathe toolpaths with a suite of tools andtechnologies that let you program advanced multi-function, multi-stream lathes and machining centers.Mill -Turn machines consist of machines with Upper and Lower Turrets, B-Axis Heads and Lower turret andB-Axis Heads
The Mill-Turn platform has specific license requirements depending upon the complexity of the machinesbeing programmed and the user access level Mastercam Mill-Turn is a set of tools and features which runs
on top of Lathe It uses licenses differently than other Mastercam products Mill-Turn requires both a licensefor the product, and a license for each individual machine file This is different than Mastercam Mill andLathe, which only require a product license
A typical Mill-Turn installation therefore requires the following licenses:
n Mastercam Mill-Turn
n Mastercam Lathe
n One or more Mastercam Mill licenses for the desired level of Mill functionality: Mill, Mill3D , Multiaxis
n A license for each individual machine file
While Mill-Turn uses the same powerful toolpaths as Lathe, the programming environment is more
advanced and includes a number of tools to meet the demands of advanced multi-stream machines
n Mill-Turn includes a detailed Job Setup module You can select and mount w ork holdingcomponents for each job, tell Mastercam about your stock and part-handling needs, andcreates a complete set of planes and view sheets to simplify programming on each
spindle
n A separate Tool Setup Manager gives you complete control over how to organize tooling
on each turret You can completely program your turret setup w ith all of your tools
before start creating toolpaths Or you can let Mastercam do it for you after you have ated toolpaths
cre-n A set of intuitive Mill Setup types uses your Job Setup information to greatly simplify thecreation of Mill operations
n N ew tools let you create event-based part-handling operations
n Mill-Turn's Sync Manager application lets you synchronize operations in different
streams and access machine-specific options that have been created for you by yourmachine developer U se these to provide information to your machine's control that is
Trang 11Mill - Turn Introduction Mill -Turn Workflow
MILL -TURN WORKFLOW
The workflow for creating a Mill-Turn job is different than other Mastercam products This is because
additional Mastercam tools, such as the Sync Manager, are required to meet the programming requirements
of advanced multi-stream machines In addition, the Mill-Turn workflow is tailored to the specific machineselected for the job Mastercam loads the proper options, settings, and part handling processes that arespecific to the selected machine before the first toolpath is created
What if I have two similar machines of different sizes? At this time you can not replace or swap the machinefile The machine you program your part on would be the machine you need to run the part on
The following outline is a typical example:
1 Load the desired machine file for the machine that you are programming See How To Add The Machine
to learn more
2 The Job Setup module launches automatically Select your chucks, jaws, and/or collets tell Mastercamabout your stock and part handling needs, and enter the proper dimensions for part stick-out and pick-offpositions Mastercam creates a set of planes with associated work offsets, viewsheets for programmingeach spindle, and supporting geometry such as turn profiles See Mill-Turn Job Setup to learn more
3 Create your turning and milling toolpaths See Lathe Toolpaths in Mill-Turn
4 When you need to transfer the part to the other spindle, perform a stock pull, or perform a similar
operation, select the proper part-handling strategy Mastercam automatically builds a sequence of individualevents that is closely tailored to your specific machine and application requirements See Part HandlingOperations (Mill-Turn) to learn more
5 Set up the tools on your turret You can let Mastercam do this automatically and edit it as necessary, or do
it completely manually See Tool Setup Manager: Mill-Turn to learn more
6 Finish programming your part in the Sync Manager This lets you create syncs or wait codes betweenstreams and access custom machine-specific options that have been created for you by your machine filedeveloper See Working with the Sync Manager to learn more
7 From the Sync Manager, launch Machine Simulation to preview the machining process and check forcollisions See Working with Machine Simulation to learn more
8 When you have proven out your part and process, post your part from the Sync Manager and generateyour NC code Your post will create the proper multi-stream output for your control, whether it is a single file
or separate files Your NC files will open in the Code Expert Editor, which has a number of tools and featuresfor working with multi-stream NC files See Working with Code Editor to learn more
Trang 12ABOUT MILL-TURN MACHINE FILE
Instead of the machine definition–control definition–post architecture used in other Mastercam
products, Mill-Turn serializes these resources plus many others into a single *.machine file.
When using Mastercam Mill-Turn, the *.machine file combines the machine definition from Mastercam
Lathe with your Mill-Turn post, customizing your entire Mill-Turn experience for a specific machine tool
Hundreds of machine files are available for purchase, including models for Fanuc, Siemens, and Okuma
controls
The Machine Explorer displays the individual files that are contained in the machine file, as shown below.
The machine file can be stored anywhere on your workstation or on a network drive
The default location is:
This PC > C:\Users\Public\Documents\Shared Mastercam (version)\Mill Turn\machines
Trang 13Mill - Turn Introduction Mill -Turn Workflow
GENERIC MILL-TURN MACHINES
While in general each Mill-Turn machine file requires its own individual license, generic machines areavailable for evaluation or training purposes These do not require a separate license Generic machine filesare available for a number of standard machine configurations for both Seimens and Fanuc controls:
n Single-stream tw o-spindle (Fanuc, Seimens)
n Single-stream single-spindle (Fanuc, Seimens)
n Single-stream single-spindle + tailstock (Fanuc, Seimens)
n Multi-stream tw in-turret (Fanuc)
n Multi-stream turret + B-axis head (Fanuc)
n Single-spindle + tailstock (Fanuc)
However, users of these machines still must have the proper product licenses
Note: In our example you will use the Generic Fanuc Mill - Turn TT.machine that is provided in the
software This machine is a Multi stream twin-turret that has two spindles
Turn machine files for single-stream machines with no more than one rotary axis do not require a Turn product license These can be run by any Lathe user; the only product license required is Lathe
Mill-When a Lathe user loads one of these machines, they get access to the entire Mill-Turn product (subject tothe capabilities of the specific machine) without needing to purchase a Mill-Turn license This includes thesame Machine Simulation features as the full Mill-Turn product, the ability to use component libraries andtool locators, the Job Setup module, access to the Sync Manager for machine-specific options, and the otherMill-Turn functions
Lathe users can also load and run the generic single-stream machines without purchasing an additional.machine file license
Trang 14HOW TO ADD THE MACHINE
To see the machine, you need to add it to your list
n From the Machine tab, in the Machine Type, click on the drop down arrow and select Manage List as
n Click on the Add button.
n The machine should be
added to the Machine
Definition Menu Items.
n Select the OK button.
From the Machine ribbon, in the Mill-Turn select the drop down arrow.
Trang 15Mill-Turn TT Job Setup
Trang 16This lesson will introduce the Mill-Turn Job Setup lets you select and mount work holding components foreach job, tell Mastercam about your stock and part handling needs, and creates a complete set of planes andviewsheets to simplify programming on each spindle
It is important to know how you will handle the stock before you start programming as this sets the parthandling options available to you
OVERVIEW OF EXERCISE:
In this lesson you will become familiar with the Mill-Turn Job Setup setting You will set the Part Handling toContinuous Bar Stock - Pickoff, Stock Pull, Cutoff
NEW CONCEPTS COVERED IN THIS LESSON:
n Set the Initial Spindle, the Stock Type and Part Handling
n Select the part geometry and create the sub spindle geometry
n Set the bar stock, the number of parts to machine and the extra stock amounts on the ends of the part
n Define the Tool plane origin of the initial spindle
n Define how much the part is sticking out of the chuck
n Define the Tool plane origin of the sub spindle
n Set the location where the sub spindle will grab the part and define a cutoff tool if needed
Trang 17Mill-Turn TT Job setup Step 1: Select The Machine
STEP 1: SELECT THE MACHINE
n Select the line as shown
Note: The diameter is 2.4".
n Select the OK button to exit
Line Properties dialog box.
Trang 181.3 Select the
Machine
n From the Machine
ribbon, select the
drop down arrow
below Mill - Turn
icon
n Select Generic
Fanuc Mill-Turn
TT.machine.
n The Code Expert opens automatically listing the Generic Fanuc Mill-Turn TT components.
Minimize Code Expert.
Trang 19Mill-Turn TT Job setup Step 2: Machine Configuration
STEP 2: MACHINE CONFIGURATION
The Work Holding allows you to set the Left Spindle and Right Spindle Default Chucks You can
select new chucks (if available) or edit the existing ones
2.1 Check the Default Left Chuck
n To ensure the chucks can hold the part, in the
Work Holding, in the Left Spindle, right
mouse click on the Default 10in_Chuck_left
and select Edit chuck.
n The Inside
diameter is set to
2.95 as shown.
Note: The chuck
size is good as our
Trang 202.2 Check the Default Right Chuck
n To ensure the chucks can hold the part, in the
Work Holding, in the Right Spindle, right mouse
click on the Default 8in_Chuck_Right and select
Edit chuck.
n The Inside diameter is
2.047244 as shown.
n
Note: The chuck size is
ok as our part outer
diameter for the right
chuck is 1.5"
n Select the OK button.
Trang 21Mill-Turn TT Job setup Step 3: Setup Type
STEP 3: SETUP TYPE
Setup Type allows you to set the Initial spindle and the Part Handling
n Make sure that Left spindle is
enabled
n In the Stock Type - Part
Handling and set it to
Continuous Bar Stock
-Pickoff, Stock Pull, Cutoff as
shown
STEP 4: WCS
n Make sure the WCS is set to
Top as shown.
Trang 22STEP 5: PART GEOMETRY
The Part Geometry dialog box allows you to select the geometry of the part and creates the Sub spindlegeometry on a designated level If the part geometry is a solid without any wireframe, you can also createthe turn profiles on a specified level and attributes
n In the Part Geometry, click on the
Select geometry to translate
button
n Select the solid as shown
n Press Enter to finish the selection.
Trang 23Mill-Turn TT Job setup Step 6: Bar Stock
n The Create Right Spindle
Geometry should be enabled.
n You can leave the Offset by 100 to
create the geometry on Level 101.
n Enable Create turn profiles and
leave the Computation method
set to Spin.
n Click on the Color Select button
and change it to dark blue as shown
n Select the OK button to exit Color
dialog box
n Leave the Level set to 20 as shown.
STEP 6: BAR STOCK
In the Bar Stock you can define the number of parts to be machined, the stock size and the extra stock to
be added at the ends of the bar for facing
n Number of parts =1.
n Click on the Select button to select
a point defining the stock diameter
Trang 24n In the Outside Diameter the
Diameter should be set to 2.4.
n Extra stock = 0.1 (This
amount is on the radius)
n Extra face stock = 0.1.
n Extra back stock = 0.1.
STEP 7: TOOLPLANE ORIGIN Z
The Toolplane Origin Z page allows you to set the tool plane origin Z value for your operations Instruct
Mastercam to calculate the value from the part geometry or manually enter the value yourself You can
also set a Work offset number on this page.
n The Right face should be automatically enabled as
shown
n Leave the Work offset number set to 0.
Note: The Work offset number depends on the machine
post processor For this example you should leave it to 0
Trang 25Mill-Turn TT Job setup Step 8: Stick Out
STEP 8: STICK OUT
In this page you can set how much the part is sticking out of the chuck
n Click on the button that allows
you to select the position for the
chuck jaw reference point
n Select the midpoint as shown
n The values should look as shown
Trang 26STEP 9: RIGHT SPINDLE TOOLPLANE ORIGIN Z
n Make sure that the Compute is set to
the Left face as shown.
n Work offset number = 1.
STEP 10: PICKOFF
Pickoff page lets you define where the sub spindle will grab the part You can also define a Cutoff tool
width on this page
n Click on the Select pickoff z
position button as shown.
Trang 27Mill-Turn TT Job setup Step 10: Pickoff
n Set the Cutoff width
to 0.125 as shown.
n Click on the Preview lathe
boundaries button to see
preview of the settings
Trang 28n The preview should look as shown.
n Press Enter key to return to the Job Setup.
n Select the OK button to exit Machine Group Properties.
STEP 11: VIEWSHEETS
Once the Job Setup is complete, you will see viewsheets at the bottom of the page These are
automatically created You can see the part in the Left Spindle, Right Spindle or Both Spindles Very
useful when you are programming the part on the Right Spindle You just need to select the Viewsheet tabinstead of zooming in and out
n The Viewsheets should look as
shown
Note: The current Viewsheet set to Machine Group-1.Both, allows you to see both spindles.
Trang 29Mill-Turn TT Job setup Step 12: Save The File
n If you click on the Machine Group-1.Right, the geometry should look as shown.
STEP 12: SAVE THE FILE
n Use Save As icon from the QAT, and save the file, to the desired location, as
LeftSpindleToolpaths_TT.MCAM.
SUMMARY:
In this first hands-on lesson, you were introduced to several of the basic procedures you will soon learn touse over and over again to create the Mill-Turn Job Setup as needed so you can generate toolpaths
accurately After completing this lesson you should be able to:
n Have an understanding of how Mastercam displays the Job Setup tab automatically when you load a.machine file
Trang 30Mill-Turn TT Job setup Step 12: Save The File
Trang 31Fanuc TT Left Spindle Toolpaths
Trang 32purchase Mill 3D or Multiaxis licenses for complete access to all of Mastercam Mill's capabilities.
Mastercam Mill-Turn is an add-on solution which runs on top of your existing Mastercam Lathe and Milllicenses It provides Mastercam's most complete support for multi-function lathes
The toolpaths shown in Mastercam interface should be the only toolpaths your machine is capable of i.e ifyour machine only has an upper turret you shouldn’t see pinch turning listed in your turning toolpaths
OVERVIEW OF EXERCISE:
Programming your part using a Mill-Turn machine is the same a programming it within the Lathe/Mill Module
In this lesson you will learn how to create the Lathe toolpaths for the part in the Left Spindle You will face,rough and finish the part
NEW CONCEPTS COVERED IN THIS LESSON:
n Lathe Face toolpath
n Set the Axis combination/ Spindle Origin
n Lathe Rough toolpath
n Lathe Finish toolpath
n Backplot
n Verify
Trang 33Fanuc TT Left Spindle Toolpaths Step 1: Open The File
STEP 1: OPEN THE FILE
n From the QAT, select the Open icon.
n SelectLeftSpindleToolpaths_TT.MCAM.
n Minimize Code Expert if needed.
1.1 Set the Viewsheet
n Select the Machine Group-1.Left
Viewsheet
n The part should look as shown
Trang 34STEP 2: FACE THE PART
Lathe Face toolpath allows the user to quickly clean the stock from one end of the part, and creates an
even surface for future operations Note that you do not have to chain any geometry to create the toolpath.The extra material you specified on the right face in the stock setup You can also select two points to
dictate where Mastercam will create the facing operation In this step you will face the part using the UpperTurret
the Face icon.
Trang 35Fanuc TT Left Spindle Toolpaths Step 2: Face The Part
2.1 Toolpath Parameters
Toolpath Parameters page allows you to set the Axis Combination / Spindle Origin, select a too and set upits angles as needed You can also set the feeds and speeds and enter a comment
n Select the OD Rough Left-80
degrees tool as shown.
n Select the Axis Combination /
Spindle Origin button.
Note: The Feed rate and
Spindle speed is based on
Mastercam Tool Definition.
n Make sure that the Upper
Left is enabled as shown.
n Select the OK button to
exit Axis Combination /
Spindle Origin.
Trang 36STEP 3: ROUGH THE PART USING THE LOWER TURRET
Lathe Rough toolpath quickly remove large amounts of stock in preparation for a finish pass Roughing
passes are typically straight cuts parallel to the Z-axis In this operation you will rough the part on the leftspindle with the lower turret
Toolpath Preview:
Fanuc TT Left Spindle Toolpaths Step 3: Rough The Part Using The Lower Turret
Trang 37Fanuc TT Left Spindle Toolpaths Step 3: Rough The Part Using The Lower Turret
n The Solid mode should be
enabled as shown
n Make sure that Show solid is
disabled
n Select the geometry as shown
n Select the OK button to exit Solid
Chaining dialog box.
n In the Toolpath parameters, click on the
Axis Combination /Spindle Origin icon.
n Select the Lower Left icon as
shown
n Select the OK button to exit Axis
Combination /Spindle Origin.
Trang 38n Select the OD Rough
Left-80 degrees tool as
shown
3.1 Rough Parameters
n In the Rough parameters, in the
Stock Recognition, enable Use
stock for outer boundary.
n Select the OK button to exit Lathe
Rough parameters.
Fanuc TT Left Spindle Toolpaths Step 3: Rough The Part Using The Lower Turret
Trang 39Fanuc TT Left Spindle Toolpaths Step 3: Rough The Part Using The Lower Turret
3.2 Backplot the toolpaths
Backplot shows the path the tools take to cut the part This display lets you spot errors in the program before you
machine the part As you backplot toolpaths, Mastercam displays additional information such as the X, Y, and Z coordinates, the path length, the minimum and maximum coordinates, and the cycle time.
Backplotting is the quickest way to confirm the toolpath With backplot, you do not see material being removed,
you only see tool motion compared to the finished part.
n In the Toolpaths Manager, click on Select all
operations icon as shown.
n Select Backplot selected operations icon as shown.
n In the Backplot dialog box, make sure that the following buttons are
turned on (they appear in a darker color) to displayed the toolpath with
color codes and see the insert, the holder and the rapid moves
Note: When Toolpath display with color codes is enabled, the
default colors are yellow for rapid moves and blue for feed rate moves
For better display purpose, this book use different colors which can be
set in the Backplot Options.
n You can step through the Backplot by
using the Step forward or Step
back buttons
n You can adjust the speed of the
backplot
n Select the Play button to run Backplot.
n The toolpath should look as shown
Trang 40n From the Toolpaths Manager, select the
Parameters of the Rough toolpath.
n In the Rough parameters page, click on the Plunge Parameters button.
n In the Plunge Cut Parameters dialog box,
enable Allow plunging in relief and leave
the rest of the parameters as shown
n Select the OK button to exit Plunge Cut
Parameters dialog box.
n Select the OK button to exit Lathe Rough
Fanuc TT Left Spindle Toolpaths Step 3: Rough The Part Using The Lower Turret