Debre Tabor University: Faculty of Technology Department of Electromechanical Engineering
Debre Tabor University: Faculty of Technology Department of Electromechanical Engineering
FACULTY OF TECHNOLOGY
Department of Electromechanical Engineering
Course Name: Machine Tools Design & Numerical control ( 5 )
Course Code: EMEg 5211
By: Amanuel Mihiret
2014 E.C./2022 G.C.
Chapter- 5: NC Manual Part Programming
2. G: preparatory words
Example: G-commands
G00 – Rapid positioning mode
G01 – Linear Interpolation mode
G02 – Circular motion/Interpolation clockwise (CW)
G03 – Circular motion/Interpolation counter clockwise (CCW)
Cont.
G-CODES
G-codes: are preparatory functions that involve actual tool moves (for
example, control of the machine).
These include rapid moves, feed moves, radial feed moves, dwells, and
roughing and profiling cycles.
Most G-codes described here/below are modal, meaning that they remain
active until canceled by another code.
http://greenetool.com/troubleshooting-carbide-cutt
ing-tools/list-of-g-codes
/
Common G-Code & M-Code Table
5.2. Sample Examples on Manual Part Programming
Example:
Solution:
Given:
• 3-holes,
• t = 15mm,
• F = 150 mm/m
• S = 1400 RPM
• Drill Diameter = 10mm
Cont.
Fig.5.3. Example 2
Cont.
Fig.5.4. Example 3
Cont.
i. Facing
Solution:
N0010 G71 G90 G94 EOB;
N0020 T01 S1000 M03 EOB;
Given: N0030 G00 X-7.5 Z0.5 EOB;
• Facing, N0040 G01 X0.00 F200 EOB;
• Diameter = 20 mm, N0050 Z0.00 EOB;
• Let F = 200 mm/m, N0060 X-7.5.00 EOB;
• Let S = 1000 RPM, N0070 Z-15 EOB;
• Length= 35 mm, N0080 X -10.00 Z-20 EOB;
N0900 Z-35.00 EOB;
N0100 G00 X0.00 Z0.00 EOB;
N0110 M02 EOB;
Cont.
Fig.5.6. Example 5
Cont.
Fig.5.7. Example 6
Cont.
Solution:
N001 G21 G90 G92 X0 Y-50.0 Z10.0;
N002 G00 X70 Y30;
N003 G01 G95 Z-15.0 F0.05 S1000 M03;
N004 G01 Z10.0;
N005 G00 Y60.0;
Given: N006 G01 G95 Z-15.0 F0.05;
• F = 0.05 mm/min N007 G01 Z10.0;
• S = 1000 RPM
N008 G00 X120.0 Y30.0;
N009 G01 G95 Z-15.0 F0.05;
N010 G01 Z10.0;
N011 G00 X0 Y-50.0 Z10.0 M05;
N012 M30;
Absolute coordinates (center) & radius in
absolute coordinates
6) Write the CNC part program for the following work-piece shown in Fig.
5.8. for milling.
Given:
• F = 150 mm/min
• S = 1000 RPM
Fig.5.8. Example 7
Cont.
Solution: Method-2
(using Radius of the arcs)