Skip to main content

CNC Turning code generation using SOLIDWORKS

Also Read

Turning line path



; %_N_123_MPF
; basic_turning
N10 G90 G94 G18
N11 G71
N12 LIMS=6000
N13 G53 G0 X0.

; Turning Profile1
N14 T2 D1
N15 G54
N16 M8
N17 G95
N18 G97 S571 M3
N19 G0 X51. Z0
N20 G96 S91 M3
N21 LIMS=5000
N22 G0 Z2
N23 X30.
N24 G1 Z0 F0.127
N25 Z-42.29
N26 X30.6
N27 X30.801 Z-42.294
N28 X31. Z-42.307
N29 X33.828 Z-40.893
N30 X34.336
N31 G0 X41.
N32 Z2
N33 X29.
N34 G1 Z0 F0.127
N35 Z-39.483
N36 Z-39.49
N37 Z-42.29
N38 X30.25
N39 X33.078 Z-40.876
N40 X34.288
N41 G0 X41.
N42 Z2
N43 X28.
N44 G1 Z0 F0.127
N45 Z-37.051
N46 G18 G3 X29. Z-39.49 I-5.7 K-2.439
N47 G1 X31.828 Z-38.076
N48 X32.752
N49 G0 X41.
N50 Z2
N51 X27.
N52 G1 Z0 F0.127
N53 Z-36.114
N54 G3 X28.25 Z-37.366 I-5.2 K-3.376
N55 G1 X31.078 Z-35.952
N56 X31.393
N57 G0 X41.
N58 Z2
N59 X26.
N60 G1 Z0 F0.127
N61 Z-35.446
N62 G3 X27.25 Z-36.314 I-4.7 K-4.044
N63 G1 X30.078 Z-34.9
N64 X30.189
N65 G0 X41.
N66 Z2
N67 X25.
N68 G1 Z0 F0.127
N69 Z-34.929
N70 G3 X26.25 Z-35.596 I-4.2 K-4.561
N71 G1 X29.078 Z-34.182
N72 X29.099
N73 G0 X41.
N74 Z2
N75 X24.
N76 G1 Z0 F0.127
N77 Z-34.515
N78 G3 X25.25 Z-35.048 I-3.7 K-4.975
N79 G1 X28.078 Z-33.633
N80 G0 X41.
N81 Z2
N82 X23.
N83 G1 Z0 F0.127
N84 Z-27.548
N85 G3 X23.633 Z-29.148 I-3.883 K-1.6
N86 X23. Z-30.748 I-4.2
N87 G1 Z-34.18
N88 G3 X24.25 Z-34.61 I-3.2 K-5.31
N89 G1 X27.078 Z-33.196
N90 X27.11
N91 G0 X41.
N92 Z2
N93 X22.
N94 G1 Z0 F0.127
N95 Z-26.622
N96 X22.275 Z-26.858
N97 G3 X23.25 Z-27.894 I-3.521 K-2.29
N98 G1 X26.078 Z-26.48
N99 X26.424
N100 G0 X41.
N101 Z2
N102 X21.
N103 G1 Z0 F0.127
N104 Z-25.761
N105 X22.25 Z-26.837
N106 X25.078 Z-25.423
N107 X25.233
N108 G0 X41.
N109 Z2
N110 X20.
N111 G1 Z0 F0.127
N112 Z-24.901
N113 X21.25 Z-25.976
N114 X24.078 Z-24.562
N115 X24.233
N116 G0 X41.
N117 Z2
N118 X19.
N119 G1 Z0 F0.127
N120 Z-24.04
N121 X20.25 Z-25.116
N122 X23.078 Z-23.701
N123 X23.233
N124 G0 X41.
N125 Z2
N126 X18.
N127 G1 Z0 F0.127
N128 Z-23.179
N129 X19.25 Z-24.255
N130 X22.078 Z-22.841
N131 X22.233
N132 G0 X41.
N133 Z2
N134 X17.
N135 G1 Z0 F0.127
N136 Z-7.49
N137 Z-7.498
N138 Z-22.319
N139 X18.25 Z-23.395
N140 X21.078 Z-21.98
N141 X21.233
N142 G0 X41.
N143 Z-5.508
N144 X21.
N145 G1 X17.392 F0.127
N146 X17. Z-7.498
N147 G3 X16.928 Z-7.781 I-1.2 K0.008
N148 G1 X16. Z-9.638
N149 Z-21.458
N150 X17.25 Z-22.534
N151 X20.078 Z-21.12
N152 X20.233
N153 G0 X41.
N154 Z-7.724
N155 X20.981
N156 G1 X17.161 F0.127
N157 X16. Z-9.638
N158 X15. Z-11.638
N159 Z-20.598
N160 X16.25 Z-21.673
N161 X19.078 Z-20.259
N162 X19.233
N163 G0 X41.
N164 Z-9.724
N165 X20.08
N166 G1 X16.161 F0.127
N167 X15. Z-11.638
N168 X14. Z-13.638
N169 Z-19.737
N170 X15.25 Z-20.813
N171 X18.078 Z-19.399
N172 X18.233
N173 G0 X41.
N174 Z-11.724
N175 X19.08
N176 G1 X15.161 F0.127
N177 X14. Z-13.638
N178 X13. Z-15.638
N179 Z-18.877
N180 X14.25 Z-19.952
N181 X17.078 Z-18.538
N182 X17.233
N183 G0 X41.
N184 Z-28.901
N185 X27.623
N186 G1 X24.531 F0.127
N187 X23. Z-30.748
N188 G3 X22.747 Z-31.027 I-3.883 K1.6
N189 G1 X22. Z-31.773
N190 Z-33.909
N191 G3 X23.25 Z-34.257 I-2.7 K-5.581
N192 G1 X26.078 Z-32.843
N193 X26.2
N194 G0 X41.
N195 Z-30.009
N196 X27.513
N197 G1 X23.886 F0.127
N198 X22. Z-31.773
N199 X21.107 Z-32.666
N200 Z-33.714
N201 G3 X22.25 Z-33.971 I-2.254 K-5.776
N202 G1 X25.078 Z-32.557
N203 X25.689
N204 G0 X41.
N205 Z-30.902
N206 X27.127
N207 G1 X22.993 F0.127
N208 X21.107 Z-32.666
N209 X20.214 Z-33.559
N210 G3 X21.357 Z-33.764 I-1.807 K-5.931
N211 G1 X24.185 Z-32.35
N212 G0 X41.
N213 Z2
N214 X15.
N215 G1 Z0 F0.127
N216 Z-7.49
N217 X14.988 Z-7.539
N218 X11. Z-15.515
N219 Z-19.146
N220 X20.573 Z-27.384
N221 G3 X21.633 Z-29.148 I-2.67 K-1.764
N222 X20.958 Z-30.579 I-3.2
N223 G1 X17.237 Z-34.3
N224 G3 X27. Z-39.49 I-0.319 K-5.19
N225 G1 Z-43.29
N226 X30.6
N227 G3 X31. Z-43.489 K-0.2
N228 G1 X31.013 Z-45.489
N229 X35.
N230 G0 X51.
N231 Z0
N232 G97 S571 M3

N233 M9
N234 G53 X0.
N235 G53 Z0
N236 M30

Question Image:

Path of tool passing image:


Turning stock simulation animation:

CNC turning simulation code






Back button

Comments

Recent posts

Fluid mechanics VIVA QUESTIONS and ANSWERS

1. Define density? Ans: It is defined as the ratio of mass per unit volume of the fluid. 2. Define viscosity? Ans: It is defined as the property of fluid which offers resistance to the movement of fluid over another adjacent layer of the fluid. 3. Differentiate between real fluids and ideal fluids? Ans: A fluid, which is in-compressible and is having no viscosity, is known as ideal fluid while the fluid, which possesses viscosity, is known as real fluid. 4. What is a venturimeter? Ans: It is a device which is used for measuring the rate of flow of fluid flowing through pipe. 5. What is a notch? Ans: A notch is a device used for measuring the rate of flow of a fluid through a small channel or a tank. 6. Define buoyancy? Ans: When a body is immersed in a fluid, an upward force is exerted by the fluid on the body. This upward force is equal to the weight of the fluid displaced by the body. 7. Define meta-centre? Ans: It is defined as the point about which a body...

Isometric drawings for practice in AutoCAD

What is Isometric Drawing? Isometric drawing is a method of visually representing three-dimensional objects in two dimensions. It allows for a clear and comprehensive depiction of complex structures by keeping the scale consistent and eliminating distortion. Isometric drawings use a 30-degree angle from the horizontal in all three axes (X, Y, and Z), creating a pseudo-3D effect where the height, width, and depth are equally foreshortened. Creating Isometric Drawings in AutoCAD AutoCAD provides tools and settings that make creating isometric drawings straightforward. Here’s a step-by-step guide: Step 1: Set Up Isometric Snap/Grid 1. Enable Isometric Snap/Grid:    - Type `SNAP` in the command line and press `Enter`.    - Type `Style` and press `Enter`.    - Choose `Isometric` and press `Enter`. 2. Switch Between Isoplanes:    - Type `F5` or `CTRL+E` to toggle between the top, right, and left isoplanes. Step 2: Draw Isometric Circles and Arcs 1. Isom...

Welding-LAP JOINT

Ex. No :                                                                              Date : LAP JOINT Aim To join the given two work pieces as a lap joint by arc welding. Material used Mild Steel plates. Tools required Welding power supply  Flat file Welding rod Chipping hammer Electrode holder Wire brush Gloves and apron Earthing clamps Shield and goggles Procedure The given workpieces are thoroughly cleaned, i.e. rust, scales are removed and the  edges are filed. The electrode is held in an electrode holder and ground clamp is clamped to the  welding plates and the power is supplied. The workpieces are positioned on the table to form a “Lab joint”. The tag weld is done on the both the ends of joining plates to avoid the m...

step by step procedure to draw hook 2D drawing using AutoCAD

1. Create one vertical line and two horizontal lines like shown below according to dimensions. 2.Draw the circles at intersecting points like shown below with given dimensions. 3. Draw TTR (tangent tangent Radius) circles like shown below with given radius values. 4. Trim extra elements using " TR " command the final image be shown like below. 5. Now draw another reference lines and circles using TTR(tangent tangent Radius) circle according to given dimensions. 6. Now Trim the extra elements by using "TR" command. 7. Now dimension the elements using DIM command.

SINGLE ‘V’ BUTT JOINT

Experiment No.:                                                                                      Date: SINGLE ‘V’ BUTT JOINT Aim: To prepare a single ‘V’ Butt Joint as per dimensions given in the sketch. Material Required: Mild Steel plates: 80mm X 40mm X 6mm = 2 Nos Mild Steel electrode ¢ 3.15 mm Equipment required: A.C. Transformer with all welding accessories like Electrode holder, cables. Tool Required: Steel rule 300mm  Scriber 150mm Flat file 300mm Try square 200mm Flat Tong 450mm  Chipping hammer 200mm Ball peen hammer 750mm  Wire brush Welding screen Sequence of Operations: 1. Marking  2. Filing  3. Welding  4. Finishing Procedure: Take two Mild steel plates of size 80mm X 40mm X 6mm. Fix the wor...

sheet metal rectangular tray making

Aim :- To make a rectangular tray from a given metallic sheet. Tools Required MALLET Snip Stake STEEL RULE Ball peen HAMMER Straight EDGE RIVETS Scriber Procedure The given metal sheet is smoothed using mallet. The measurements of rectangular tray (tray development drawing) is drawn on the sheet with given dimensions using the scriber and steel rule. The sheet is cut as per the marked dimensions by straight snips. Fold or bend as per the given order using mallet and stake. Bending is done as per the given dimension using the stake and mallet. Rivet the folded sheet by using the given rivets and hammer. Safety Precautions Each cut you make exposes sharp edges and creates burrs that can slice a finger. Must Use Hand gloves when cutting the sheet. Metal waste also has hazardous edges. So...

Sheet metal Funnel making

Making a Funnel using metallic sheet Making a Funnel using metallic sheet Aim:- To make a funnel from a given (GI)metallic sheet. Tools Required:- MALLET, SNIP, STAKE, STEEL RULE, BALL PEEN HAMMER, STRAIGHT EDGE, RIVETS, SCRIBER Procedure:  The size of the given sheet metal is checked for its dimensions using a steel rule The required development of surface is being made on the white paper which is overlapped on the sheet metal. The marking is done on the sheet metal as per the development being done on the paper. Now using straight snips, unwanted materials are removed. Now fold and bend the workpiece to make the funnel shape and joint is made on the workpieces. Then using a groover, a locked grooved joint is made for about 5mm. Also, hemming is done in the bottom of the funnel. In between top face and bottom face, a butt joint is made using a solder. Finally, trimming and finishing operations are carried out. Safety Precautions:- Each cut you make exposes s...

Welding-TEE FILLET JOINT

Ex. No :                                                                                 Date : TEE FILLET JOINT Aim To join the given two work pieces as a ‘Tee fillet joint’ by arc Welding. Material used Mild steel plates. Tools required • Welding power supply • Flat file • Welding rod • Chipping hammer • Electrode holder • Wire brush • Gloves and apron  • Earthing clamps • Shield and goggles Procedure The given workpieces are thoroughly cleaned, i.e. rust, scales are removed and the  edges are filed. The electrode is held in an electrode holder and ground clamp is clamped to the  welding plates and the power is supplied. The workpieces are positioned on the table to form a “Tee fillet joint”. The tag weld is done on the bo...

SolidWorks Practice parts

Solidworks practice parts Click here to view step by step process to make these basic shapes using solidworks Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5 Exercise 6 Exercise 7 Exercise 8 Exercise 9 Exercise 10 Exercise 11 Exercise 12 Exercise 13 Exercise 14 Exercise 15 Exercise 16 Exercise 17 Exercise 18 Exercise 19 Exercise 20 Exercise 21 Exercise 22 Click here to view step by step process to make this shape using solidworks

Coordinate systems in AutoCAD

World Coordinate System (WCS), User Coordinate System (UCS). There is 4 AutoCAD coordinates system you should know. Absolute coordinate system , Relative Rectangular coordinate system, Relative Polar coordinate system and Interactive system(Direct coordinate system). Absolute Coordinate system: Absolute Coordinates uses the Cartesian System to specify a position in the X, Y, and (if needed) Z axes to locate a point from the 0-X, 0-Y, and 0-Z (0,0,0) point. To locate a point using the Absolute Coordinate system, type the X-value, Y-value, and, if needed, the Z-value separated by commas (with no spaces). Syn: Enter LINE command: L [Enter] Start line at point A: 0,0 [Enter] End first line at point B: 2,2 [Enter] End of second line at point C: 2,3 [Enter] Examples shown bellow. Relative Rectangular Coordinate system: After first points entered, your next points can be entered by specifying the next coordinate compare/relative f...

Search This Blog