What is a CNC machine?
CNC stands for “Computer Numerically-controlled” machines. These are machines which are digitally controlled fabrication machines. Furthermore CNC machines use computer aided software to to allow CAD models to be operated. The integration between these two softwares is called CAD-CAM.
Processes for CNC machining:
- Design the part to be made in CAD
- CAM: define a series of cutting operations + export this as a G-code and load this into the software that runs the machine
- Set ZYXO values
- Run machine and carry out tests
- Run machine
What is the G-code?
G-code stands for “Geometric code” and is a programming language for CNC that instructs machines where and how to move.
This post will show you in detail how to CNC machine one a female mould tool for a silicone resin injection.
Step 1: Create a CAD model that you want to CNC. For example I have created a tile to CNC. It makes things easier if you design your model parallel to the front-line when it comes to setting the coordinates, as shown below.
Step 2: Generate a Tool Path
Move between “model” and “manufacture” as shown below.
CAM setup (Step 2)
Click on setup next to “manufacture” as shown below. Additionally the “z’ axis should be pointing upwards and the origin should be at the top of the centre of the model.
Next you want to add stock to the sides and bottom of your model. Doing this you must select “stock” as show in the image below and add 10mm on the sides 3mm on the top and 2mm on the bottom. Once this is done click ok. Leave all the other boxes as they are.
Step 3: Next you are going to want to right click on your setup and click new operation, 2D milling and then face.
Step 4: In the tool section you are going to want to select you tool. The details of which tool to select are shown below.
Step 5: Then go into “geometry and select your outer edge as your chain as shown below. This is to outline the edge of the mould.
Step 5: In step 5 you will select the height section. As shown below you only want to edit the top three boxes including clearance height, retract height and feed height. You want to change the “from section for all three to specify “top height”. Next you want to change each thee “offsets” to 3mm. Both images below show what you setup should look like after these steps have been completed.
Step 6: In step 6 you want to select “passes”. Here you want to edit 3 sections. Firstly select the box which says “multiple depths” so there is a tick inside the box. Secondly you want to edit the “step-over” to 1.5mm and finally you want to edit the “stock offset” to 0.5mm. When all of the is done click “ok”.
Step 7: After you have selected “ok” your mould should look similar to what is shown in the image below with a simulation of the tool-path and drill bit. Next you want to right click on ur face and select “simulate”.
Step 8: After I simulated the CNC the image below shows the outcome. However I have ran into a problem. This is because the 1mm engraved letter on the mould was not cut out. Additionally there was no counter around the edges.
I attempted to add an additional chain around the T however it made the CNC router out the inverse of what I wanted so this was not the solution.
After further research I realised I left out the 2D contour and the 2D pocket for the T shape. After I selected the outline for the contour and selected the T shape as the 2D pocket I attempted to simulate the process again and it finally worked as shown in the image below.
G-Code:
(PGM, NAME=”1001″)
; T1 D=3 CR=0 – ZMIN=-4 – FLAT END MILL
: G90 G40 G94
G17
G71
M26
; FACE4
M26
:T1 M6
M26
S5820 M3
H0
M8
G0 X24.486 Y-24.499
G1 Z3 F349
Z-0.7
G18 G3 X24.186 Z-1 I24.186 K-0.7
G1 X23.353
X-23.353
X-24.234
G17 G2 Y-23.013 I-24.234 J-23.756
G1 X24.234
X24.499
G3 Y-21.526 I24.499 J-22.269
G1 X-24.499
X-24.5
G2 Y-20.04 I-24.5 J-20.783
G1 X24.5
G3 Y-18.554 I24.5 J-19.297
G1 X-24.5
G2 Y-17.068 I-24.5 J-17.811
G1 X24.5
G3 Y-15.582 I24.5 J-16.325
G1 X4.489
G2 Y-14.095 I4.489 J-14.838
G1 X4.5
X24.5
G3 Y-12.609 I24.5 J-13.352
G1 X4.5
G2 Y-11.123 I4.5 J-11.866
G1 X24.5
G3 Y-9.637 I24.5 J-10.38
G1 X4.5
G2 Y-8.15 I4.5 J-8.894
G1 X24.5
G3 Y-6.664 I24.5 J-7.407
G1 X4.5
G2 Y-5.178 I4.5 J-5.921
G1 X24.5
G3 Y-3.692 I24.5 J-4.435
G1 X4.5
G2 Y-2.206 I4.5 J-2.949
G1 X24.5
G3 Y-0.719 I24.5 J-1.462
G1 X4.5
G2 Y0.767 I4.5 J0.024
G1 X24.5
G3 Y2.253 I24.5 J1.51
G1 X4.5
G2 Y3.739 I4.5 J2.996
G1 X24.5
G3 Y5.225 I24.5 J4.482
G1 X4.5
G2 Y6.712 I4.5 J5.969
G1 X24.5
G3 Y8.198 I24.5 J7.455
G1 X4.5
G2 Y9.684 I4.5 J8.941
G1 X24.5
G3 Y11.17 I24.5 J10.427
G1 X15.5
G2 Y12.657 I15.5 J11.913
G1 X24.5
G3 Y14.143 I24.5 J13.4
G1 X15.5
G2 Y15.629 I15.5 J14.886
G1 X24.5
G18 G2 X24.8 Z-0.7 I24.5 K-0.7
G0 Z3
X-1.55 Y-15.582
G1 Z-0.7 F349
G3 X-1.85 Z-1 I-1.85 K-0.7
G1 X-3.489
X-24.5
G17 G2 Y-14.095 I-24.5 J-14.838
G1 X-3.5
G3 Y-12.609 I-3.5 J-13.352
G1 X-24.5
G2 Y-11.123 I-24.5 J-11.866
G1 X-3.5
G3 Y-9.637 I-3.5 J-10.38
G1 X-24.5
G2 Y-8.15 I-24.5 J-8.894
G1 X-3.5
G3 Y-6.664 I-3.5 J-7.407
G1 X-24.5
G2 Y-5.178 I-24.5 J-5.921
G1 X-3.5
G3 Y-3.692 I-3.5 J-4.435
G1 X-24.5
G2 Y-2.206 I-24.5 J-2.949
G1 X-3.5
G3 Y-0.719 I-3.5 J-1.462
G1 X-24.5
G2 Y0.767 I-24.5 J0.024
G1 X-3.5
G3 Y2.253 I-3.5 J1.51
G1 X-24.5
G2 Y3.739 I-24.5 J2.996
G1 X-3.5
G3 Y5.225 I-3.5 J4.482
G1 X-24.5
G2 Y6.712 I-24.5 J5.969
G1 X-3.5
G3 Y8.198 I-3.5 J7.455
G1 X-24.5
G2 Y9.684 I-24.5 J8.941
G1 X-3.5
G3 Y11.17 I-3.5 J10.427
G1 X-15.5
X-24.5
G2 Y12.657 I-24.5 J11.913
G1 X-15.5
G3 Y14.143 I-15.5 J13.4
G1 X-24.5
G2 Y15.629 I-24.5 J14.886
G1 X-15.5
G18 G2 X-15.2 Z-0.7 I-15.5 K-0.7
G0 Z3
X-26.45 Y17.115
G1 Z-0.7 F349
G2 X-26.15 Z-1 I-26.15 K-0.7
G1 X-24.5
X24.5
G17 G3 Y18.601 I24.5 J17.858
G1 X-24.5
G2 Y20.088 I-24.5 J19.344
G1 X24.5
G3 Y21.574 I24.5 J20.831
G1 X24.497
X-24.497
G2 Y23.06 I-24.497 J22.317
G1 X-24.218
X24.218
G18 G2 X24.518 Z-0.7 I24.218 K-0.7
G0 Z3
X24.486 Y-24.499
G1 Z-1.7 F349
G3 X24.186 Z-2 I24.186 K-1.7
G1 X23.353
X-23.353
X-24.234
G17 G2 Y-23.013 I-24.234 J-23.756
G1 X24.234
X24.499
G3 Y-21.526 I24.499 J-22.269
G1 X-24.499
X-24.5
G2 Y-20.04 I-24.5 J-20.783
G1 X24.5
G3 Y-18.554 I24.5 J-19.297
G1 X-24.5
G2 Y-17.068 I-24.5 J-17.811
G1 X24.5
G3 Y-15.582 I24.5 J-16.325
G1 X4.489
G2 Y-14.095 I4.489 J-14.838
G1 X4.5
X24.5
G3 Y-12.609 I24.5 J-13.352
G1 X4.5
G2 Y-11.123 I4.5 J-11.866
G1 X24.5
G3 Y-9.637 I24.5 J-10.38
G1 X4.5
G2 Y-8.15 I4.5 J-8.894
G1 X24.5
G3 Y-6.664 I24.5 J-7.407
G1 X4.5
G2 Y-5.178 I4.5 J-5.921
G1 X24.5
G3 Y-3.692 I24.5 J-4.435
G1 X4.5
G2 Y-2.206 I4.5 J-2.949
G1 X24.5
G3 Y-0.719 I24.5 J-1.462
G1 X4.5
G2 Y0.767 I4.5 J0.024
G1 X24.5
G3 Y2.253 I24.5 J1.51
G1 X4.5
G2 Y3.739 I4.5 J2.996
G1 X24.5
G3 Y5.225 I24.5 J4.482
G1 X4.5
G2 Y6.712 I4.5 J5.969
G1 X24.5
G3 Y8.198 I24.5 J7.455
G1 X4.5
G2 Y9.684 I4.5 J8.941
G1 X24.5
G3 Y11.17 I24.5 J10.427
G1 X15.5
G2 Y12.657 I15.5 J11.913
G1 X24.5
G3 Y14.143 I24.5 J13.4
G1 X15.5
G2 Y15.629 I15.5 J14.886
G1 X24.5
G18 G2 X24.8 Z-1.7 I24.5 K-1.7
G0 Z3
X-1.55 Y-15.582
G1 Z-1.7 F349
G3 X-1.85 Z-2 I-1.85 K-1.7
G1 X-3.489
X-24.5
G17 G2 Y-14.095 I-24.5 J-14.838
G1 X-3.5
G3 Y-12.609 I-3.5 J-13.352
G1 X-24.5
G2 Y-11.123 I-24.5 J-11.866
G1 X-3.5
G3 Y-9.637 I-3.5 J-10.38
G1 X-24.5
G2 Y-8.15 I-24.5 J-8.894
G1 X-3.5
G3 Y-6.664 I-3.5 J-7.407
G1 X-24.5
G2 Y-5.178 I-24.5 J-5.921
G1 X-3.5
G3 Y-3.692 I-3.5 J-4.435
G1 X-24.5
G2 Y-2.206 I-24.5 J-2.949
G1 X-3.5
G3 Y-0.719 I-3.5 J-1.462
G1 X-24.5
G2 Y0.767 I-24.5 J0.024
G1 X-3.5
G3 Y2.253 I-3.5 J1.51
G1 X-24.5
G2 Y3.739 I-24.5 J2.996
G1 X-3.5
G3 Y5.225 I-3.5 J4.482
G1 X-24.5
G2 Y6.712 I-24.5 J5.969
G1 X-3.5
G3 Y8.198 I-3.5 J7.455
G1 X-24.5
G2 Y9.684 I-24.5 J8.941
G1 X-3.5
G3 Y11.17 I-3.5 J10.427
G1 X-15.5
X-24.5
G2 Y12.657 I-24.5 J11.913
G1 X-15.5
G3 Y14.143 I-15.5 J13.4
G1 X-24.5
G2 Y15.629 I-24.5 J14.886
G1 X-15.5
G18 G2 X-15.2 Z-1.7 I-15.5 K-1.7
G0 Z3
X-26.45 Y17.115
G1 Z-1.7 F349
G2 X-26.15 Z-2 I-26.15 K-1.7
G1 X-24.5
X24.5
G17 G3 Y18.601 I24.5 J17.858
G1 X-24.5
G2 Y20.088 I-24.5 J19.344
G1 X24.5
G3 Y21.574 I24.5 J20.831
G1 X24.497
X-24.497
G2 Y23.06 I-24.497 J22.317
G1 X-24.218
X24.218
G18 G2 X24.518 Z-1.7 I24.218 K-1.7
G0 Z3
X24.486 Y-24.499
G1 Z-2.7 F349
G3 X24.186 Z-3 I24.186 K-2.7
G1 X23.353
X-23.353
X-24.234
G17 G2 Y-23.013 I-24.234 J-23.756
G1 X24.234
X24.499
G3 Y-21.526 I24.499 J-22.269
G1 X-24.499
X-24.5
G2 Y-20.04 I-24.5 J-20.783
G1 X24.5
G3 Y-18.554 I24.5 J-19.297
G1 X-24.5
G2 Y-17.068 I-24.5 J-17.811
G1 X24.5
G3 Y-15.582 I24.5 J-16.325
G1 X4.489
G2 Y-14.095 I4.489 J-14.838
G1 X4.5
X24.5
G3 Y-12.609 I24.5 J-13.352
G1 X4.5
G2 Y-11.123 I4.5 J-11.866
G1 X24.5
G3 Y-9.637 I24.5 J-10.38
G1 X4.5
G2 Y-8.15 I4.5 J-8.894
G1 X24.5
G3 Y-6.664 I24.5 J-7.407
G1 X4.5
G2 Y-5.178 I4.5 J-5.921
G1 X24.5
G3 Y-3.692 I24.5 J-4.435
G1 X4.5
G2 Y-2.206 I4.5 J-2.949
G1 X24.5
G3 Y-0.719 I24.5 J-1.462
G1 X4.5
G2 Y0.767 I4.5 J0.024
G1 X24.5
G3 Y2.253 I24.5 J1.51
G1 X4.5
G2 Y3.739 I4.5 J2.996
G1 X24.5
G3 Y5.225 I24.5 J4.482
G1 X4.5
G2 Y6.712 I4.5 J5.969
G1 X24.5
G3 Y8.198 I24.5 J7.455
G1 X4.5
G2 Y9.684 I4.5 J8.941
G1 X24.5
G3 Y11.17 I24.5 J10.427
G1 X15.5
G2 Y12.657 I15.5 J11.913
G1 X24.5
G3 Y14.143 I24.5 J13.4
G1 X15.5
G2 Y15.629 I15.5 J14.886
G1 X24.5
G18 G2 X24.8 Z-2.7 I24.5 K-2.7
G0 Z3
X-1.55 Y-15.582
G1 Z-2.7 F349
G3 X-1.85 Z-3 I-1.85 K-2.7
G1 X-3.489
X-24.5
G17 G2 Y-14.095 I-24.5 J-14.838
G1 X-3.5
G3 Y-12.609 I-3.5 J-13.352
G1 X-24.5
G2 Y-11.123 I-24.5 J-11.866
G1 X-3.5
G3 Y-9.637 I-3.5 J-10.38
G1 X-24.5
G2 Y-8.15 I-24.5 J-8.894
G1 X-3.5
G3 Y-6.664 I-3.5 J-7.407
G1 X-24.5
G2 Y-5.178 I-24.5 J-5.921
G1 X-3.5
G3 Y-3.692 I-3.5 J-4.435
G1 X-24.5
G2 Y-2.206 I-24.5 J-2.949
G1 X-3.5
G3 Y-0.719 I-3.5 J-1.462
G1 X-24.5
G2 Y0.767 I-24.5 J0.024
G1 X-3.5
G3 Y2.253 I-3.5 J1.51
G1 X-24.5
G2 Y3.739 I-24.5 J2.996
G1 X-3.5
G3 Y5.225 I-3.5 J4.482
G1 X-24.5
G2 Y6.712 I-24.5 J5.969
G1 X-3.5
G3 Y8.198 I-3.5 J7.455
G1 X-24.5
G2 Y9.684 I-24.5 J8.941
G1 X-3.5
G3 Y11.17 I-3.5 J10.427
G1 X-15.5
X-24.5
G2 Y12.657 I-24.5 J11.913
G1 X-15.5
G3 Y14.143 I-15.5 J13.4
G1 X-24.5
G2 Y15.629 I-24.5 J14.886
G1 X-15.5
G18 G2 X-15.2 Z-2.7 I-15.5 K-2.7
G0 Z3
X-26.45 Y17.115
G1 Z-2.7 F349
G2 X-26.15 Z-3 I-26.15 K-2.7
G1 X-24.5
X24.5
G17 G3 Y18.601 I24.5 J17.858
G1 X-24.5
G2 Y20.088 I-24.5 J19.344
G1 X24.5
G3 Y21.574 I24.5 J20.831
G1 X24.497
X-24.497
G2 Y23.06 I-24.497 J22.317
G1 X-24.218
X24.218
G18 G2 X24.518 Z-2.7 I24.218 K-2.7
G0 Z3
G17
; 2D CONTOUR1
H0
G0 Z15
X-0.3 Y27.4
Z5
G1 Z1 F30
Z-3.7
G19 G2 Y27.1 Z-4 J27.1 K-3.7 F349
G1 Y26.8
G17 G3 X0 Y26.5 I0 J26.8
G1 X20
G2 X26.5 Y20 I20 J20
G1 Y-20
G2 X20 Y-26.5 I20 J-20
G1 X-20
G2 X-26.5 Y-20 I-20 J-20
G1 Y20
G2 X-20 Y26.5 I-20 J20
G1 X0
G3 X0.3 Y26.8 I0 J26.8
G1 Y27.1
G19 G3 Y27.4 Z-3.7 J27.1 K-3.7
G0 Z15
G17
; 2D POCKET1
H0
G0 X-0.517 Y13.787
Z15
Z5
G1 Z2.8 F349
X-0.537 Y13.754 Z2.653
X-0.589 Y13.662 Z2.544
X-0.649 Y13.53 Z2.5
G3 X2.005 Y12.492 Z2.344 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z2.187 I0.678 J13.011 K0.313
X2.005 Y12.492 Z2.031 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z1.875 I0.678 J13.011 K0.313
X2.005 Y12.492 Z1.718 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z1.562 I0.678 J13.011 K0.313
X2.005 Y12.492 Z1.406 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z1.249 I0.678 J13.011 K0.313
X2.005 Y12.492 Z1.093 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z0.937 I0.678 J13.011 K0.313
X2.005 Y12.492 Z0.78 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z0.624 I0.678 J13.011 K0.313
X2.005 Y12.492 Z0.468 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z0.311 I0.678 J13.011 K0.313
X2.005 Y12.492 Z0.155 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-0.001 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-0.158 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-0.314 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-0.47 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-0.627 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-0.783 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-0.939 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-1.096 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-1.252 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-1.408 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-1.565 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-1.721 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-1.877 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-2.034 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-2.19 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-2.346 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-2.503 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-2.659 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-2.815 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-2.972 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-3.128 I0.678 J13.011 K0.313
X2.005 Y12.492 Z-3.284 I0.678 J13.011 K0.313
X-0.649 Y13.53 Z-3.441 I0.678 J13.011 K0.313
X-0.294 Y11.969 Z-3.5 I0.678 J13.011 K0.313
G2 X0.333 Y11.233 I-3.165 J8.889
G3 X0.667 I0.5 J11.345
G2 X2.105 Y12.562 I4.165 J8.889
X4 Y13.057 I4 J9.184
G1 X10.669 Y13.012
G3 X10.988 Y13.331 I10.669 J13.331
G1 Y13.669
G3 X10.669 Y13.988 I10.669 J13.669
G1 X-10.669
G3 X-10.988 Y13.669 I-10.669 J13.669
G1 Y13.331
G3 X-10.669 Y13.012 I-10.669 J13.331
G1 X-3 Y13.057
G2 X-1.105 Y12.562 I-3 J9.184
X-0.294 Y11.969 I-3.165 J8.889
X-0.11 Y11.035 I-0.847 J11.375
G3 X-0.144 Y10.084 I1.005 J10.52
G2 X0.055 Y9 I-3 J9
G1 X0.01 Y-13.671
G3 X0.329 Y-13.99 I0.329 J-13.671
G1 X0.671
G3 X0.99 Y-13.671 I0.671 J-13.671
G1 X0.945 Y9
G2 X4 Y12.055 I4 J9
X7.835 Y12.033 I4 J-314.839
G3 X11.671 Y12.01 I11.671 J338.904
X11.99 Y12.329 I11.671 J12.329
G1 Y14.671
G3 X11.671 Y14.99 I11.671 J14.671
G1 X-11.671
G3 X-11.99 Y14.671 I-11.671 J14.671
G1 Y12.329
G3 X-11.671 Y12.01 I-11.671 J12.329
G1 X-3 Y12.055
G2 X-0.144 Y10.084 I-3 J9
X-0.484 Y9.074 I-0.928 J9.786
G3 X-1 Y8.143 I0.098 J8.143
G1 Y-15
X2
Y9
G2 X4 Y11 I4 J9
G1 X13
Y16
X-13
Y11
X-3
G2 X-1 Y9 I-3 J9
G1 Y8.143
X-0.995 Y8.086 Z-3.489
X-0.978 Y8.031 Z-3.477
X-0.957 Y7.987 Z-3.445
X-0.928 Y7.948 Z-3.412
X-0.881 Y7.903 Z-3.315
X-0.862 Y7.89 Z-3.2
G0 Z15
M9
M26
G0 X0 Y0
M30
M2
Be First to Comment