CAM Advanced Tutorial_Full Machine Simulation
CAM Advanced Tutorial_Full Machine Simulation
Full Machine
Simulation
Copyright and Trademarks
ZWSOFT CO., LTD.(GUANGZHOU). All rights reserved.
This tutorial may be reproduced provided it complies with the terms presented on the LICENSE AGREEMENT
supplied.
ZWSOFT CO., LTD. (GUANGZHOU) and the program authors have no liability to the purchaser or any other
entity, with respect to any liability, loss, or damage caused, directly or indirectly by this software and training
materials, including but not limited to, any interruptions of service, loss of business, anticipatory profits, or
consequential damages resulting from the use of or operation of this software.
Updates may be made to this tutorial and incorporated into later editions.
ZWCAD™, ZWSOFT™, the ZWCAD™ logo, and the ZWSOFT™ logo are all trademarks of ZWSOFT CO., LTD.
(GUANGZHOU)
Printed in P. R. China.
I
Foreword
In this tutorial, we provide various case studies, which are from easy to difficult and combine theory with
practice. We hope to improve users’ 3D CAD/CAM skills and techniques with ZW3D.
The tutorial bases on our technical engineers’ years of experience in the industry and ZW3D, which is the
fruit of a lot of efforts and wisdom. We sincerely hope that the tutorial will do help to you, and your precious
advice on it is highly welcomed.
There are three series for this tutorial: Primary Tutorial, From Entry to Master Tutorial, and Advanced
Tutorial. From easy to difficult, they offer a step-by-step learning process that can meet different user needs.
Primary Tutorial series is for users who have little or no prior 3D CAD/CAM experience. If you are green hands
of 3D CAD/CAM software, or if you are a new user of ZW3D, we recommend that you get started with this
tutorial. Here you can learn the basic knowledge and concepts of ZW3D, rapidly master the simple operations
and workflows of ZW3D, and practice simple cases.
From Entry to Master Tutorial series is for users with basic know-how of 3D CAD/CAM software. If you have
experience in 3D CAD/CAM software and want to master common functions of ZW3D, we suggest that you
start with this series. Here you can dig deeper into the functions and master more operations of ZW3D.
Advanced Tutorial series is for users with practical experience in 3D CAD/CAM software. If you hope to have
a comprehensive command of ZW3D and get the complicated operations done independently, you can
choose to learn this series. Here you can learn to use the software more flexibly and get rich experience to
increase your efficiency.
What you are learning is ZW3D Full Machine Simulation, an advanced tutorial.
II
Contents
1 An Introduction to Full Machine Simulation Modules ............................................................................. 1
1.1 Advantages of Full Machine Simulation ........................................................................................ 1
1.2 Full Machine Simulation Modules ................................................................................................. 1
2 Machine Builder ....................................................................................................................................... 1
2.1 Workflow of Machine Builder ....................................................................................................... 1
2.2 Assemble 3D Components ............................................................................................................ 2
2.2.1 Export STL files ................................................................................................................... 3
2.2.2 Import STL Files .................................................................................................................. 4
2.3 Adjust the Machine Structure and Specify Movement Relationships ........................................... 6
2.3.1 Insert Machine Axes ........................................................................................................... 6
2.3.2 Adjust the Machine Structure ............................................................................................ 6
2.4 Specify Machine Properties .......................................................................................................... 7
2.4.1 Specify the Machine Type .................................................................................................. 7
2.4.2 Adjust the Position of Components ................................................................................... 7
2.4.3 Specify the Axis Direction & Maximum Axis Travel ............................................................ 8
2.5 Load the Tool Head ..................................................................................................................... 10
2.6 Load the Workpiece .................................................................................................................... 11
2.7 Save the Machine ....................................................................................................................... 12
3 Full Machine Simulation......................................................................................................................... 12
3.1 The Interface and Parameters .................................................................................................... 12
3.1.1 An Introduction to Panels ................................................................................................ 13
3.1.2 An Introduction to Options .............................................................................................. 14
3.2 Workflow .................................................................................................................................... 15
3.3 Machine Simulation on a 3X Program ......................................................................................... 15
3.3.1 Preparatory Work ............................................................................................................ 15
3.3.2 Launch FMS ...................................................................................................................... 16
3.3.3 Parameter Settings........................................................................................................... 17
3.3.4 Run FMS ........................................................................................................................... 18
3.3.5 Tool Compensation .......................................................................................................... 20
3.4 Machine Simulation on a 5X Program ......................................................................................... 21
3.4.1 Simulation with RTCP ....................................................................................................... 21
3.4.2 Simulation without RTCP.................................................................................................. 23
III
Full Machine Simulation
Focusing on Full Machine Simulation in the CAM module of ZW3D, this tutorial will help you master the
workflow and some specific operations of machine builder and machine simulation. Besides, it can help you
better understand machine structure.
Key Points:
Machine Structure Analysis
Machine Building Workflow
Machine Simulation Workflow
Tool Compensation
5X RTCP Function
2 Machine Builder
In this chapter, you will learn the workflow of machine builder, which will be illustrated with the
5x_table_C_on_A.Z3 file.
Here is the analysis: machines can be divided into fixed parts and movable parts. There are mainly two types
of movable parts: one drives the tool movement and the other drives the workpiece movement.
According to the case above, the parts that drive the tool movement are X, Y, and Z axes. And according to
the machine structure, the Z axis is based on the X axis, and the X axis is based on the Y axis. As for the parts
that drive the workpiece movement, they are A and C axes, and the C axis is based on the A axis. Hence, the
machine structure diagram should be as follows.
2
Full Machine Simulation
STEP 02 Double-click on a component, for example, zw_5x_base, to activate it and then export it to the STL
file with the same settings as shown in the below figure. Repeat the same operation for each
component.
STEP 03 To ensure that the exported components can be used to assemble a virtual machine in the machine
builder correctly, it is suggested to create a new Part file to which you import all the STL files exported
from STEP 02 at once. Follow the steps shown in the figure below and check if all the components
are in the right position in the modeling environment.
3
Full Machine Simulation
Tip: You can directly import the existing machine model (STL files) to the machine builder, then modify its
origin and direction, and adjust the position of each component.
2.2.2 Import STL Files
STEP 01 Create a new CAM Plan, click the Full Machine Simulation button to enter the FMS environment,
and then click the Machine Builder button to enter the machine builder environment.
STEP 02 Rename the machine folder and then right-click on it to create a new Assembly.
5
Full Machine Simulation
2.3 Adjust the Machine Structure and Specify Movement Relationships
After importing STL files to the machine builder, you need to create the axes.
2.3.1 Insert Machine Axes
As we have analyzed in Chapter 2.1, this machine involves linear axes (X, Y, and Z) and rotary axes (A and C).
So you need to insert these five axes following the step below.
STEP 01 Right-click on the Base folder to create a new Assembly, and then insert the linear X, Y, and Z axes
and rotary A and C axes, respectively.
6
Full Machine Simulation
STEP 02 Adjust the axis structure.
7
Full Machine Simulation
Figure 16 The Directions and Axis Travel Limitations of the X, Y, and Z Axes
8
Full Machine Simulation
Figure 17 The Directions and Axis Travel Limitations of the A and C Axes
Tip 1: When the rotary axis of the machine component is inconsistent with the world coordinate system, you
can set the Center of Rotation value in the Properties panel, so that components can rotate along the correct
rotary axis.
9
Full Machine Simulation
2.5 Load the Tool Head
The tool head must be loaded to the bottom center point of the spindle (Z_Slide) directly. In other words,
you need to get the coordinates of that point as the location of the tool head. The steps below will show you
how to get the coordinates of the bottom center point of spindle and insert the tool head.
STEP 01 Right-click on the Z axis to create a new Assembly, and then insert the tool head.
STEP 02 Double-click on the bottom face of the spindle (Z_Slide) to get the coordinates of the center point.
Figure 21 Getting the Coordinates of the Bottom Center Point of the Spindle
STEP 03 Use the coordinates defined in STEP 02 as the origin of the toolhead.
Note: As the comparison in Figure 21 shows, when running FMS, the tools are loaded to the bottom center
point of the spindle.
10
Full Machine Simulation
2.6 Load the Workpiece
Workpiece here means the placement point of the workpiece. When loading the workpiece onto the
machine, the origin of workpiece programming coordinate system will coincide with this placement point,
which is based on the real machining situation. In this case, let’s set the top center of C_Table as the
workpiece placement point. The steps below will show you how to insert the workpiece.
STEP 01 Right-click on the C axis to create a new Assembly, and then insert the workpiece.
STEP 03 Use the coordinates defined in STEP 02 as the origin of the workpiece.
11
Full Machine Simulation
2.7 Save the Machine
After finishing all the settings, you can save the machine file (.mch) under the same folder of the STL files.
Then, put the whole folder under the installation path, …:\ZW3D2022\languages\language
version\resource\machine_library. You can name the folder after the .mch file, for example,
5x_table_C_on_A_test.
Note: When running FMS, ZW3D will read the machine library in the corresponding language folder in the
installation path. Therefore, the machine file must be saved under the corresponding language folder.
METHOD 02 Select and right-click on a certain operation in the CAM Manager, and then click the Full Machine
Simulation button.
12
Full Machine Simulation
After that, the FMS environment should be as shown below.
Figure 30 The Job Tree, Axes, Properties and Pick Info Panels
NC Program: Display the NC codes in FMS and toggle breakpoints by clicking the Status column. The NC
codes are generated with the post configuration file ZW_FMS_5X.znc (post processing can only be
configured through this file currently) and based on the default coordinate system.
13
Full Machine Simulation
Breakpoint: Display the information of the breakpoints. You can click the Status column of a specific line in
the NC program to set the breakpoints and then check them.
Figure 33 View Options (from Left to Right Are the Options Listed above)
Settings: Specify the simulation options, analysis settings, background color and 5X control.
Machine Tool Register: Set the tool compensation and work coordinate system.
14
Full Machine Simulation
3.2 Workflow
STEP 02 Check the relevant preparation work including the workpiece, stock, tools and toolpaths.
15
Full Machine Simulation
Note: Since the machine will change tools and implement length or radius compensation according to the T,
H, and D numbers in NC files, you need to set the Tool ID, Radius compensation number (D register) and
Length compensation number (H register) for tools. Before you enter the FMS environment, ZW3D will
automatically check whether there is a same Tool ID and remind you to modify the tools.
3.3.2 Launch FMS
STEP 01 You can select all the operations, right-click on it and choose Full Machine Simulation, or go to Output
tab, and then click the Full Machine Simulation button.
16
Full Machine Simulation
3.3.3 Parameter Settings
STEP 01 Check the position of the workpiece. After entering the FMS environment, the position of the
workpiece may not be correct, so the first step is to check its position. In this case, the workpiece is
28 mm (the total height of the workpiece is 28mm) below in the Z direction. So, you need to move it
up by 28 mm.
STEP 02 Adjust the position of the workpiece. In the Job Tree panel, right-click on Workpiece to invoke the
Workpiece Frame Setting dialog box. After you move it up by 28 mm in the Z direction, the Attach
Point will go from (0,0,-87.9) to (0,0,-59.9).
STEP 03 Set the work coordinate system, making sure that the origin of the workpiece and the origin of the
work coordinate system are the same. In this case, you need to set G54 to (0,0,-59.9) in Machine
Tool Register.
17
Full Machine Simulation
Tip: In STEP 01, you can measure the height of the workpiece in the CAD environment or right-click on
C_table to hide it and measure the height of the workpiece.
18
Full Machine Simulation
After that, click Part Comparison to compare the simulation result with the designed part. You can click the
Setting option and customize tolerance bands.
Besides, you can perform clash and gouge checks during the simulation. Just check the Stop on clash and
Stop on gouge options before you run FMS.
19
Full Machine Simulation
3.3.5 Tool Compensation
Tool compensation includes length and radius compensations, which should be identical with the CAM
program setting so that you get the correct simulation result. Let’s take Tool_compensation_CAM in FMS
case.z3 as an example and see how to set the radius compensation.
STEP 01 Open FMS case.Z3 and double-click on it to open Tool_compensation_CAM. Profilecut 1 is an
operation with radius compensation, and the tool ID, D register and H register have been set to 1.
As the figure above shows, the toolpaths were generated with radius compensation. However, the radius
compensation has not been set in FMS. As a result, the simulation is not running according to the toolpaths,
causing the overcut.
20
Full Machine Simulation
Note: RTCP (Rotated Tool Center Point), also known as TCPM, TCPC or RPCP, refers to the function
maintaining rotary axes at a constant angle between the tool and the surface to be machined. In 5-axis
machining, the additional motion of the tool point is generated due to the rotary motion following the tool
point path and the angle between the tool and the workpiece. Since the control point of a CNC system is often
not consistent with the tool point, the CNC system should automatically correct the control point to ensure
that the tool point moves according to the given trajectory.
3.4.1 Simulation with RTCP
Let’s take Impeller_CAM in 5X_case.Z3 as an example.
SYS.MX_RTCP_ON = 1 is the default setting in the ZW_FMS_5X.znc file, which means that the output NC
matches the machine with the RTCP function by default. The following steps will show you how to stimulate
the machining of the impeller with RTCP.
STEP 01 Open 5X_case.Z3 and double-click on it to open Impeller_CAM.
21
Full Machine Simulation
STEP 02 Right-click on the 5x Flowcut 1 operation and click Full Machine Simulation to enter the FMS
environment.
STEP 04 Run the simulation with RTCP. You can adjust the perspective to better observe the movement of
the tool.
22
Full Machine Simulation
23
Full Machine Simulation
STEP 03 Re-enter the FMS environment and repeat STEP 01~03 in Chapter 3.4.1, then uncheck the RTCP
option and run the simulation to get the correct simulation result withour RTCP.
24
Full Machine Simulation
Epilogue
25