Skip to main content

Generate CNC turning G-Code using Solidworks

Also Read



; Turning
; T1 NR=0.0079 - ZMIN=-5.0079 - general turning
N10 G90 G94 G18
N11 G70
N12 LIMS=2000
N13 G53 G0 X0.

; Turning Profile1
N14 T1 D1
N15 G54
N16 M8
N17 G95
N18 G97 S245 M3
N19 G0 X4.6843 Z0
N20 G96 S300 M3
N21 LIMS=2000
N22 R1=0.005 ; Cutting
N23 R3=0.005 ; Finish
N24 R4=0.005 ; Entry
N25 R5=0.005 ; Exit
N26 R6=0.005 ; Direct
N27 G0 Z0.0487
N28 X3.5974
N29 G1 X3.5174 F=R6
N30 G18
N31 G1 G42 X3.4043 Z-0.0079 F=R4
N32 Z-3.9679 F=R1
N33 X3.4843
N34 X3.485
N35 G40 X3.5982 Z-3.9113 F=R5
N36 G0 Z0.0487
N37 X3.4374
N38 G1 G42 X3.3243 Z-0.0079 F=R4
N39 Z-3.9679 F=R1
N40 X3.4443
N41 G40 X3.5574 Z-3.9113 F=R5
N42 G0 Z0.0487
N43 X3.3574
N44 G1 G42 X3.2443 Z-0.0079 F=R4
N45 Z-3.9679 F=R1
N46 X3.3643
N47 G40 X3.4774 Z-3.9113 F=R5
N48 G0 Z0.0487
N49 X3.2774
N50 G1 G42 X3.1643 Z-0.0079 F=R4
N51 Z-3.9679 F=R1
N52 X3.2843
N53 G40 X3.3974 Z-3.9113 F=R5
N54 G0 Z0.0487
N55 X3.1974
N56 G1 G42 X3.0843 Z-0.0079 F=R4
N57 Z-3.9679 F=R1
N58 X3.2043
N59 G40 X3.3174 Z-3.9113 F=R5
N60 G0 Z0.0487
N61 X3.1174
N62 G1 G42 X3.0043 Z-0.0079 F=R4
N63 Z-3.9679 F=R1
N64 X3.1243
N65 G40 X3.2374 Z-3.9113 F=R5
N66 G0 Z0.0487
N67 X3.0374
N68 G1 G42 X2.9243 Z-0.0079 F=R4
N69 Z-3.9679 F=R1
N70 X3.0443
N71 G40 X3.1574 Z-3.9113 F=R5
N72 G0 Z0.0487
N73 X2.9574
N74 G1 G42 X2.8443 Z-0.0079 F=R4
N75 Z-3.9679 F=R1
N76 X2.9643
N77 G40 X3.0774 Z-3.9113 F=R5
N78 G0 Z0.0487
N79 X2.8774
N80 G1 G42 X2.7643 Z-0.0079 F=R4
N81 Z-3.9679 F=R1
N82 X2.8843
N83 G40 X2.9974 Z-3.9113 F=R5
N84 G0 Z0.0487
N85 X2.7974
N86 G1 G42 X2.6843 Z-0.0079 F=R4
N87 Z-3.9679 F=R1
N88 X2.8043
N89 G40 X2.9174 Z-3.9113 F=R5
N90 G0 Z0.0487
N91 X2.7174
N92 G1 G42 X2.6043 Z-0.0079 F=R4
N93 Z-3.9679 F=R1
N94 X2.7243
N95 G40 X2.8374 Z-3.9113 F=R5
N96 G0 Z0.0487
N97 X2.6374
N98 G1 G42 X2.5243 Z-0.0079 F=R4
N99 Z-3.3623 F=R1
N100 G3 X2.5643 Z-3.5079 CR=0.54
N101 G1 Z-3.9679
N102 X2.6443
N103 G40 X2.7574 Z-3.9113 F=R5
N104 G0 Z0.0487
N105 X2.5574
N106 G1 G42 X2.4442 Z-0.0079 F=R4
N107 Z-3.2605 F=R1
N108 G3 X2.5643 Z-3.5069 CR=0.54
N109 G1 G40 X2.6774 Z-3.4503 F=R5
N110 G0 Z0.0487
N111 X2.4774
N112 G1 G42 X2.3642 Z-0.0079 F=R4
N113 Z-3.1948 F=R1
N114 G3 X2.4842 Z-3.3039 CR=0.54
N115 G1 G40 X2.5974 Z-3.3605 F=R5
N116 G0 Z0.0487
N117 X2.3974
N118 G1 G42 X2.2842 Z-0.0079 F=R4
N119 Z-3.1451 F=R1
N120 G3 X2.4042 Z-3.225 CR=0.54
N121 G1 G40 X2.5174 Z-3.2816 F=R5
N122 G0 Z0.0487
N123 X2.3174
N124 G1 G42 X2.2042 Z-0.0079 F=R4
N125 Z-3.1054 F=R1
N126 G3 X2.3242 Z-3.1685 CR=0.54
N127 G1 G40 X2.4374 Z-3.225 F=R5
N128 G0 Z0.0487
N129 X2.2374
N130 G1 G42 X2.1242 Z-0.0079 F=R4
N131 Z-3.0729 F=R1
N132 G3 X2.2442 Z-3.1242 CR=0.54
N133 G1 G40 X2.3574 Z-3.0676 F=R5
N134 G0 Z0.0487
N135 X2.1574
N136 G1 G42 X2.0442 Z-0.0079 F=R4
N137 Z-3.0461 F=R1
N138 G3 X2.1642 Z-3.0883 CR=0.54
N139 G1 G40 X2.2774 Z-3.0318 F=R5
N140 G0 Z0.0487
N141 X2.0774
N142 G1 G42 X1.9642 Z-0.0079 F=R4
N143 Z-3.0241 F=R1
N144 G3 X2.0842 Z-3.0589 CR=0.54
N145 G1 G40 X2.1974 Z-3.0023 F=R5
N146 G0 Z0.0487
N147 X1.9974
N148 G1 G42 X1.8842 Z-0.0079 F=R4
N149 Z-3.0063 F=R1
N150 G3 X2.0042 Z-3.0346 CR=0.54
N151 G1 G40 X2.1174 Z-2.978 F=R5
N152 G0 Z0.0487
N153 X1.9174
N154 G1 G42 X1.8042 Z-0.0079 F=R4
N155 Z-2.9921 F=R1
N156 G3 X1.9242 Z-3.0147 CR=0.54
N157 G1 G40 X2.0374 Z-2.9582 F=R5
N158 G0 Z0.0487
N159 X1.8374
N160 G1 G42 X1.7242 Z-0.0079 F=R4
N161 Z-2.9814 F=R1
N162 G3 X1.8442 Z-2.9988 CR=0.54
N163 G1 G40 X1.9574 Z-2.9422 F=R5
N164 G0 Z0.0487
N165 X1.7574
N166 G1 G42 X1.6442 Z-0.0079 F=R4
N167 Z-2.9738 F=R1
N168 G3 X1.7642 Z-2.9863 CR=0.54
N169 G1 G40 X1.8774 Z-2.9298 F=R5
N170 G0 Z0.0487
N171 X1.6774
N172 G1 G42 X1.5642 Z-0.0079 F=R4
N173 Z-1.5075 F=R1
N174 X1.5643 Z-1.5079
N175 Z-2.9694
N176 G3 X1.6842 Z-2.9772 CR=0.54
N177 G1 G40 X1.7974 Z-2.9206 F=R5
N178 G0 Z0.0487
N179 X1.5974
N180 G1 G42 X1.4842 Z-0.0079 F=R4
N181 Z-1.4627 F=R1
N182 G2 X1.5198 Z-1.472 CR=0.41
N183 G3 X1.5643 Z-1.5079 CR=0.04
N184 G1 G40 X1.6774 Z-1.5644 F=R5
N185 G0 Z0.0487
N186 X1.5174
N187 G1 G42 X1.4042 Z-0.0079 F=R4
N188 Z-1.4372 F=R1
N189 G2 X1.5198 Z-1.472 CR=0.41
N190 G1 X1.5242 Z-1.4732
N191 G40 X1.6374 Z-1.4167 F=R5
N192 G0 Z0.0487
N193 X1.4374
N194 G1 G42 X1.3242 Z-0.0079 F=R4
N195 Z-1.4043 F=R1
N196 G2 X1.4442 Z-1.4507 CR=0.41
N197 G1 G40 X1.5574 Z-1.3942 F=R5
N198 G0 Z0.0487
N199 X1.3574
N200 G1 G42 X1.2442 Z-0.0079 F=R4
N201 Z-1.3611 F=R1
N202 G2 X1.3642 Z-1.4218 CR=0.41
N203 G1 G40 X1.4774 Z-1.3652 F=R5
N204 G0 Z0.0487
N205 X1.2774
N206 G1 G42 X1.1642 Z-0.0079 F=R4
N207 Z-1.301 F=R1
N208 G2 X1.2842 Z-1.3842 CR=0.41
N209 G1 G40 X1.3974 Z-1.3277 F=R5
N210 G0 Z0.0487
N211 X1.2274
N212 G1 G42 X1.1142 Z-0.0079 F=R4
N213 Z-1.2457 F=R1
N214 G2 X1.2042 Z-1.3339 CR=0.41
N215 G1 G40 X1.3174 Z-1.2773 F=R5
N216 G0 Z0.0487
N217 X1.1911
N218 G1 X1.1774 F=R6
N219 G42 X1.0643 Z-0.0079 F=R4
N220 Z-1.1048 F=R1
N221 G2 X1.1542 Z-1.2915 CR=0.41
N222 G1 G40 X1.2674 Z-1.2349 F=R5
N223 G0 Z0.0487
N224 X1.1111
N225 G1 X1.0974 F=R6
N226 G42 X0.9843 Z-0.0079 F=R4
N227 Z-1.1048 F=R3
N228 G2 X1.4843 Z-1.5079 CR=0.45
N229 G1 Z-3.0079
N230 G3 X2.4843 Z-3.5079 CR=0.5
N231 G1 Z-4.0079
N232 X3.4843
N233 Z-5.0079
N234 G40 X3.6443 F=R6
N235 G0 X4.6843
N236 Z0
N237 G97 S245 M3

N238 M9
N239 G53 X0.
N240 G53 Z0
N241 M30



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

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 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

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

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

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,

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

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

MOULD WITH SPLIT PATTERN

Ex. No :                                                                                       Date : MOULD WITH SPLIT PATTERN Aim To make the mould for the given split pattern. Material required •  Moulding board •  Riser pin •  Moulding box •  Sprue pin •  Green sand •  Rammer •  Trowel •  Lifter •  Riddle •  Draw spike •  Gate cutter  •  Bellow •  Vent rod  Procedure 1. Place the moulding board on a horizontal surface. 2. The drag box is placed above the moulding board. Now one piece      of pattern is kept at  center of the drag as shown in figure. 3. The parting sand is spread before we keep the pattern. 4. Facing sand is sprinkled over the pattern to a depth of 2mm. then      greensand is filled  over it. 5. Proper ramming is done on the green sand to get a air free                  packing. 6. Excess sand is remove with strike off bar. 7. The drag is inverted upside down. 8. The cope box is place over the drag box. 9.

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

Search This Blog