SRI KRISHNA COLLEGE OF ENGINEERING AND TECHNOLOGY, COIMBATORE-641008 (AN AN AUTONOMOUS INSTITUTION) DEPARTMENT OF MECHANICAL ENGINEERING III B.E-MECHANICAL ENGINEERING 11UAK608-CAD/CAM/CIM LAB LAB MANUAL PREPARED BY APPROVED BY Staff-In Charge HOD
Jan 30, 2016
SRI KRISHNA COLLEGE OF ENGINEERING AND TECHNOLOGY, COIMBATORE-641008
(AN AN AUTONOMOUS INSTITUTION)
DEPARTMENT OF MECHANICAL ENGINEERING
III B.E-MECHANICAL ENGINEERING
11UAK608-CAD/CAM/CIM LAB
LAB MANUAL
PREPARED BY APPROVED BY
Staff-In Charge HOD
LIST OF EXERCISES
Cad Exercises Marks Sign
1 Shaft Support
2 Fork
3 Vice body
4 Sliding support
5 Screw Jack
6 Flange Coupling
7 Universal Coupling
8 Plumber Block
Exercises on CNC Lathe
1. Exercise on Full Facing Cycle
2. Exercise on Step Facing Cycle
3. Exercise on Taper Facing Cycle.
4. Exercise on Plain Turning Cycle
5. Exercise on Step Turning Cycle
6. Exercise on Box Threading Cycle
7. Exercise on Multiple Threading Cycle Part – I
8. Exercise on Multiple Threading Cycle Part – II
9. Exercise on Stock Removal Facing Cycle Using G72
10.Exercise on Stock Removal Turning Cycle Using G71
11.Exercise on Pattern Repeating Cycle
12.Exercise on Peck Drilling Part – I
13.Exercise on Peck Drilling Part – II
14.Exercise on Internal Threading
15.Exercise on Peck Drilling Part – III
16.Exercise on Multiple Boring Cycle
Exercises on CNC Milling Machine
1. Exercise using Linear Interpolation
2. Exercise using Linear and Circular Interpolation
3. Exercise using Linear Circular Interpolation With Circular, Rectangular Pocketing
4. Exercise on Arc Explanation Part – I
5. Exercise on Arc Explanation Part – II
6. Exercise using Mirror Imaging
7. Exercise on Milling the Flag
8. Exercise on Profile Milling
Exercises on Robot
1. Exercise on Pick and Place
2. Exercise on Load and Unload into CNC Milling
Average
Ex.No:
Date:
STUDY OF CAD MODELING AIM:
To study about cad modeling and cad software.
INTRODUCTION
Computer-aided design (CAD) is the use of computer systems to assist in the creation, modification, analysis, or optimization of a design. CAD software is used to increase the productivity of the designer, improve the quality of design, improve communications through documentation, and to create a database for manufacturing. CAD output is often in the form of electronic files for print, machining, or other manufacturing operations.
Computer-aided design is used in many fields. Its use in designing electronic systems is known as electronic design automation, or EDA. In mechanical design it is known as mechanical design automation (MDA) or computer-aided drafting (CAD), which includes the process of creating a technical drawing with the use of computer software.
CAD may be used to design curves and figures in two-dimensional (2D) space; or curves, surfaces, and solids in three-dimensional (3D) space.
CAD is an important industrial art extensively used in many applications, including automotive, shipbuilding, and aerospace industries, industrial and architectural design, prosthetics, and many more.
Because of its enormous economic importance, CAD has been a major driving force for research in computational geometry, computer graphics (both hardware and software), and discrete differential geometry.
INTRODUCTION TO CAD SOFTWARE: SOLIDWORKS (2008)
SOLIDWORKS (originally SolidWorks) is solid modeling CAD (computer-aided design) software that runs on Microsoft Windows and is since 1997 produced by Dassault Systèmes SOLIDWORKS Corp., a subsidiary of Dassault Systèmes, S. A. (France).
SOLIDWORKS Corporation was founded in December 1993 by Massachusetts Institute of Technology graduate Jon Hirschtick
SOLIDWORKS currently markets several versions of the SOLIDWORKS CAD software in addition to eDrawings, a collaboration tool, and DraftSight, a 2D CAD product.
SOLIDWORKS is a solid modeler, and utilizes a parametric feature-based approach to create models and assemblies. The software is written on Parasolid-kernel.
Parameters refer to constraints whose values determine the shape or geometry of the model or assembly. Parameters can be either numeric parameters, such as line lengths or circle diameters, or geometric parameters, such as tangent, parallel, concentric, horizontal or vertical, etc. Numeric parameters can be associated with each other through the use of relations, which allow them to capture design intent.
Design intent is how the creator of the part wants it to respond to changes and updates. For example, you would want the hole at the top of a beverage can to stay at the top surface, regardless of the height or size of the can. SOLIDWORKS allows the user to specify that the hole is a feature on the top surface, and will then honor their design intent no matter what height they later assign to the can.
Features refer to the building blocks of the part. They are the shapes and operations that construct the part. Shape-based features typically begin with a 2D
or 3D sketch of shapes such as bosses, holes, slots, etc. This shape is then extruded or cut to add or remove material from the part. Operation-based features are not sketch-based, and include features such as fillets, chamfers, shells, applying draft to the faces of a part, etc.
Screen shot of solid works 2008
Building a model in SOLIDWORKS usually starts with a 2D sketch (although 3D sketches are available for power users). The sketch consists of geometry such as points, lines, arcs, conics (except the hyperbola), and splines. Dimensions are added to the sketch to define the size and location of the geometry. Relations are used to define attributes such as tangency, parallelism, perpendicularity, and concentricity. The parametric nature of SOLIDWORKS means that the dimensions and relations drive the geometry, not the other way around. The dimensions in the sketch can be controlled independently, or by relationships to other parameters inside or outside of the sketch.
In an assembly, the analog to sketch relations are mates. Just as sketch relations define conditions such as tangency, parallelism, and concentricity with respect to sketch geometry, assembly mates define equivalent relations with respect to the individual parts or components, allowing the easy construction of assemblies. SOLIDWORKS also includes additional advanced mating features such as gear and cam follower mates, which allow modeled gear assemblies to accurately reproduce the rotational movement of an actual gear train.
Finally, drawings can be created either from parts or assemblies. Views are automatically generated from the solid model, and notes, dimensions and tolerances can
then be easily added to the drawing as needed. The drawing module includes most paper sizes and standards (ANSI, ISO, DIN, GOST, JIS, BSI and SAC).
Ex. No: Date:
SHAFT SUPPORT-3D PART MODELING AIM: To model a Shaft Support using Solid Works. COMMANDS USED:
1. Sketch
Line
Circle
Arc
2. Features
Extrude
Revolve
Hole
Rib
Mirror
PROCEDURE: 1. Open a new file, Solid Works.
2. Choose the ‘Part’ option.
3. Choose the desired plane in which the model is to be drawn.
4. Choose ‘Sketch’ option and draw the desired diagram.
5. Use ‘Extrude’ option to convert it into 3D model.
6. To draw another feature on the existing 3D model, select the surface in which it is to be
drawn.
7. Use the ‘Smart Dimension’ option to change the dimensions of the feature.
8. Save the file.
RESULT:
Thus 3D part model Shaft Support is developed using Solid Works.
Ex. No: Date:
FORK-3D PART MODELING AIM: To model a Fork using Solid Works. COMMANDS USED:
1. Sketch
Line
Circle
Arc
2. Features
Extrude
Revolve
Hole
Rib
Mirror
PROCEDURE: 1. Open a new file, Solid Works.
2. Choose the ‘Part’ option.
3. Choose the desired plane in which the model is to be drawn.
4. Choose ‘Sketch’ option and draw the desired diagram.
5. Use ‘Extrude’ option to convert it into 3D model.
6. To draw another feature on the existing 3D model, select the surface in which it is to be
drawn.
7. Use the ‘Smart Dimension’ option to change the dimensions of the feature.
8. Save the file.
RESULT:
Thus 3D part model Fork is developed using Solid Works.
Ex. No: Date:
VICE BODY-3D PART MODELING AIM: To model a Vice body using Solid Works. COMMANDS USED:
1. Sketch
Line
Circle
Arc
2. Features
Extrude
Revolve
Hole
Rib
Mirror
PROCEDURE: 1. Open a new file, Solid Works.
2. Choose the ‘Part’ option.
3. Choose the desired plane in which the model is to be drawn.
4. Choose ‘Sketch’ option and draw the desired diagram.
5. Use ‘Extrude’ option to convert it into 3D model.
6. To draw another feature on the existing 3D model, select the surface in which it is to be
drawn.
7. Use the ‘Smart Dimension’ option to change the dimensions of the feature.
8. Save the file.
RESULT:
Thus 3D part model vice body is developed using Solid Works.
Ex. No: Date:
SLIDING SUPPORT -3D PART MODELING AIM: To model a Sliding Support using Solid Works. COMMANDS USED:
1. Sketch
Line
Circle
Arc
2. Features
Extrude
Revolve
Hole
Rib
Mirror
PROCEDURE: 1. Open a new file, Solid Works.
2. Choose the ‘Part’ option.
3. Choose the desired plane in which the model is to be drawn.
4. Choose ‘Sketch’ option and draw the desired diagram.
5. Use ‘Extrude’ option to convert it into 3D model.
6. To draw another feature on the existing 3D model, select the surface in which it is to be
drawn.
7. Use the ‘Smart Dimension’ option to change the dimensions of the feature.
8. Save the file.
RESULT:
Thus 3D part model Sliding Support is developed using Solid Works.
Ex. No: Date:
SCREW JACK AIM: To draw and assemble the various parts of the screw jack and generate the drafting for the same assembly. SOFTWARE USED: Solid works 2008. - SP2.1 Procedure: Body:
i) Select the new part and create the sketch according to the given dimensions. ii) Using the revolve command extrude it into solid part. iii) Save the part file.
Nut:
i) Select the new part and draw the sketch of the required view. ii) Using revolve command extrude the part to 360°. iii) Save the part file in the directory.
Screw spindle:
i) Select new part and revolve command. ii) Draw the sketch symmetric about an axis as per the given dimension. iii) Revolve the sketch about an axis to 360°, thus the base part is created. iv) By using the helical sweep create the internal thread on the part as per the given
dimension. v) Save the part file in the directory.
Cup: i) Select the new part and create the sketch by using various commands as per the
given diagram. ii) By using revolve command and select the whole sketch and by selecting the axis
revolve the sketch about 360º. iii) Create a hole on the top of the cup by using extruded cut. iv) By selecting the circular pattern select the feature and create the four holes. v) Save the part file in the directory.
Washer special: i) Part file is created and the required sketch is drawn symmetric about an axis. ii) By using revolve command the part file was created. iii) By using chamfering command chamfer the edges as per the dimensions.
iv) Save the part file in the directory.
CSK screw:
i) New part is selected and the sketch was drawn to revolve the part. ii) The external thread was created by using the helical swept command as per the
dimension. iii) Save the part file in the directory.
Tommy Bar:
i) New part was selected and revolve command was created. ii) By using the sketch as per the given dimension and revolve the part about 360º. iii) Using the dome option the end of the tommy bar was created. iv) Save the part file in the directory.
Assembly:
i) Under the file menu select the assembly. ii) Import the saved part file into the assembly window according to the procedure. iii) Each part is constraint as per the assembly.
Drafting:
i) Under file menu select the drawing. ii) Standard sheet size was selected and the view was selected. iii) Browse the part or assembly into the drawing window and the positions of various
views are selected. iv) The bill of materials and the part list was generated.
Result: Thus the required assembly was drawn and the draft for the same was created by using the solid works 2008 SP2.1.
Ex. No: Date:
FLANGE COUPLING AIM: To draw and assemble the unprotected flange coupling using Solid works SOFTWARE USED:
Solid works 2008. SP2.1 PROCEDURE: FLANGE: i) Select the extrude option and select the plane. ii) Draw the sketch as per given diagram and click ok iii) Select the same plane and draw holes, click ok iv) Then select the pattern tool and given the required number of pattern and angle then
click ok. v) Draw the hole as per same procedure. Set in default position and save it. SHAFT: i) Select the extrude option and draw the sketch as per given diagram and click ok and give
required depth of extrude. ii) Then select the fillet command and fillet the edge of shaft iii) Set in default position and save it. TAPER KEY: i) Select the revolve command and draw the center line, then sketch as per diagram select
ok. ii) Then give required rotation of degree, select ok button and save the diagram. HEXAGONAL BOLT: i) Select the extrude option and then select the front plane and draw a sketch as per
dimension. The line of hexagonal should be equal and then select ok. ii) The required bolt from and depth should be given. iii) By helical sweep, cut inside the bolt. Save the diagram. HEXAGONAL NUT: i) like same procedure of hexagonal bolt is followed in this diagram. ii) Draw the circle and extrude it to required depth, using helical cut create the thread in the
shaft. iii) Set in default position and save it.
ASSEMBLY: i) By using assembly option assembles the components. ii) Ad components option, it is used to call part one by one in the assembly option. iii) Then assemble the diagram by using constrains and assemble all parts one by one. iv) This is an assembly of flange coupling
RESULT: Thus the various parts on flanged coupling is drawn and assembled as per given dimensions.
Ex. No: Date:
UNIVERSAL COUPLING AIM: To draw an assemble various of universal coupling SOFTWARE USED: Solid works 2008 SP2.1 PROCEDURE: FORK
I. Select the new page and click the part. II. Draw the front view as per given dimensions and extrude it.
III. Change the plane to top and draw the view as per given dimensions and mirror it. IV. Change the view to back and draw the object as per given dimensions.
CENTRE BLOCK I. Select the new page and then select the part.
II. Draw the front view dimensions and extrude it. III. Change the view to top and draw it as per dimensions. IV. Subtract the component due to overlapping.
COLLAR I. Draw the collar object as per given dimensions and extrude it.
II. Make the hole on it by change the plane III. Apply colour on it and save it.
TAPER PIN I. Using the revolve tool, draw the cross section of the taper pin and revolve it.
II. Apply color on it.
PIN I. Using the revolve tool, draw the cross section of the taper pin and draw the centre line,
them revolve it. II. Make hole on it by changing the plane and then apply color on it.
ASSEMBLY I. Select the new tool and then select the assembly option.
II. By using the add component tool we can call the fork component and fix if its location. III. Again call the centre block and fix it by mate and align option. IV. Then call the fork component and assemble if perpendicular to the previous fork. V. Insert the pin by mate and align option.
VI. Fix the collar by mate and align on both pins. VII. Insert the pin by align and translator options.
RESULT: Various parts of universal coupling is drawn and assembled as per given dimensions.
Ex. No: Date:
PLUMBER BLOCK AIM: To draw an assemble various of Plumber Block. SOFTWARE USED: Solid works 2008 SP2.1 PROCEDURE: BODY
1. Select the new page and click the part. 2. Draw the front view as per given dimensions and extrude it. 3. Change the plane to top and draw the view as per given dimensions and mirror it. 4. Change the view to back and draw the object as per given dimensions.
GLAND 1. Select the new page and then select the part. 2. Draw the top view and use extrude cut option except circle portion. 3. Change the view to top and draw it as per dimensions. 4. Subtract the component due to overlapping.
NECK BUSH 1. Draw the neck bush object as per given dimensions and extrude it. 2. Make the hole on it by change the plane 3. Apply colour on it and save it.
STUDS 1. Using the revolve tool, draw the cross section of the stud and revolve it. 2. Apply color on it.
NUT 1. Using the revolve tool, draw the cross section of the taper pin and draw the centre
line, them revolve it. 2. Make hole on it by changing the plane and then apply color on it.
ASSEMBLY 1. Select the new tool and then select the assembly option. 2. By using the add component tool we can call the body component and fix if its
location. 3. Again call the gland and fix it by mate and align option. 4. Then call the fork component and assemble if perpendicular to the previous body. 5. Insert the stud by mate and align option.. 6. Insert the nut by align and translator options.
RESULT: Various parts of Plumber Block.is drawn and assembled as per given dimensions.
CNC LATHE EXERCISES
PREPARATORY FUNCTION (G FUNCTION)
G codes are instructions describing machine tool movement G00 Rapid Traverse
G01 Linear Interpolation (cutting feed)
G02 Circular Interpolation (clockwise)
G03 Circular Interpolation (counter clockwise)
G04 Dwell
G20 Imperial (input in inches)
G21 Metric (input in metric)
G28 Goto Reference
G40 Cutter Compensation Cancel
G41 Cutter Compensation Right
G42 Cutter Compensation Left
G50 Clamp Spindle
G50 Coordinate Setting
G70 Finishing Cycle
G71 Stock Removal in Turning
G72 Multiple Facing
G73 Pattern Repeating
G74 Peck Drilling Cycle
G76 Multiple Thread
G81 Drilling Cycle
G90 Turning Cycle
G94 Facing Cycle
G96 Constant. Surface
G97 Var. Surface
G98 Feed Per Minute
G99 Feed Per Rev.
G00 Fast Traverse
A G00 causes linear motion to the given position at the maximum feedrate from the current position that is predefined in the option file. Examples: G00 X0.0 Z0.0 G01 Linear A G01 causes linear motion t the position at the last specified feedrate form the current position. The feed rate for the linear motion should be mentioned in the part program . Examples: G01 X30.0 Z-1.0 F100.0 G01 X0.0 G02 Clockwise Arc A G02 causes a clockwise arc to the specified position. Example: G01 X20.0 Z-10.0 F120.0 G03 X30.0 Z-15.0R5.0 G02 X40.0 Z-20.0 I5.0 G03 Counter Clockwise Arc A G03 causes a counter clockwise arc to the specified position. Example: G01 X20.0 Z-10.0 F120.0 G03 X30.0 Z-15.0 R5.0 G03 X40.0 Z-20.0 K-5.0 G04 Dwell AG04 causes the program to wait for a specified amount of time. This can be used for drilling cycles. Because the drilling cycle requires time delay to finish the already drilled hole. The time can be specified in seconds with the "X" or "U" prefixes or in milliseconds with the "P" prefix. Examples: G04 X1.5 G04 U1.5 G04 P1500
G20 Imperial
A G20 causes position to be interpreted as being in imperial units. All the input values are inches. This can only be set at the start of the main program. G21 Metric A G21 causes positions to be interpreted as being in metric units (MM). This can only be at the start of the main program. By default Metric Units will be taken for programming. G28 Goto Reference Point A G28 causes a fast traverse to the specified position and then to the machine datum. Examples : G28 X34.0 Z5.0 G28 U0.0 W0.0 G40 Cancel Compensation A G40 cancels tools nose radius compensation. G41 Compensate Right A G41 enables tool nose radius compensation to the right of the programmed path. G42 Compensate Left A G42 enables tool nose radius compensation to the left of the programmed path. G50 Co-ordinate Setting G50 enables tool nose radius compensation tot he left of the programmed path. G50 has 2 users. A coordinate setting block has ab "X", "Z", "U" or "W" upon it. A maximum spindle speed block does not.
G50 Clamp Spindle
G50 sets the maximum spindle speed for constant surface speed control. An "X", "Z", "U" or "W" prefix must not be on the block or it will be interpreted as a coordinate setting block. Example : G50 S2000 G50 creates a new coordinate system in which the tools current position is set to the specified coordinates. The new coordinates can be in absolute or incremental form. Example: G50 X0 Z0 and G50 U-40 G70 Finishing Cycle AG70 causes a range of blocks to be executed, then control passes to the block after the G70. This will be used after the completion of the Roughing Cycle. The "P" and "Q" values specify the "N" block numbers at the start and end of the profile. Example : G70 P10 020 P - First Block of cycle Q - Last Block of cycle G71 Multiple Turning A G71 causes the profile to be roughed out by turning. Control passes on to after the last block of the profile. Two G71 blocks are needed to specify all the values. Example : (i) G72 U2.0 R1.5 (ii) G71 P.0 Q20 U0.1 W0 F45 specifies a depth of cut (radius) of 2 and an escape of 1.5. (i) U0.5 R1
U Depth of cut in mm R Retraction (or) Retardation amount in mm
(ii) G71 P Q U W F P Starting block number (i.e) first block of the cycle Q End of the Programme U Finishing allowance along X axis in mm W Finishing allowance along Z axis in mm F Feed rate
G71 P10 Q20 U1.0 W1.0 F45
The "P" and "Q" values specify the "N" block numbers at the start and end of the profile. The "U" and "W" specify the distance and direction of the finishing allowance on the X and Z axis. G72 Multiple Facing A G72 causes the profile to be roughed out by facing. Control passes on to after the last block of the profile. Two G72 blocks are needed to specify all the values. W - Depth of cut in each pass in Z axis R - Retraction (or) Retardation amount in mm. Example: G72 W2.0 R1.5 Specifies a depth of cut of 2 and an escape of 1.5. G72 P10 Q20 U1.0 W1.0 The "P" AND "Q" values specify the "N" block numbers at the start and end of the profile. P - First Block of cycle Q - Last Block of cycle The "U" and "W" specify the distance and direction of the finishing allowance on the "X" and "Z" axis. U - Finishing allowance in X axis W - Finishing allowances in Z axis G73 Pattern Repeating' A G73 causes the profile to be roughed out by displacing the profile. Control passes on to after the last block of the profile. Normally this cycle can be applied for casting blocks. Two G73 blocks are needed to specify all the values. Examples: G73 U3.0 W4.0 R5 Specifies an X axis relief of 3.0 (radius) a Z axis relief of 4 and 5 cycles. G73 P1 Q2 U3.0 W4.0 The "P and "Q" values specify the "N" block numbers at the start and end of the profile. U - Distance and direction of Relief amount in the X axis radius designation W - Distance and direction of relief amount in the Z axis radius designation The "U" and "W" specify the distance of the finishing allowance on the X and Z axis . R - No. of panes P - First Block of cycle Q - Last Block of cycle U - Finishing allowance in X axis W - Finishing allowance in Z F- Feed rate axis
G74 End Face Peck Drilling
G74 is a Z axis pecking cycle.
Two blocks are required
G74 R1.0
G74 `Z-40.0 Q5000 R0.5 F100
Z - depth of the hole
Q- depth of cut in Z direction (without sign) depth of cut should be in microns
R- F - feed rate
The "R" in the first block is the return amount
G76 Threading Cycle
G76 is a multiple pass threading cycle.
Two blocks are required.
G76 P031560 Q150 R0.5
G76 X17.96 Z-50 P1020 Q250 F1.5
The "P" value is:- 03 = NO OF FINISHING PASSES
15 = PULL OUT ANGLE
60 = ANGLE OF THREAD
The "Q" is the minimum cutting depth times 1000, in this case 0.15mm.
The "R" is the finishing allowance, here its 0.15mm
The 2nd Block is identified by specifying a coordinate.
G76 X 17.96 Z-50 R0.0 P1020 Q250 F1.5
The "X" is the core diameter value of thread and "Z" are the end of the thread. The "R" must be
0.
The "p" is the height of the thread times 1000, here its 1.02mm
The "Q" is the depth of the first cut times 1000, in this case 0.25mm
The "F" is the thread's LEAD, NOT the feedrate, here it is 1.5mm
O/DIA CORE PITCH DEPTH TAP/G DRILL 1.6 1.1706 0.35 0.2147 1.25 1.8 1.3706 0.35 0.2147 1.45 2.0 1.5092 0.40 0.2454 1.60 2.2 1.6480 0.45 0.2760 1.75 2.5 1.9480 0.45 0.2760 2.05 3.0 2.3866 0.50 0.3067 2.50 3.5 2.7638 0.60 0.3681 2.90 4.0 3.1412 0.70 0.4294 3.30 4.5 3.5798 0.75 0.4501 3.80 5.0 4.0184 0.80 0.4908 4.20 6.0 4.7732 1.00 0.6134 5.00 7.0 5.7732 1.00 0.6134 6.00 8.0 6.4664 1.25 0.7468 6.80
10.0 8.1596 1.25 0.9202 8.50 12.0 9.8530 1.75 1.0735 10.20 14.0 11.5462 2.00 1.2269 12.00 16.0 13.5462 2.00 1.2269 14.00 18.0 14.9328 2.50 1.5336 15.50 20.0 16.9328 2.50 1.5336 17.50 22.0 18.9328 2.50 1.5336 19.50 24.0 20.3194 3.00 1.8403 21.00 27.0 23.3194 3.00 1.8403 24.00 30.0 25.7060 3.50 2.1470 26.50 33.0 28.7060 3.50 2.1470 29.50 36.0 31.0924 4.00 2.4538 32.00 39.0 34.0924 4.00 2.4538 35.00 42.0 36.4790 4.50 2.7605 37.50 45.0 39.4790 4.50 2.7605 40.50 48.0 41.8646 5.00 3.0672 43.00 52.0 45.8646 5.00 3.0672 47.00
G81 Drilling Cycle
A G81 is a drilling cycle. An explicit specified G81 will linear to new position Fast traverse to start position. A modally specified G81 differs in that it will first travel linear traverse to the given depth, after machining it will retract to the initial position to rapid traverse. If only an X axis value is entered then grooving will be performed. If only a Z axis value is entered then drilling will be performed. Examples: G 81 U-4.0 U-8.0 and G 81 Z-2.0 Z-4.0 G90 Turning Cycle AG90 is the diameter cutting cycle. It is the equivalent of
Rapid to X position. Feed to Z position Feed to start X position Rapid to start Z position
If an "R" value is specified tapering will be performed. The initial rapid move will be to the X position plus the "R" value (Radio) Examples U-4.0 U-8.0 And G81 Z - 2.0 G81 Z 4.0
G92 Threading Cycle
G92 performs one threading pass.
The position specified is that of the end of the thread.
The "F" value specifies the pitch, NOT the feed.
Example : G92 U-0.25 W-20 .F1.5
G94 Facing Cycle A G94 is an end face cutting cycle. It is the equivalent of Rapid to Z position
Feed to X position
Feed to start Z position
Rapid to start X positioning.
If an "R" value is specified tapering will be performed. The initial rapid move will be to the Z
position plus "R" value.
Example: G 94 U - 4.0W-2.0 R-8.0 F140.0
W-3.0
W-4.8
G96 Constant Surface Speed
G96 Enables Constant Surface Speed.
Example: G96 S100
Sets the surface speed to 100 meters a minute.
G97 Normal Spindle
G97 Cancels Constant Surface Speed.
The spindle speed will not change until the next "S" value is reached.
Example : G97
G98 Feed per minute
G98 sets the feed per minute mode. This is the default.
Example G98.
G99 Feed Per Revolution
G99 sets the feed per revolution modes.
MISCELLANEOUS FUNCTIONS (M CODES) M Codes are instructions describing miscellaneous functions like calling the tool, spindle rotation, coolant on etc.,
M00 Program Stop M01 Optional Stop M02 Program End M03 Spindle Forward M04 Spindle Reverse M05 Spindle Stop M06 Automatic Tool change M08 Coolant On M09 Coolant Off M10 Vice / Chuck Open M11 Vice / Chuck Close M62 Output 1 on M63 Out put 2 on M64 Out put 1 off M65 Output 2 off M66 Wait Input 1 On M67 Wait Input 2 On M76 Wait Input 1 Off M77 Wait Input 2 Off M98 Sub program Call M99 Subprogram End
MISCELLANEOUS FUNCTIONS (M CODES)
M00 Program Stop Cycle operation is stopped after a block containing M00 is executed. Example: M00 M01 Optional Stop Cycle operation is stopped after a block containing M01 is executed. This code is only effective when the optional stop switch on the machine control panel has been pressed. Example : M01 M02 Program End Stops the spindle. Turns the coolant off. Terminates the CNC program. Example: M02 M03 Spindle Forward Starts the spindle spinning forward at the last specified spindle rate. Example: M03 S1200 And M03 M04 Spindle Reserve Starts the spindle spinning forward at the last specified spindle rate. Example : M04 S1200 And M04
M05 Stop Spindle
Stops the spindle without changing the spindle speed. Example: M05
M06 Tool change The "T" prefix causes a tool change, it need not be paired with an M06". The left most digit of the "T" ignoring zeros, selects the new tool. For safe practice tool changing operation should be done only in the home position or safe position. Example: M06 T0200 and T20 and T2 all select tool 2. M08 Coolant On M08 turns the coolant on. M09 Coolant Off M09 turns the coolant off M10 Chuck Open M10 opens the chuck. M11 Chuck Close M11 close the chuck M13 Spindle Forward, Coolant On Sets spindle rotation forward and coolant on. Example: M13 S1000
M14 Spindle Reverse, Coolant On
Sets spindle rotation reverse and coolant on. Example: M14 S1000 M25 Quill Extend Extends the quill (tail stock).
M26Quill Retract Retracts the quill (tail stock) M30 Program End & Rewind Stops the spindle. Turns the coolant off. Terminates and resets the CNC program. This command is used at the end of program to stop the program and to bring the cursor to first line of program to repeat the program once again. M38 Door Open Opens the door, waiting until the door is open. M39 Door Close Closes the door, waiting until the door is closed. M62 Set Output 1 on Sets auxiliary output 1 on. Example: M62 M63 Set Output 2 on Sets auxiliary output 2 on. Example : M63
M64 Set Output 1 off
Sets auxiliary output 1 off. Example: M64 M65 Set Output 2 off Sets auxiliary output 2 off Example: M65
M66 Wait for input 1 on Waits until auxiliary input 1 is on Examples: M66 M67 Wait for Input 2 on Waits until auxiliary input 2 on. Example: M67 M76 Wait for Input 1 off Waits until auxiliary 1 is off Example: M76 M77 Wait for Input 2 off Waits until auxiliary input 2 is off. Example: M77
M98 Subprogram Call
M98 causes another program to be executed. The "P" value specifies the program number and the number of times to execute it. The rightmost 4 digits are the program number. The digits to the left are the number of repetitions. There can be up to 999 repetitions, if the value is omitted it is called once. Example: M98 P12 and M98 P10012 both execute CNC program 12 once. M99 Subprogram Exit Returns control to the program that called the current program. If a " P" value is specified then execution begins form the block with the same "N" number, otherwise it is form the block after the subprogram call. If an M99 is specified in the main program then the execution is from the start of the program. This is called looping (or) nesting of two programs.
Example: M99 Returns to the block following the call. M99 P10 Returns to the block with "N" value 10.
EX NO:1
3 MM PARTING 1X5MM FACING
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Facing Cnc lathe PDJNL 2020K 09 R0.8
05 1200 35 0.5
EX NO:1 DATE: FULL FACING CYCLE
AIM: To write the manual part program and process plan for the given component. NC PART PROGRM:
N010 G21 G40 G98
N020 G28 U0 W0
N025 M06 T05
N040 M03 S1200
N050 G00 X21 Z2 / /* End face turning cycle *//
N060 G94 X0 Z-1 F60
N070 Z-2
N080 Z-3
N090 Z-4
N100 Z-5
N110 G28 U0 W0
N120 M05 N130 M30 RESULT: Thus the Manual Part Program and progress plan were written for given component and tool path simulation were obtained by using the cadem software VIVA QUESTIONS: 1. What is use of G21?
2. What is mean by G28 U0 W0?
3. What is the use of G40?
4. What is the purpose of G98?
5. What is mean by M30?
EX NO:2
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Facing Cnc lathe PDJNL 2020K 09 R0.8
05 1200 35 0.5
EX NO:2 DATE: STEP FACING CYCLE
AIM: To write the manual part program and process plan for the given component. NC PART PROGRM:
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05
N040 M03 S1200
N050 G00 X21 Z2 // * End facing cycle G94 * //
N060 G94 X10 Z-1 F60
N070 Z-2
N080 Z-3
N090 Z-4
N100 Z-5
N110 G28 U0 W0
N120 M05
N130 M30
NOTE: After the last pass of grooving the tool should be retracted to a maximum level in X axis
then the retraction can be done for Z axis.
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS:
1. What is use of N block number?
2. What is mean by G code?
3. What is use of step facing cycle?
4. Which code used for spindle off?
5. What is mean by G05?
EX NO:3
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 TAPER Facing
Cnc lathe PDJNL 2020K 09 R0.8
05 1200 35 0.5
EX NO:3 DATE: TAPER FACING
AIM: To write the manual part program and process plan for the given component. NC PART PROGRM:
[BILLET X20 Z70
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05
N040 M03 S1200
N050 G00 X21 Z2 // * End facing cycle G94 * //
N060 G94 X10 Z-1 F60
N070 Z-2
N080 Z-3
N090 Z-4
N100 Z-5
N120 Z-6
N130 Z-7
N140 Z-8
N150 Z-9
N160 Z-10
N170 G00 X20 Z-10 //* End facing cycle G94 * //
N180 G94 X20 Z-10 R-15 F60
N190 X20
N200 X19
N210 X18
N220 X17
N230 X16
N240 X15
N250 X14
N260 X13
N270 X12
N280 X11
N290 X10
N300 G28 U0 W0
N310 M05
N320 M30 RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software VIVA QUESTIONS: 1. What is mean by T01?
2. What is use of G94?
3. What is mean by billet size?
4. What is M03?
5. What is M06?
EX NO:4
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Plain turning
Cnc lathe PDJNL 2020K11 R0.4
01 1200 60 0.5
EX NO:4 DATE: PLAIN TURNING CYCLE
AIM: To write the manual part program and process plan for the given component. NC PART PROGRM:
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01
N040 M03 S1200
N050 G00 X21 Z2 //* Box turning cycle * //
N060 G90 X20 Z-30 F60
N070 X19
N080 X18
N090 X17
N100 X16
N110 X15
N120 X14
N130 X13
N140 X12
N150 X11
N160 X10
N170 G28 U0 W0
N180 M05
N190 M30
NOTE: In turning cycle the feed rate can be varied for each steps depends upon the finishing RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. What is use of N block number?
2. What is mean by G code?
3. What is use of turning ?
4. Which code used for spindle off?
5. What is mean by feed?
EX NO:5
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Step turning Cnc lathe PDJNL 2020K11 R0.4
01 1200 35 0.5
EX NO:5 DATE: STEP TURNING CYCLE
AIM: To write the manual part program and process plan for the given component. NC PART PROGRM:
N010 G21 G40 G98 N020 G28 U0 W0 N030 M06 T01 N040 M03 S1200 N050 G00 X21 Z2 //* Box turning cycle *// N060 G90 X20 Z-10 F60 N070 X19 N080 X18 N090 X17 N100 X16 N110 X15 N120 X14 N130 X13 N140 X12 N150 X11 N160 X10 N170 G00 X21 Z-10 N180 G90 X20 Z-20 N190 X19 N200 X18 N210 X17 N220 X16 N230 X14 N240 G28 U0 W0 N250 M05 N260 M30 RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. What is mean by Home position?
2. What is mean by step?
3. What is the use of G90?
4. What is mean by M30?
5. What is command used for chuck close?
EX NO:6
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 taper turning
Cnc lathe PDJNL 2020K11 R0.4
01 1200 60 0.5
EX NO:6 DATE: TAPER TURNING R-
AIM: To write the manual part program and process plan for the given component.
NC PART PROGR
BILLET X20 Z50
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01
N040 M03 S1200
N050 G00 X21 Z2 //* Box turning cycle *//
G90 X20 Z-40 R0 F60 R = (Minor dia) / 2
N070 X20 R-0.5 = (17 - 20) /2
N080 X20 R-1 = -3/2 = - 1.5
N090 X20 R-1.5
N100 G28 U0 W0
N110 M05
N120 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. What are the difference between G01 and C00?
2. Mention the major components of the CNC machine?
3. What is the expansion of FANUC?
4. What is mean by major dia?
5. What is mean by R?
EX NO:7
ROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Turning cycle
Cnc lathe PDJNL 2020K11 R0.4
01 1200 50 0.5
2 Grooving cycle
Cnc lathe 0.75 X0.75, 0.078W, 0.32Depth LH
03 800 70 0.5
3 Threading cycle
Cnc lathe Thread 0.75
07 500 2 0.3
x0.75, 60Deg., Depth 0.0885, LH
EX NO:7 DATE: BOX THREADING CYCLE
AIM: To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01
N040 M03 S1200
N050 G00 X21 Z2
N060 G71 U0.3 R1
N070 G71 P80 Q150 U0.1 W0.1 F50 //* Multiple turning cycle *//
N080 G01 X10
N090 Z0
N100 G01 X12 Z-1
N110 G01 Z-25
N120 G01 X15
N130 G01 Z-40
N140 G01 X19
N150 G01 Z -50
N160 G70 P90 Q150 F70
N170 G28 U0 W0
N180 M06 T03 //* Grooving cycle *//
N190 M03 S800
N200 G00 X14 Z-18
N210 G75 R1
N220 G75 X10 Z-20 P500 Q500 F10
N230 G28 U0 W0 //*Threading cycle*//
N240 M06 T0606 Threading calculation
N250 M03 S500 Core = Nominal -height of thread
N260 G00 X14 Z4 Cd = D - 2h
N270 G92 X12 Z-15 F2 Calculation for height of thread
N280 X11.9 h = 0.61343 x pitch
N290 X11.8 h = 0.61343 x 2
N300 X11.7 Core calculation
N310 X11.6 cd = D - 2h
N320 X11.5 cd = 12 - 2 )1.22686)
N330 X11.4 cd = 9.54628mm
N340 X11.3
N360 X11.1
N370 X11
N380 X10.9
N390 X10.8
N400 X10.7
N410 X10.6
N420 X10.5
N430 X10.4
N440 X10.3
N450 X10.2
N460 X10.1
N470 X10
N480 X9.9
N490 X9.8
N510 X9.6
N520 X9.5
N530 X9.47
N540 G28 U0 W0
N550 M05
N560 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS:
1. What are the uses of G codes?
2. Write syntax for G75.
3. Can G90 be used for facing?
4. Name the command used for door open.
5. What is the use of G75?
EX NO:8
M 1 2*2P
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Turning cycle
Cnc lathe PDJNL 2020K11 R0.4
01 1200 50 0.5
2 Grooving cycle
Cnc lathe 0.75 X0.75, 0.078W, 0.32Depth LH
03 800 70 0.5
3 Threading cycle
Cnc lathe Thread 0.75 x0.75, 60Deg., Depth 0.0885,
07 500 2 0.3
LH
EX NO:8 DATE: MULTIPLE THREADING CYCLE
AIM: To write the manual part program and process plan for the given component.
NC PART PROGRAM
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01 //* Calling turning tool *//
N040 M03 S1200
N050 G00 X22 Z1
N060 G71 U0.5 R1 //* Multiple turning cycle *//
N070 G71 P80 Q130 U0.1 W0.1 f60
N080 G01 X10
N090 Z0
N100 G01 X12 Z-1
N110 G01 Z-30
N120 G01 x20
N130 G01 Z-40
N140 G70 P80 Q130 f50 //* Finishing cycle *//
N150 G28 U0 W0
N160 M06 T03 //* Calling 3mm grooving tool *//
N170 M03 S800
N180 G00 X13 Z-23
N190 G75 R1
N200 G75 X8 Z-25 P500 Q500 F50
N210 G28 U0 W0
N220 M06 T07 //* Calling threading tool *//
N230 M03 S500
N240 G00 X14 Z4
N250 G76 P031560 Q100 R0.15
N260 G76 X9.54 Z-21 P1226 Q125 F2
N270 G28 U0 W0
N280 M05
N290 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. Write the applications of G codes
2. Mention few important G codes
3. What are the use of M codes?
4. Write about some important M codes?
5. What is the use of multiple turning cycle?
EX NO:9
M.12*1.5
1*45o
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Turning cycle
Cnc lathe PDJNL 2020K11 R0.4
01 1200 50 0.5
2 Grooving cycle
Cnc lathe 0.75 X0.75, 0.078W, 0.32Depth LH
03 800 70 0.5
3 Threading cycle
Cnc lathe Thread 0.75 x0.75, 60Deg., Depth 0.0885, LH
07 500 2 0.3
EX NO:9 DATE: MULTIPLE THREADING CYCLE
AIM: To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98 N020 G28 U0 W0 N030 M06 T01 //* Calling turning tool *// N040 M03 S1200 N050 G00 X30 Z1 N060 G71 U0.5 R1 //* Multiple turning cycle *// N070 G71 P80 Q150 U0.1 W0.1 f60 N080 G01 X11 N090 Z0 N100 G01 X12 Z-1 N110 G01 Z-34 N120 G01 X16 N130 G01 X24 Z-40 N140 G01 W-10 N150 G01 X30 N160 G70 P80 Q150 f50 //* Finishing cycle *// N170 G28 U0 W0 N180 M06 T03 //* Calling 3mm grooving tool *// N190 M03 S800 N200 G00 X13 Z-33 N210 G75 R1 N220 G75 X8 Z-35 P500 Q500 F50 N230 G28 U0 W0 N240 M06 T07 //* Calling threading tool *// N250 M03 S500 N260 G00 X17 Z4 N270 G76 P031560 Q100 R0.15 N280 G76 X10.54 Z-31 P0919 Q125 F1.5 N290 G28 U0 W0 N300 M05 N310 M30 RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. What is the difference between G01 and G00? 2. When do we use G00? 3. Write syntax for G75. 4. Write syntax for G70 5. What is meant by tool offset?
EX NO:10
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Stock removal facing cycle
Cnc lathe PDJNL 2020K 09 R0.8
05 1200 30 0.5
EX NO:10 DATE: STOCK REMOVAL FACING CYCLE
AIM:
To write the manual part program and process plan for the given component.
NC PART PROGRAM
[BILLET X25 Z50
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05
N040 M03 S1200
N050 G00 X31 Z5
N060 G01 Z0
N070 G72 U0.5 R1 //* Multiple facing cycle *//
N080 G72 P90 Q180 U0.2 W0.2 F30
N090 G01 Z-22.5 F40
N100 X30
N110 X26
N120 Z-17.5
N130 X20 Z-15
N140 Z-10
N150 G02 X10 Z-5 R5 F40
N160 G01 Z-2.5 F50
N170 X5 Z0
N180 Z0
N190 G70 P90 Q180 //* Finishing cycle *//
N200 G28 U0 W0
N210 M05
N220 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. Write syntax for G72.
2. What is different between G02 and G03?
3. What is the code for multiple cycles?
4. How to cut the thread in CNC lathe?
5. How to change the tool in CNC program
EX NO:11
PROCESS PLANNING
Process planning Material: Aluminum
Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Stock removal turning cycle
Cnc lathe PDJNL 2020K11 R0.4
05 1200 30 0.5
EX NO:11 DATE: STOCK REMOVAL TURNING
AIM: To write the manual part program and process plan for the given component.
NC PART PROGRAM
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05
N040 M03 S1200
N050 G00 X30 Z5
N060 G00 Z1
N070 G71 U0.5 R1
N080 G71 P90 Q150 U0.1 W0.1
N090 G01 X0
N100 Z0
N110 G03 X10 Z-5 R5
N120 G01 Z-15
N130 X20 Z-25
N140 G01 Z-35
N150 G02 X30 Z-40 R5
N160 G70 P90 Q150 //* Finishing cycle *//
N170 G28 U0 W0
N180 M05
N190 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS:
1. What is use of G21?
2. What is use of G98?
3. Is G00 a model code?
4. How the subprogram is named?
5. Why fixed/canned cycles are preferred?
EX NO:12
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Pattern Repeating Cycle
Cnc lathe PDJNL 2020K
05 1200 30 0.5
EX NO:12 DATE: PATTERN REPEATING CYCLE
AIM: To write the manual part program and process plan for the given component.
NC PART PROGRAM
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05 //* Right hand turning tool *//
N040 G50 S2500
N050 S1200 M03
N060 G00 X30 Z1
N070 G71 U0.5 R1
N080 G71 P090 Q140 U0.5 W0.25 F50
N090 G01 X8
N100 G01 Z0
N110 Z-10
N120 X24 W-20
N130 G02 X30 W-20 R30
N140 G01 W-10 N150 G70 P090 Q140 //* Finishing cycle *//
N160 G28 U0 W0
N170 G00 X30 Z1 M08
N180 G73 U.75 W0 R4
N190 G73 P200 Q250 U0.15 W0.15 F50
N200 G01 X6
N210 Z0
N220 Z-10
N230 G01 X22 W-20
N240 G02 X28 W-20 R30
N250 G01 W-10
N260 G70 P200 Q250 F50 //* Finishing cycle *//
N270 G28 U0 W0
N280 M05
N290 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. How to change the tool speed in CNC lathe?
2. What is the difference between absolute and incremental system?
3. What are the axes to be considered while writing program for CNC lathe?
4. What is the file extension of CNC program?
5. What are the codes for coolants on or off? EX NO:13
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234
Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Center drill Cnc lathe 1.00MM, Dia.,
02 1500 30 0.5
2 6mm drill Cnc lathe 6.00MM, Dia.,
04 1500 30 0.5
3 12mm drill Cnc lathe 12.00MM, Dia.,
08 1500 30 0.5
EX NO:13 DATE: PECK DRILLING CYCLE
AIM: To write the manual part program and process plan for the given component.
NC PART PROGRAM
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T02 //* Center drill *//
N050 M03 S1500
N060 G00 X0 Z3
N070 G74 R1
N080 G74 X0 Z-5 Q500 F30
N085 G28 U0 W0
N090 M06 T04 //* 6mm drill *//
N100 M03 S1500
N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 M06 T08 //* 12mm drill *//
N160 M03 S1000
N170 G00 X0 Z3
N180 G74 R1
N190 G74 X0 Z-20 Q500 F30
N200 G28 U0 W0
N210 M05
N220 M30
RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. Write the syntax for G74.
2. Calculate core diameter for M18x1.5 thread.
3. Write syntax for G75 cycle.
4. What is different drillings?
5. What is the use of G74cycle?
EX NO:14
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Center drill Cnc lathe 1.00MM, Dia.,
02 1500 30 0.5
2 6mm drill Cnc lathe 6.00MM, Dia.,
04 1500 30 0.5
3 12mm drill Cnc lathe 12.00MM, Dia.,
08 1500 30 0.5
4 10mm boring bar
Cnc lathe S10K SDUCL07 R0.2
03 1500 30 0.5
EX NO:14 DATE: PECK DRILLING CYCLE
AIM: To write the manual part program and process plan for the given component.
NC PART PROGRAM
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T02 //* Center drill *//
N050 M03 S1200
N060 G00 X0 Z3
N070 G74 R1
N080 G74 X0 Z-5 Q500 F30
N085 G28 U0 W0
N090 M06 T04 //* 6mm drill3 *//
N100 M03 S1200
N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 M06 T08 //* 12mm drill *//
N160 M03 S1200
N170 G00 X0 Z3
N180 G74 R1
N190 G74 X0 Z-20 Q500 F30
N200 G28 U0 W0
N210 M06 T03 //* 10mm boring bar *//
N220 M03 S1200
N230 G00 X12 Z2
N240 G90 X13 Z-20
N250 X14
N260 X15
N270 X16 Z-10
N280 X17
N290 X18
N300 X19
N310 X20
N320 G28 U0 W0
N330 M05
N340 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. What is code for spindle stop?
2. What is code for door close?
3. What is the code for chuck open?
4. What is code for door open?
5. What is use of boring cycle?
EX NO:15
PROCESS PLANNING
Process planning Material: Aluminum
Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 6mm drill Cnc lathe 6.00MM, Dia.,
04 1500 30 0.5
2 12mm drill Cnc lathe 12.00MM, Dia.,
08 1500 30 0.5
3 10mm boring bar
Cnc lathe S10K SDUCL07 R0.2
03 1500 30 0.5
4 Internal threading
Cnc lathe Thread Dia 16.0,55 Deg.,Depth 2.0, LH
07 1500 30 0.5
EX NO:15 DATE: INTERNAL THREADING
AIM: To write the manual part program and process plan for the given component.
NC PART PROGRAM
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T04 //* 6mm drill *//
N040 M03 S1500
N050 G00 X0 Z3
N060 G74 R1
N070 G74 X0 Z-20 Q500 F30
N080 G28 U0 W0
N090 M06 T08 //* 12mm drill *//
N100 M03 S1000
N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 M06 T03 //* 10mm boring bar *//
N160 M03 S1200
N170 G00 X12 Z2
N180 G90 X13 Z-18 F50
N190 X14
N200 X15
N210 X16
N220 X17
N230 X18
N240 X19
N250 X20 Z-13
N260 X21.58
N270 G28 U0 W0
N280 M06 T07 //* Internal threading tool *//
N290 M03 S500
N300 G00 X18 Z3
N310 G76 P031560 Q100 R0.1
N320 G76 X24 Z-10 P1226 Q125 F2
N330 G28 U0 W0
N340 M05
N350 M30 RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software VIVA QUESTIONS: 1. Write the syntax for G76.
2. Calculate thread height for M18x1.5
3. Why threading is done at slow speed?
4. What is the use of M06?
5. When the uses of
N block numbers?
EX NO:16
PROCESS PLANNING
Process planning Material: Aluminum
Billet size :ø25*70 Date: Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Center drill Cnc lathe 1.00MM, Dia.,
02 1200 30 0.5
2 6mm drill Cnc lathe 6.00MM, Dia.,
04 1200 30 0.5
3 12mm drill Cnc lathe 12.00MM, Dia.,
08 1200 30 0.5
4 10mm boring bar
Cnc lathe S10K SDUCL07 R0.2
03 1200 30 0.5
EX NO:16 DATE: PECK DRILLING CYCLE
AIM:
To write the manual part program and process plan for the given component.
NC PART PROGRAM
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T02 //* Center drill *//
N050 M03 S1200
N060 G00 X0 Z3
N070 G74 R1
N080 G74 X0 Z-5 Q500 F30
N090 M06 T04 //* 6mm drill *//
N100 M03 S1200
N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 N030 M06 T08 //*12mm drill *//
N160 M03 S1200
N170 G00 X0 Z3
N180 G74 R1
N190 G74 X0 Z-20 Q500 F30 N200 G28 U0 W0
N210 M06 T03 //* 10mm boring bar *//
N220 M03 S1200
N230 G00 X12 Z2
N240 G71 U0.5 R1
N250 G71 P260 Q290 U0.2 W0.2 F50
N260 G01 X24
N270 G01 Z0
N280 G01 X12 Z-13
N290 G01 X11
N300 G70 P260 Q290 F50
N310 G28 U0 W0
N320 M05
N330 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software VIVA QUESTIONS: 1. What are the difference between drilling and peck drilling?
2. Mention the major components of the CNC machine?
3. What is the expansion of FANUC?
4. What are the important lathe operations?
5. What are the important of drilling operation?
EX NO:17
PROCESS PLANNING
Process planning Material: Aluminum Billet size :ø25*70 Date:
Program no: 1234 Department : Mechanical / CAM Lab
s.no Operation Machine Tool
Cutting tool
Tool Number
Spindle speed (rpm)
Feed Rate (mm/min)
Depth of cut (mm)
remarks
1 Center drill Cnc lathe 1.00MM, Dia.,
02 1200 30 0.5
2 6mm drill Cnc lathe 6.00MM, Dia.,
04 1200 30 0.5
3 12mm drill Cnc lathe 12.00MM, Dia.,
08 1200 30 0.5
4 10mm boring bar
Cnc lathe S10K SDUCL07 R0.2
03 1200 30 0.5
EX NO:17 DATE: MULTIPLE BORING
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T02 //* Center drill *//
N050 M03 S1200
N060 G00 X0 Z3
N070 G74 R1
N080 G74 X0 Z-5 Q500 F30
N085 G28 U0 W0
N090 M06 T04 //* 6mm drill *//
N100 M03 S1200
N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 N030 M06 T08 //* 12mm drill *//
N160 M03 S1200
N170 G00 X0 Z3
N180 G74 R1
N190 G74 X0 Z-20 Q500 F30
N200 G28 U0 W0
N210 M06 T03 //* 10mm boring bar *//
N220 M03 S1200
N230 G00 X12 Z2
N240 G71 U0.5 R1
N250 G71 P260 Q320 U0.2 W0.2 F50
N260 G01 X24
N270 G01 Z0
N280 G01 Z-9.5
N290 G03 X19 Z-12.5 R2.5
N300 G01 W-3
N310 G01 X15 W-3
N320 G01 X12
N330 G70 P260 Q320 F30
N340 G28 U0 W0
N350 M05
N360 M30
RESULT: Thus the Manual Part Program and progress plan were written for given component and
tool path simulation were obtained by using the cadem software
VIVA QUESTIONS: 1. Explain about G codes?
2. Mention few important G codes?
3. What is the use of M codes?
4. Write about some important M codes?
5. What is the use of multiple boring cycle?
CNC MILLING EXERCISES
DESCRIPTION FOR M CODES
M00 Program Stop
M00 waits for EOB to be pressed.
M02 End of Program
M02 halt program execution
The spindle is turned off and the tool moves to the most positive position on the Z axis
M03 Start Spindle
An M03 instruction starts forward spindle motion. It requires a speed within the range 100 to
3000 RPM
Example : M03 S2200
The spindle should be switched on before any movement below the component surface.
M04 Reverse Spindle
An M04 instruction starts reverse spindle motion, it requires a speed within the range 100 to
3000 rpm.
Example : M04 S2200
The spindle should be switched on before any movement below the component surface.
M05 Stop Spindle
An M05 instruction stops spindle rotation.
It is good programming practice to issue an M05 before a tool change, and at the end of a
program, However this will be done automatically should you omit this instruction
M06 Change Tool
The M06 instruction causes the Fanuc to change to a different tool. The tool changing operation
should be done in the home position only.
Example: M06 T1
You can get tool length and diameter at the start of the program using the TOOLDEF directive.
Only for the simulation practice.
M08 Coolant On
M08 turns the coolant on.
M09 Coolant Off
M09 turns the coolant off.
M10/11 Work Clamp Open/Close
M10 opens the work clamp
M11 closes the work clamp.
M13 Coolant Spindle Fwd
M13 turns the coolant on and starts forward spindle motion.
Example : M13 S1000
M14 Coolant Spindle Rev
M13 turns the coolant on and starts reverse spindle motion.
Example: M14 S1000
M19 Orientate Spindle
M19 orientates the spindle
M20 /21 ATC Arm In / Out
M20 moves the ATC arm in.
M21 moves the ATC arm out.
M22 / 23 ATC Arm Down / Up
M22 moves the ATC arm down.
M23 moves the ATC arm up.
M24/25 ATC Arm Clamping
M24 activates the ATC drawbar. [Tool release]
M25 releases the ATC drawbar. [Tool pick up]
M27 Reset Carousel
M27 can be used in the control panel.
The current carousel position is treated as position one.
Example : At the time of tool changing operation the screen will display the current station
number which is engaged for particular operation.
M32/33 Turret Indexing
M32 Clockwise rotation of turret
M33 Counter clockwise rotation of the turret
M38/39 Door Open /Close
M38 opens the door
M39 closes the door
Input/ Output Commands for FMS
M62/65 Auxiliary output 1/2 on
M62 Sets Auxiliary output 1 on
M65 Sets Auxiliary output 2 on
M64/63 Auxiliary output 1/2 off
M64 Sets Auxiliary output 1 off
M63 Sets Auxiliary output 2 off
COMMANDS DESCRIPTION
These commands are available in the machine side
The Robot inputs can be switched on by sending the output signal from machine side to
Robot side as a input signal.
M76//67 Waiting for Auxiliary input 1/2 on
M76 waiting for Auxiliary input 1 on
M67 waiting for Auxiliary input 2 on
NOTE: M76/67/66/77
These M Codes are available in the machine side. The machine side inputs can be switched on by
transferring the output signal from Robot side to machine aide as a input signal.
The machine inputs can be switched on by transferring the high signal which comes from the
Robot side. The machine inputs can be switched off by transferring the low signal which comes
from the Robot side .
M70 X Mirror On
M70 sets X axis mirroring about the current X axis position.
M71 Y Mirror On
M71 sets Y axis mirroring about the current Y axis position.
M76/77 Wait for Auxiliary 1/2 on
M76 waits for auxiliary input 1 t become off
M77 waits for auxiliary input 2 to become off.
M80 X Mirror Off
M80 disables X axis mirroring
M81 Y Mirror Off
M81 disables Y axis mirroring
M98 Subprogram Call
M98 causes another program to be executed. The "P" value specifies the program number and
the number of times to execute it.
The right most 4 digits are the program number.
The digits to the left are the number of repetitions.
There can be up to 999 repetitions, if the value is omitted it is called once.
Examples: M98 P12
and M98 P10012
both execute CNC program 12 once.
M99 Subprogram Exit
Returns control to the program that called the current program.
If a "P" value is specified then execution begins form the block with the same "N" number,
otherwise it is form the block after the subprogram call.
If an M99 is specified in the main program then the execution is form the start of the program.
This is called looping (or) nesting of one or more programs
Example: M99
Returns to the block following the call.
M99 P10
Returns to the block with "N" value 10.
DESCRIPTION OF G CODES
G00 Rapid Traverse or fast Traverse
AG00 causes the tool to move to the specified position at the maximum speed.
Example: G00 X20 Y30 Z1
Here the tool is moved to X 20mm, Y 30mm, and Z 1mm.
G01 Linear Interpolation or Slow Traverse
AG01 causes linear motion to the given position.
Example : G01 X20 Y30 Z -1 F180
Here the tool is moved to X 20 mm, Y 30mm, and Z - 1mm at a feed rate of 180 mm per minute.
G02 Clockwise Circular Interpolation
Arcs can be specified by either radius or by centre.
If a positive radius is specified then the shorter arc is cut. If it is negative then the longer arc is
cut.
Example: G02 X30 Y20 R15 F80
In this example the tool is moved to X30mm and Y 20mm. The arc has a radius of 15mm.
"I" and "J" specify the arc start. If the value is 0 then it need not be specified.
Example: G02 X30 Y20 I15 J0 F80
G03 Counter - Clockwise Circular Interpolation
G03 causes counter - clockwise circular motion.
Arcs can be specified by either radius or arc centre. If a positive radius is specified then the
shorter arc is cut. If it is negative then the longer arc is cut.
Example: G03 X30 Y20 R15 F80
In this example the tool is moved to X 30 mm and Y 20mm. The arc has a radius of 15mm
"I" and "J" specify the arc centre relative to the arc start. If the value is 0 then it need not be
specified.
Example: G03 X30 Y20 I15 J0 F80
G04 Dwell
A Dwell of up to 500 seconds can be programmed.
Example: G04 X10
This causes a delay in machining of 10 seconds. This can be used for drilling cycles.
G20 Imperial Units
All future instruction parameters will be taken as imperial values. That is, they will specify
inches.
G21 Metric Units
All future instruction parameters will be taken as metric values. That is, they will specify
millimeters. By default metric units will be taken for part programming.
G28 Goto Reference Point
A G28 causes a fast traverse to the specified position and then to the machine datum.
Example: G28 X84.0 Y80.0 Z5.0
G40 Cancel Tool Radius Compensation
G40 switches off any tool radius compensation activated by a G41 or G42..
G41 Left Hand Radius Compensation
G41 causes future movement to take place to the left of the programmed path.
The offset used is equal to the radius of the current tool.
G42 Right Hand Radius Compensation
G42 causes future movement to take place to the right of the programmed path
The offset used is equal to the radius of the current tool.
G73 Past Peck Drilling Cycle
Example: G73 X1.0 Y1.0 Z-5.0 Q0.3 R1.0 K1 P500 F30
"X" and "Y" are the next position to drill at.
"Z" is the base of the hole
"Q" is the cut in value
"R" is the R point level
"K" is the number of repetitions it defaults to 1
"p" Dwelling time
"F" Feed rate
G74 Counter Tapping Cycle
Example: G74 X1.0 Y1.0 Z-6.0 R1.0 P750 F30
"X" and "Y" are the next position to drill at
"Z" is the base of the hole
"R" is the R point level
"P" is 1000 times the delay in seconds
"K" is the number of repetitions it defaults to 1.
"F" Feed rate
G84 Tapping Cycle
Example : G84 X1.0 Y1.0 Z-6.0 R1.0 P750 K1 F30
"X" and "Y" are the next position to drill at.
"Z" is the base of the hole
"R" is the R point level
"P" is 1000 times the delay in seconds
"K" is the number of repetitions it defaults to 1.
"F" Feed rate
G85 Boring Cycle
Example: G85 X1.0 Y1.0 Z-6.0 K1 F30
"X" and "Y" are the next position to drill at
"Z" is the base of the hole
"K" is the number of repetitions it defaults to 1.
"F" Feed rate
G86 Boring Cycle
Example: G86 X1.0 Y1.0 Z-6.0 K1 F30
"X" and "Y" are the next position to drill at
"Z" is the base of the hole
"K" is the number of repetitions it defaults to 1.
"F" Feed rate
G87 Back Boring Cycle
Example: G87 X1.0 Y1.0 Z-6.0 P300 Q0.7 K1 F30
"X" and "Y" are the next position to drill at.
"P" is 1000 times the delay in seconds
"Q" is the shift value
"R" is the number of repetitions it defaults to 1
"F" Feed rate
G89 Boring Cycle
Example: G89 X1.0 Y1.0 Z-6.0 P1000 K1 F30
"X" and "Y" are the next position to drill at.
"Z" is the base of the hole
"P" is 1000 times the delay in seconds
"K" is the number of repetitions it defaults to 1.
"F" Feed rate
G90 Absolute Movement
All future movement will be absolute until over - ridden by a G91 instruction. This is the default
setting.
Example: G90
G01 X30 Y0
The position becomes X30 Y0
G91 Incremental Movement
All future movement will be incremental until over - ridden by a G90 instruction.
Example: G90
G01 X15
G91
G01 X2
The position become X17
G92 Set Datum
G92 sets the datum relative to the current position.
Example: G00 X30.0 Y40.0
G92 X0.0 Y0.0
Makes the position that was X30 Y40 become X0 Y0
G94 Per Minute Feed
The "F" value specifies the feed rate in millimeters, or inches, per minute.
G95 Per Revolution Feed
The "F" value is the ratio of feed rate to spindle speed. The feed rate is changed whenever the
spindle changes.
Example: G95 S1200
G01 X10.0 P0.3
This sets the feed rate to 360, (1200*0.3)
G98 Initial Level Return
G98 sets the initial level return mode for drilling cycles.
G99 R Point Return
G99 sets the R point return mode for drilling cycles.
PROGRAM No.02 LINEAR INTERPOLATION
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1200
N60 G90 G00 X-40 Y-40
N070 Z5
N080 G01 Z-1 F50
N090 Y40
N100 X40
N110 Y-40
N120 X-40
N130 X40 Y40
N140 G00 Z5
N150 G00 X-40 Y40
N160 G01 Z-1 F50
N170 X40 Y-40
N180 G00 Z5
N190 M05
N200 G91 G28 Z0
N210 G28 X0 Y0
N220 M30
VIVA QUESTIONS:
1. What is the difference between G00 and G01codes?
2. How to make Rectangular box ?
3. What is the code for multiple cycle?
4. How to select cutter?
PROGRAM No.02 LINEAR WITH CIRCULAR INTERPOLATION N010 G21 G94 N020 G91 G28 Z0 N030 G28 X0 Y0 N040 M06 T2 N050 M03 S1200 N060 G90 G00 X-22.5 Y-37.5 N070 G00 Z5 N080 G01 Z-1 F50 N090 G03 X-37.5 Y-22.5 R15 N100 G01 Y22.5 N110 G03 X-22.5 Y37.5 R15 N120 G01 X22.5 N130 G02 X37.5 Y22.5 R15 N140 G01 Y-22.5 N150 G03 X22.5 Y-37.5 R15 N160 G01 X-22.5 N170 G00 Z5 N180 G00 X-15 Y0 N190 G01 Z-1 F50 N200 G03 X15 Y0 R15 N210 G03 X-15 Y0 R15 N220 G00 Z5 N230 M05 N240 G91 G28 Z0 N250 G28 X0 Y0 N260 M30 VIVA QUESTIONS:
1. How to change the tool speed in CNC milling? 2. What is the difference between absolute and incremental system? 3. What are the axes to be considered while writing program for CNC milling? 4. What is the file extension of CNC program? 5. What are the codes for coolants on or off?
(PROGRAM No.03) LINEAR CIRCULAR INTERPOLATION WITH CIRCULAR, RECTANGULAR POCKETING)
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N035 M06 T2
N040 M03 S1200
N050 G90 G00 X-30 Y-30
N060 G00 Z5
N070 G01 Z-1 F50
N080 Y-10
N090 G02 X-30 Y10 R10
N100 G01 Y30
N110 X-10
N120 G02 X10 Y30 R10
N130 G01 X30
N140 Y10
N150 G02 X30 Y-10 R10
N160 G01 Y-30
N170 X10
N180 G02 X-10 Y-30 R10
N190 G01 X-30
N200 G00 Z5
N210 G170 P0 Q1 R0.5 X-10 Y10 Z-2 I0 J0 K10
N220 G171 P50 S2000 R40 F60 B2500 J100
N230 G170 P0 Q1 R0.5 X10 Y-10 Z-2 I0 J0 K10
N240 G171 P75 S2000 R50 F70 B2500 J50
N250 G172 I16 J16 K0 P0 Q1 R0 X7 Y7 Z-2
N260 G173 I0 K0 P75 T1 S2000 R50 F80 B2500 J80 Z5
N270 G172 I16 J16 K0 P0 Q1 R0 X-23 Y-23 Z-2
N280 G173 I0 K0 P75 T1 S2000 R40 F60 B2500 J80 Z5
N290 G00 Z5
N300 M05
N310 G91 G28 Z0
N320 G28 X0 Y0
N230 M30
VIVA QUESTIONS:
1. What is the g code for circular pocketing?
2. How to change the depth of cut in milling operation?
3. What is the use of mirroring?
4. What are the functional keys uses in Fanuc programming?
5. What is use of dry run option?
PROGRAM No.04 ARC EXPLANATION N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S2500
N060 G90 G00 X10 Y10
N070 G00 Z5
N080 G01 Z-1.2 F50
N090 G02 X10 Y70 R100
N100 G02 X70 Y70 R100
N110 G02 X70 Y10 R100
N120 G03 X10 Y70 R30
N130 G03 X70 Y70 R30
N140 G03 X70 Y10 R30
N150 G03 X10 Y10 R30
N160 G00 Z5
N170 M05
N180 G91 G28 Z0
N190 G28 X0 Y0
N200 M30
VIVA QUESTIONS: 1. What is mean by G02?
2. What is the difference between absolute and incremental system?
3. What are the axes to be considered while writing program for CNC Milling?
4. What is the code for multiple cycles?
5. What is mean by G91?
PROGRAM No.05 ARC EXPLANATION
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1800
N060 G90 G00 X-35 Y-36.5
N070 Z5
N080 G01 Z-1 F50
N090 Y-31.5
N100 G02 X-2.5 Y25.04 R65
N110 G02 X35 Y3.39 R25
N120 G01 Y-11.25
N130 G02 X10 Y-36.25 R25
N140 G01 X-35 Y-36.25
N150 G00 Z5
N160 M05
N170 G91 G28 Z0
N180 G28 X0 Y0
N190 M30
VIVA QUESTIONS: 1. What are the important milling operations?
2. What is different between Turning and Milling?
3. What is the use of M codes?
4. Write about some important M codes?
5. What is the use of M codes?
PROGRAM No.06
MIRROR IMAGING
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1800
N060 G90 G00 X0 Y0
N070 G00 Z5
N080 M98 P0010008
N090 M70
N100 M98 P0010008
N110 M80
N120 M70
N130 M71
N140 M98 P0010008
N150 M80
N160 M81
N170 M71
N180 M98 P0010008
N190 M81
N200 G00 Z5
N210 M05
N220 G91 G28 Z0
N230 G28 X0 Y0
N240 M30
INCREMENTAL METHOD
(SUBPROGRAM FOR EX 6
O0008
N010 G90 G00 X10 Y10
N020 G01 Z-.5 F50
N030 X40
N040 X10 Y40
N050 Y10
N060 G00 Z6
N070 G00 X0 Y0
N080 M99
VIVA QUESTIONS:
1. What is mean by M05?
2. What is mean by R?
3. What is the use of G98?
4. What is mean by M30?
5. Mention few important G codes?
PROGRAM No.07
MILLING THE FLAG
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T01
N050 M03 S2000
N060 G90 G00 X-30 Y-45 Z5
N070 G01 Z-1.2 F50
N080 G02 X-45 Y-30 R15
N090 G01 Y30
N100 G02 X-30 Y45 R15
N110 G01 X30
N120 G02 X45 Y30 R15
N130 G01 Y-30
N140 G02 X30 Y-45 R15
N150 G01 X-30
N160 G00 Z5
N170 G00 X0 Y-45
N180 G01 Z-1.2 F50
N190 G03 X-45 Y0 R60
N200 G03 X0 Y45 R60
N210 G03 X45 Y0 R60
N215 G03 X0 Y-45 R60
N218 G00 Z5
N220 G170 R0 P0 Q1 X0 Y10 Z-2.2 I0 J0 K10
N230 G171 P75 S2000 R50 F70 B2500 J50
N240 G172 I20 J20 K0 P0 Q1 R0 X-10 Y-10 Z-2.2
N250 G173 I0 K0 P75 S1200 T1 S1800 R50 F60 B2500 J50 Z5
N250 G00 Z5
N260 G00 X0 Y0
N270 M98 P1000
N280 M70
N290 M98 P1000
N300 M80
N310 M70
N320 M71
N330 M98 P1000
N340 M80
N350 M81
N360 M71
N370 M98 P1000
N380 G00 Z5
N390 G83 G99 X32 Y32 Z-2.2 Q1 R1 F40 K1
N400 X-32 Y32
N410 Y-32
N420 X32
N430 G80
N440 G00 Z5
N450 G00 X0 Y0
N460 G81 G99 X-20 Y0 Z-2.2 R1 F50
N470 G82 G99 X20 Y0 Z-2.2 R2 F50 P1000 Q1 K1
N480 G00 Z5
N490 G80
N500 M05
N510 G91 G28 Z0
N520 G28 X0 Y0
N530 M30
SUBPROGRAM FOR EX 7
O1000
N010 G90 G00 X25 Y35
N020 G01 Z-1.2 F50
N030 X35
N040 Y25
N050 X25 Y35
N060 G00 Z5
N070 X0 Y0
N080 M99
VIVA QUESTIONS:
1. What is meant by cutter compensation?
2. What is use of G98?
3. Milling machine used to make Gear yes or no?
4. How the subprogram is named?
5. Why fixed/canned cycles are preferred?
PROGRAM No.08
PROFILE MILLING
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S2000
N060 G90 G00 X5 Y42 Z5
N070 G01 Z-1 F50
N080 G03 X4 1 Y27 R43
N090 X64 Y31 R29
N100 G01 X62 Y35
N110 G03 X80 Y49 R32
N120 X93 Y56 R36
N130 G02 X76 Y76 R26
N140 X67 Y62 R30
N150 X59 Y70 R6
N160 G01 X41 Y76
N170 X35 Y69
N180 G03 X5 Y56 R43
N190 G02 X5 Y42 R8
N200 G01 Z5
N210 G00 X17 Y56
N220 G01 Z-1
N230 G01 Z5
N240 G91 G28 Z0
N250 G28 X0 Y0
N260 M05
N270 M30
VIVA QUESTIONS:
1. What is mean by profile?
2. Which mean by M05?
3. Write syntax for G90.
4. Is it possible to do circular cutting with G90?
5. What is meant by tool offset?
STUDY OF CIM
ROBOT COMMANDS
JOINT
To teach current position as a joint co-ordinate PTP
To teach current position as a point START –SPLINE
Initial point to define a spline END –SPLINE
End point of a spline HOME ALL
All six axes rested at home position
ROBOT GRIPPER GRIPPER OPEN
To open pneumatic gripper GRIPPER CLOSE
To close pneumatic gripper
ARITHMETIC OPERATORS
=, +, -, *, / are used in program for loop/ repetitive operation.
FLOW CONTROL JUMP
To bypass the program control to the desired line LABEL
To name a program (or) a line WAIT
To provide idle (or) waiting time in terms of milliseconds.
SPEED
To set the operating speed of elements in mm/sec
CONTROL OPERTORS
1. Commands - =, < and > used in program for loop/ repetitive operation 2. To check the decision criteria which is specified in program
PORT
To name of port in control in switch on/ off
OUT PUT
To print the program using printers REMARK
To program of adding work in remark PORTMASK- 0
Switch off port- To stop receiving massage via port PORTMASK-1
Switch on port- To start receiving massage via port
RUNNING A ROBOT PROGRAM
AUTO
To run the whole program continuously without any in eruptions
SINGLE SETP
To execute the program step (or) line by line SELECTION
To execute the sleeted line INDIVIDUAL AXIS HOME
To set the individual axis to the home position CIRCLE- MID
To teach current position as midpoint of circular motion CIRCEL- END
To teach current position as end point of circle motion JOINT CONTROL
All individual joints J1, J2, J3, J4, J5 and J6 can be controlled manually by clicking joint control in positive and negative directions.
EX NO: 1
Pick and place operation
Pick and Place Operation LET S = 0 LABEL BIT GRIPPER OPEN SPEED 45 /* Speed 45 mm/sec*/ JOINT A1 -245.65 A2 -90.00 A3 90.00 A4 0.00 A5 90.00 A6 0.03 /*Joint coordinate position*/ JOINT A1 -245.65 A2 -76.53 A3 84.95 A4 0.00 A5 1.44 A6 0.03 JOINT A1 -245.65 A2 -63.89 A3 87.81 A4 0.00 A5 -20.07 A6 0.03 JOINT A1 -245.65 A2 -52.02 A3 92.40 A4 0.00 A5 -40.25 A6 0.03 WAIT 2000 /* Idle time 2 Sec*/ GRIPPER CLOSE JOINT A1 -245.65 A2 -61.59 A3 95.17 A4 0.00 A5 -40.25 A6 0.04 JOINT A1 -245.65 A2 -70.24 A3 92.52 A4 0.00 A5 -21.96 A6 0.04 JOINT A1 -245.65 A2 -90.09 A3 96.60 A4 0.00 A5 -1.77 A6 0.04 JOINT A1 -65.20 A2 -90.03 A3 89.86 A4 0.00 A5 -1.77 A6 0.04 JOINT A1 -60.84 A2 -73.40 A3 73.23 A4 0.00 A5 -8.43 A6 0.04 JOINT A1 -60.23 A2 -55.82 A3 57.06 A4 0.00 A5 -19.56 A6 0.04 JOINT A1 -60.12 A2 -53.17 A3 54.41 A4 0.00 A5 -9.30 A6 0.04 WAIT 2000 GRIPPER OPEN JOINT A1 -60.12 A2 -86.70 A3 87.94 A4 0.00 A5 -10.54 A6 0.04 JOINT A1 -60.12 A2 -90.00 A3 90.00 A4 0.00 A5 90.00 A6 0.03 ADD S = S + 1 / * Arithmetic operations*/ IF S < 5 JUMP BIT /* Conditional operator*/ HOME ALL
EX NO: 2 Load and unload into CNC Milling
Load and unload into CNC Milling LET S = 0 LABEL BIT IF_PORT 1 JUMP LOAD IF_PORT 2 JUMP UNLOAD JUMP MTAB LABEL LOAD PORTMASK 1 PORTMASK 1 SPEED 45 /* Speed 45 mm/sec*/ GRIPPER OPEN JOINT A1 24.63 A2 -76.91 A3 91.94 A4 0.00 A5 -22.09 A6 0.03 /*Joint coordinate position*/ JOINT A1 24.63 A2 -51.07 A3 85.34 A4 -0.00 A5 -38.35 A6 0.02 JOINT A1 24.63 A2 -48.74 A3 83.00 A4 0.00 A5 -38.15 A6 0.01 GRIPPER CLOSE WAIT 2000 /* Idle time 2 Sec*/ JOINT A1 24.63 A2 -49.71 A3 83.97 A4 0.00 A5 -41.15 A6 0.01 JOINT A1 24.63 A2 -76.91 A3 91.94 A4 0.00 A5 -22.09 A6 0.03 JOINT A1 -61.61 A2 -74.37 A3 78.09 A4 0.00 A5 -10.10 A6 0.03 JOINT A1 -61.61 A2 -55.00 A3 54.90 A4 0.00 A5 -17.55 A6 -0.16 JOINT A1 -61.61 A2 -54.09 A3 53.99 A4 0.00 A5 -5.76 A6 -0.15 GRIPPER OPEN WAIT 2000 /* Idle time 2 Sec*/ JOINT A1 -61.61 A2 -77.91 A3 77.81 A4 0.00 A5 -2.77 A6 -0.23 JOINT A1 -61.61 A2 -89.94 A3 90.30 A4 0.00 A5 90.21 A6 -0.17 PORTMASK 0 PORTMASK 0 PORTMASK 0 JOINT A1 25.33 A2 -89.94 A3 90.30 A4 0.00 A5 90.21 A6 -0.17 JUMP MTAB LABEL UNLOAD PORTMASK 1 PORTMASK 1 SPEED 45 /* Speed 45 mm/sec*/ GRIPPER OPEN JOINT A1 -61.68 A2 -89.94 A3 90.30 A4 0.00 A5 90.21 A6 0.00 JOINT A1 -61.68 A2 -77.91 A3 77.81 A4 0.00 A5 -2.77 A6 0.00 JOINT A1 -61.68 A2 -53.37 A3 53.27 A4 0.00 A5 -5.09 A6 -0.10 GRIPPER CLOSE WAIT 200 /* Idle time 2 Sec*/ JOINT A1 -61.78 A2 -55.15 A3 55.05 A4 0.00 A5 -16.20 A6 -0.10 JOINT A1 -61.78 A2 -74.37 A3 78.09 A4 0.00 A5 -10.10 A6 0.00 JOINT A1 25.00 A2 -76.91 A3 91.94 A4 0.00 A5 -22.09 A6 0.00 JOINT A1 25.00 A2 -50.07 A3 84.34 A4 0.00 A5 -38.57 A6 0.01 JOINT A1 25.00 A2 -49.14 A3 83.41 A4 0.00 A5 -35.52 A6 -0.03 GRIPPER OPEN WAIT 2000 /* Idle time 2 Sec*/
JOINT A1 25.00 A2 -58.44 A3 82.96 A4 0.00 A5 -16.25 A6 0.08 /*Joint coordinate position*/ PORTMASK 0 PORTMASK 0 PORTMASK 0 JOINT A1 25.00 A2 -87.28 A3 91.32 A4 0.00 A5 88.65 A6 0.00