11 Cad Cam CNC Programming MVV
11 Cad Cam CNC Programming MVV
Positive X direction
is when the tool moves
away from the work
part in X axis.
Dimensioning
There are two types of Dimensioning
Absolute Incremental
Dimensioning Dimensioning
Motivation and uses
- Easier to program;
- Easy storage of existing programs;
- Easy to change a program
- Avoids human errors
- safer to operate
- Complex geometry is produced as cheaply as simple
ones
- Usually generates closer tolerances than manual
machines
Basic CNC Principles
All computer controlled machines are able to accurately and repeatedly
control motion in various directions. Each of these directions of motion is
called an axis. Depending on the machine type there are commonly two
to five axes.
Additionally, a CNC axis may be either a linear axis in which movement is
in a straight line, or a rotary axis with motion following a circular path.
CNC Programming Basics
CNC instructions are called part program commands.
Each letter address relates to a specific machine function. “G” and “M” letter
addresses are two of the most common. A “G” letter specifies certain
machine preparations such as inch or metric modes, or absolutes versus
incremental modes.
A “M” letter specifies miscellaneous machine functions and work like on/off
switches for coolant flow, tool changing, or spindle rotation. Other letter
addresses are used to direct a wide variety of other machine commands.
CNC programming
Important things to know:
• Coordinate System
• Feed and Speed Codes: F and S- Specify feed and spindle speed
F 25
Raw Material
70
F 22.5
F 17.5
Finished Part
20
30
NC Programming Example
Cylindrical Part
O0013
N0005 G53
N0010 T0303
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
N0070 G57 G00 X22.50 Z2.0 S500
N0080 G01 Z-30.0 F100
N0090 G00 X23.0 Z2.0 S500
N0100 G84 X17.5 Z-20.0 D0=200 D2=200 D3=650
N0110 G00 Z2.0
N0120 X50.0 Z50.0
N0130 M30
APT Program Interpretation
O0013
Program identification number
APT Program Interpretation
O0013
N0005 G53
To cancel any previous working zero point
APT Program Interpretation
O0013
N0005 G53
N0010 T0303
(0,0) +ve z
APT Program Interpretation
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
G57 PS0
G00 Rapid movement (no cutting)
X22.50 X location (as a diameter; 11.25 form zero)
Z2.0 Z location
S500 Spindle speed is 500 rpm
APT Program Interpretation
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
N0070 G57 G00 X25.00 Z2.0 S500 M04
N0080 G01 Z-30.0 F100