giáo trình lập trình gia công tiện cnc trên phần mềm mastercam mới nhất, đầy đủ dễ hiểu, có bài tập thực hành nhiều cho chúng ta tự thực hành, và làm quen từng dạng bài từ cơ bản tới nâng cao. Lập trình mastercam 3 trục, 4 trục.
Generic Fanuc Mill-Turn LTZ Dual Spindle With B-axis Head And Lower Turret That Rotates About The Z-axis Mastercam 2023 Generic Fanuc Mill-Turn LTZ (Dual spindle with B-axis head and Lower turret that rotates about the Z-axis.) Copyright: 1998 - 2022 In-House Solutions Inc All rights reserved Software: Mastercam 2023 Date: January 3, 2022 Notice In-House Solutions Inc reserves the right to make improvements to this manual at any time and without notice Disclaimer Of All Warranties And Liability In-House Solutions Inc makes no warranties, either express or implied, with respect to this manual 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 Should the manual prove defective following its purchase, the buyer (and not In-House Solutions Inc., its distributer, or its retailer) assumes the entire cost of all necessary servicing, repair, of correction and any incidental or consequential damages In no event will In-House Solutions Inc be liable for direct, indirect, or consequential damages resulting from any defect in the manual, even if In-House Solutions Inc has been advised of the possibility of such damages Some jurisdictions not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you Copyrights This manual is protected under International copyright laws All rights are reserved This document may not, in whole or part, be copied, photographed, reproduced, translated or reduced 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 Generic Fanuc Mill-Turn LTZ DUAL SPINDLE WITH A B-AXIS HEAD AND LOWER TURRET Mill - Turn Introduction Topics Covered Dual Spindle with a B-axis Head and Lower Turret that rotates about the Zaxis How to add the machine to the list n n Mill-Turn Job setup Topics Covered n n n n n n n Set the Initial Spindle, the Stock Type and Part Handling to Single pieces of stock -Pickoff Select the part geometry and create the sub spindle geometry Set the forged stock Define the Tool plane origin of the initial spindle Define how much the part is sticking out of the chuck Define the Tool plane origin of the sub spindle Set the location where the sub spindle will grab the part Generic Fanuc Mill-Turn LTZ Left Spindle Toolpaths Topics Covered n n n n n n Part Handling Topics Covered n n Right Spindle Toolpaths Pickoff a single part and transfer it in the sub spindle Part Handling Simulation Topics Covered n n n n n n n n n n Upper and Lower Streams Sync & Simulation Multiaxis Unified (Guide) toolpath Transform - Rotate toolpath Create geometry for tool axis control Multiaxis Unified (Morph between Surfaces) toolpath Backplot Mastercam Simulator Right Spindle Lathe Finish toolpath Set the Axis combination/ Spindle Origin Right Spindle Helix Bore toolpath Right Spindle Circle Mill toolpath Right Spindle Contour C-Axis Face toolpath Right Spindle Multiaxis Unified -Guide toolpath Transform Rotate toolpath Right Spindle Multiaxis Unified -Morph between curves toolpath Backplot Verify Topics Covered n n n Mastercam Simulator Sync Manager Post Processing from Sync Manager Table Of Contents Generic Fanuc Mill-Turn LTZDual Spindle With B-axis Head And Lower Turret That Rotates About The Z-axis Generic Fanuc Mill-Turn LTZ Mill - Turn Fanuc LTZ Introduction How To Add The Machine Fanuc LTZ Job Setup 10 13 Introduction: 14 Step 1: Select The Machine 15 Step 2: Machine Configuration 17 Step 3: Setup Type 19 Step 4: WCS 19 Step 5: Part Geometry 20 Step 6: Bar Stock 21 Step 7: Toolplane Origin Z 23 Step 8: Stick Out 23 Step 9: Right Spindle Toolplane Origin Z 25 Step 10: Pickoff 25 Step 11: Save The File 28 Fanuc LTZ Left Spindle Toolpaths 29 Introduction: 30 Step 1: Open The File 33 Step 2: Unified Toolpath Parallel From Curve (Guide) 33 Step 3: Transform Rotate Unified Toolpath 42 Step 4: Create The Geometry For The Multiaxis Toolpath 44 Step 5: Unified Toolpath - Morph Two Surfaces 51 Step 6: Transform - Rotate Toolpath 59 Step 7: Use Machine Simulation To Verify The Toolpaths 60 Step 8: Save The File 66 Part Handling 69 Step 1: Single Pieces Of Stock -Pickoff 72 Step 2: Simulate The Part Handling 74 Step 3: Save The File 75 Right Spindle Toolpaths 77 Step 1: Open The File 79 Step 2: Create The Right Spindle Turn Profile 79 Step 3: Right Spindle Finish Lathe Toolpath 83 Step 4: Finish The Hexagonal Shape Using Contour 87 Step 5: Chamfer The Hexagon Using Contour 93 Step 6: Helix Bore The 0.8" Diameter Hole 97 Step 7: Circle Mill The 1.35" Hole 102 Step 8: Create The Geometry For The Multiaxis Toolpath 108 Step 9: Front Pocket Roughing - Unified Two Guides 116 Step 10: Transform - Rotate Toolpath 124 Step 11: Front Pocket Finish - Unified Morph Curves 126 Step 12: Multiaxis Utility - Rotate Toolpath 134 Step 13: Save The File 137 Right Spindle Sync & Simulation 139 Step 1: Open The File 141 Step 2: Mastercam Simulator 141 Step 3: Sync The Upper And Lower Streams 145 Step 4: Simulate All Toolpaths 151 Step 5: Fixing The Axis Overflow 155 Step 6: Post The Toolpaths 160 Step 7: Save The File 161 Mill - Turn Fanuc LTZ Introduction Mill - Turn Fanuc LTZ Introduction ABOUT 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 Mill - Turn Fanuc LTZ Introduction GENERIC MILL-TURN MACHINES While in general each Mill-Turn machine file requires its own individual license, generic machines are available for evaluation or training purposes These not require a separate license Generic machine files are available for a number of standard machine configurations for both Seimens and Fanuc controls: n n n n n n Single-stream two-spindle (Fanuc, Seimens) Single-stream single-spindle (Fanuc, Seimens) Single-stream single-spindle + tailstock (Fanuc, Seimens) Multi-stream twin-turret (Fanuc) Multi-stream turret + B-axis head (Fanuc) 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 LTZ.machine that is provided in the software This machine is a Dual Spindle with a B-axis Head and Lower Turret that rotates about the Z-axis Mill - Turn Fanuc LTZ Introduction How To Add The Machine HOW 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 shown n In the Current Machine Definition Directory,select Generic Fanuc Mill-Turn LTZ.machine Click on the Add button n n The machine should be added to the Machine Definition Menu Items n Select the OK button 10 Right Spindle Sync & Simulation n Using the mouse, in the Upper Stream , click on the 12 Spindle Move, End move and drag the mouse to the Lower Stream 13 Turret Park, Lower Reference Return move as shown n Release the mouse to create the sync point between these two operations as shown Step 3: Sync The Upper And Lower Streams 148 Right Spindle Sync & Simulation Step 3: Sync The Upper And Lower Streams 3.3 Perform the Lathe Finish before machining the Contour (2D) n n n Click on the "+" in front of the 15 Contour (2D) and 14 Lathe Finish to expand them as shown Resize the Upper Stream and Lower Stream windows to be able to see all the expanded toolpaths Using the mouse, in the Lower Stream Lathe Finish, click on the Retract move and drag the mouse to the Lower Stream Contour (2D) Approach move as shown 149 Right Spindle Sync & Simulation n n Step 3: Sync The Upper And Lower Streams Release the mouse to create the sync point between these two operations as shown The Sync Manager should look as shown Note: The asterisk * attached to the IOF extension and the yellow button in the Ready ribbon bar at the bottom of the Code Expert These tell you that the changes made in the Sync Manager are not reflected in Mastercam You will have to save the IOF file n Select the Save icon to makes sure that the changes made in Sync Manager are reflected in Mastercam n The button in the Ready ribbon changes to green and no asterisk * is attached to the IOF file as shown 150 Right Spindle Sync & Simulation Step 4: Simulate All Toolpaths STEP 4: SIMULATE ALL TOOLPATHS n In the Sync Manager tab, click on the Launch button as shown 4.1 Enable Stop Collisions n In the Home tab, click on the drop down arrow next to Stop Conditions and enable Collision Note: Setting the Stop Condition to Collision will make it easier to spot the collision as the simulation will stop there You can also double click in the Report list, on the line with the collision, and Mastercam will display the collision in the machine 4.2 Run Mastercam Simulation n Follow the same steps as shown before Note: You can see the result of the first sync: the lower turret is parked below the Left Spindle before the Right Spindle picks the part 151 Right Spindle Sync & Simulation n The Lower Turret moves to the right spindle after the part is in the Right spindle The Finish Lathe toolpath is the first toolpath performed in the Right Spindle n The simulation stops on collision at the right spindle as shown Step 4: Simulate All Toolpaths Note: The tool cutting length is the same as the depth cut (0.5") To fix this, in the Contour (2D) toolpath you can add depth cuts 152 Right Spindle Sync & Simulation Step 4: Simulate All Toolpaths 4.3 Add depth cuts in Contour (2D) n In the Toolpaths Manager panel, click on the Parameters in the Contour (2D) toolpath n Enable Depth cuts and set the rough steps and the finish step as shown Select the OK button to exit the 2D Toolpaths - Contour n parameters 153 Right Spindle Sync & Simulation Step 4: Simulate All Toolpaths 4.4 Simulate all toolpaths in the Mastercam Simulator n n n n In the Toolpaths Manager, make sure all operations are selected Select the Post all selected operations button (G1) From the Sync Manager select the Launch button Run the simulator and part should look as shown 4.5 Check the Report n n Select the Report tab In the Report list there are some alerts and lots of axis overruns 154 Right Spindle Sync & Simulation Step 5: Fixing The Axis Overflow STEP 5: FIXING THE AXIS OVERFLOW n To check where in the program you have the first Axis overflow, double click on it in the Report list as shown Note: It is important to know the axis limits In the Report, the axis that overflows is X1 5.1 Axis Control n In Mastercam Simulator, from the View ribbon, enable Axis Control as shown 155 Right Spindle Sync & Simulation Step 5: Fixing The Axis Overflow n In the Axis Controller panel, rotate the hands to set the Arm Turret and the Spindle Gear to Right Spindle as shown n To check the limits for X1 change the Axis to X1 as shown Note: In the Axis Controller you can see the current X1 value is 15.786 while the Minimum limit of the axis is -15.748 The Maximum limit is set to for this axis 156 Right Spindle Sync & Simulation n Step 5: Fixing The Axis Overflow Rotate the part in the machine and you can see that the overflows are in the finish Unified toolpath Note: To address the issue you need to change the Tool axis control The Singularity event can also create a problem for the machine as it cannot determine the tool axis tilt in these points A Singularity is a situation where the tool axis tilt is at Zero When programming a 5-Axis vector based toolpath, avoid vertical vectors (0, 0, 1), in the middle of the toolpath By using the Side Tilt option, you can add a tilt to the tool to avoid that Singularity event n In the Toolpaths Manager, click on the operation 21Unified Morph Parameters as shown 157 Right Spindle Sync & Simulation n Step 5: Fixing The Axis Overflow In the Tool Axis Control, set the Curve tilt type to Closest point as shown Note: You not need to add a Tilt angle in our case n Regenerate the dirty Transform /Rotate toolpath 5.2 Simulate all toolpaths in the Mastercam Simulator n n n n In the Toolpaths Manager, make sure all operations are selected Select the Post all selected operations button (G1) From the Sync Manager select the Launch button Run the simulator and part should look as shown 158 Right Spindle Sync & Simulation n Step 5: Fixing The Axis Overflow To speed the verification process, in the Move List, click on the line 85 below the19 Unified Guide as shown Note: Once you click on the line 85 the play button will replace the number as shown This procedure speeds up the verification up to the operation selected n Once the simulation reaches the Unified Guide operation click on the Play button to continue to check the unified toolpaths on the right spindle 159 Right Spindle Sync & Simulation Step 6: Post The Toolpaths 5.3 Check the Report n n Select the Report tab In the Report list there are some Proximity alerts Proximity alerts are only available in Simulation mode You can set a distance, currently set to 0.03, which determines how close objects can get before reporting an alert The Proximity alert distance is set in Mastercam Simulator Files, Options as shown STEP 6: POST THE TOOLPATHS n In the Toolpaths Manager, click on the Select all operations icon to select all the toolpaths n From the Toolpaths Manager, select Post all selected operations icon n Mastercam Code Expert will be launched, and from the Sync Manager select the G1 Post button as shown 160 Right Spindle Sync & Simulation n Step 7: Save The File The Upper Stream and the Lower Stream NC files open side be side as shown Note: The G code that you have created will appear on the screen, if the code looks okay you can shut the window down without saving it If you need to change the code, make sure you save it before you close the window down How the program is sent to the machine depends on the shop setup STEP 7: SAVE THE FILE n Use Save As icon from the QAT, and save the file, to the desired location, as RightSpindleToolpaths_Sync_LTZ.MCAM SUMMARY: In this lesson, you were reviewing Mastercam Simulation, Sync Manager and Post processing 161 Right Spindle Sync & Simulation Step 7: Save The File 162