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

Welding VIVA question and answers

VIVA QUESTIONS : Q1: Define welding? Ans:  Welding is a fabrication process that joins two or more materials, typically metals or thermoplastics, by melting and fusing them together using heat or pressure. Q2: What is the typical thickness of MS Plate used in general welding workshop experiments? Ans:  The thickness of the MS (Mild Steel) plate used in general welding workshop experiments can vary depending on the specific requirements of the experiment. However, commonly used thicknesses range from 3 mm to 12 mm. Q3: What is the common job material used in welding experiments? Ans:  The common job material used in welding experiments is mild steel. It is widely available, affordable, and relatively easy to work with, making it suitable for various welding applications and practice. Q4: What is the main function of an electrode in welding? Ans:  The main function of an electrode in welding is to carry the electric current necessary for the welding process and to provide filler mate

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

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 movement of  workpieces during welding. The welding is carried throughout the length of the workpieces on both sides by  maintaining 3mm gap between plates and the welding rod. The welded plates are allowed f

TIN SMITHY & Sheet metal

TIN SMITHY Introduction : Many engineering and house articles such as boxes, cans, funnels, ducts etc. are made from a flat sheet of metal. The process being known as tin smithy. For this the development of the article is first drawn on the sheet metal, then cut and folded, to form the required shape of the article. Allowance should be given in the drawing stage for folding and bending. This allowance depends upon the radius of the bend and thickness of the sheet metal. Sheet Metal Materials : A variety of metals are used in a sheet metal shop such as galvanized Iron, black, Iron, tin, Stainless Steel, copper and Aluminium. Hand Tools : The common hand tools used in sheet metal work are steel, try square, Wire gauge, Scriber, Ball peen hammer, Nylon Mallet, Snips Divider, Stakes, Cutting plier and Soldering Iron. Here, the details of tools that are being equipped by our workshop purpose only are presented. Wire Gauge: The thickness of sheet is referred in numbers known

Carpentry Viva Questions

Q1: Define carpentry? Ans:  Carpentry is a skilled trade that involves working with wood to construct, install, and repair structures and objects. It encompasses various tasks such as measuring, cutting, shaping, joining, and finishing wood to create functional and aesthetically pleasing products. Q2: What are the various types of wood material used in carpentry? Ans:  The various types of wood materials used in carpentry include softwoods (such as pine, fir, cedar, and spruce) and hardwoods (such as oak, maple, mahogany, and walnut). Other wood materials used in carpentry can include plywood, particleboard, MDF (medium-density fiberboard), and engineered wood products like laminated veneer lumber (LVL) and oriented strand board (OSB). Q3: What is the sequence of operations in carpentry? Ans:  The sequence of operations in carpentry typically involves planning and design, material selection and preparation, measuring and marking, cutting and shaping, joinery or fastening, assembly,

TAPER TURNING

Ex. No :                                                                                                   Date : TAPER TURNING USING COMPOUND REST Aim To get a required shape and size from a given workpiece by taper turning operations in the lathe. Material used Mild steel rod.. Tools required Single point cutting tool Lathe Vernier caliper Try square Chuck key Procedure First loosen the jaw in the chuck key to position the work piece, and then tighten the  jaws. Fix the cutting tool in the toolpost. Switch on the lathe and move the carriage near to the orkpiece. Give it a small cross  feed, and then move carriage ongitudinally to the required length slowly. Bring the carriage to the original position, give a small cross feed and move carriage  longitudinally. Repeat this step until required diameter is obtained. To get smooth surface give a very small feed when the diameter is nearing the  required value. To face the end surface of the workpi

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

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 work pieces one by one in bench vice and file the faces of work pieces using flat file as per dimensions. Then mark the pieces using steel rule and scriber as per drawing. Again fix the work pieces one by one in bench vice and file the pieces to

FACING, PLAIN TURNING AND STEP TURNING

Ex. No :                                                                                                          Date : FACING, PLAIN TURNING AND STEP TURNING Aim                       To perform turning, facing and chamfering on a cylindrical work piece. Material used                       Mild steel cylindrical rod. Tools required Lathe Three-jaw chuck Chuck key Vernier caliper Single-point cutting tool Procedure First loosen the jaw in the chuck key to position the work piece, and then tighten the  jaws. Fix the cutting tool in the toolpost. Switch on the lathe and move the carriage near to the workpiece. Give it a small cross  feed, and then move carriage longitudinally to the required length slowly. Bring the carriage to the original position, give a small cross feed and move carriage  longitudinally. Repeat this step until required diameter is obtained. To get smooth surface give a very small feed when the diameter is nearing

Search This Blog