Cnc Milling
Cnc Milling
www.brightcnc.com
1. INTRODUCTION -------------- 6
Introduction to CNC
Applications
Advantages
Job opportunities’ Related to CNC
2. CNC MILLING AXIS NOMENCLATURE --------------- 7
APPLICATIONS
The applications of CNC include both for machine tool as well as non-
machine tool areas. In the machine tool category, CNC widely used for lathe,
Drill press ,Milling machine, Grinding unit, Laser, Sheet metal press working
machine Tube bending machine etc. Highly automated machine tools such as
Turning center and Machining center which change the cutting tools
automatically under CNC control have been developed .In the non-machine
tool category ,CNC applications include Welding machines ( arc and
resistance ), Coordinate measuring machine ,Electronic assembly ,Tape
laying and Filament winding machines for composites etc.
CNC ADVANTAGES
More Accuracy
Less Rejection
Mass Production
Repeatability
Time Saving
Good Surface finish
Complicated jobs can be done
Customer satisfaction
JOB OPPURTUNITIES RELATED TO CNC
CNC Operator
CNC Setter
CNC Programmer
CANNED CYCLES:
Fixed sequence of operations, which are permanently stored in the
control system. The fixed cycles can be called and used by a single
command in the part program.
1. Drilling
2. Boring
3. Tapping
4. Pocketing
5. Slotting
SPECIAL CYCLES (TRANSFORMATIONCYCLES):
This cycles are used for operations transformation like
1. Mirroring
2. Scaling
3. Rotation
MACHINE LANGUAGES:
Machine language is nothing but control system, it is used to communicate
the machine
1.FANUC
2.SINUMERIC
3.HEIDENHEIN
4.OKUMA
LIST OF G-CODES
G03CCW CIRCULAR
INTERPOLATION MOTION
The command below will move a tool circular arc
Format: G03 X_Y_Z_R_F_; (Or)
G03 X_Y_Z_I_J_F_;
I - X-axis Distance from start point to arc
center (If R is not used)
The G17 code is used to select the XY plane for circular Motion. In this plane,
circular motion is defined as clockwise for the operator looking down onto
the XY table from above
The G18 code is used for doing circular motion in the XZ plane.In these
diagrams shown here, you might think theG02 and G03 arrows are incorrect.
But they are correct in showing the G18 plane. You need to look at the
circular direction as if you're standing at the back of the machine looking
toward the spindle, for the G02 clockwise and G03counterclockwise
directions in the G18 XZ circular plane.
The G19 code is used for doing circular motion in the YZplane.In the G19
plane, you need to look at the circulardirection as if you're standing on the
right side of machine where the machine control is, looking toward the other
End, for the G02 clockwise and G03 counterclockwise directionsin the G19
YZ circular plane.
The unit systems of the following items are changed depending on whether
G20 or G21 is set.
CUTTER COMPENSATION
Cutter compensation is used to offset the center of the cutter, and shift it
the distance of the radius, to the specified side of the programmed path.
Complex part geometries having angled lines, lines tangent to arcs, and
lines intersecting arcs involve substantial trigonometric computations to
determine the center of the cutter. Cutter compensation involves
programming the part geometry directly instead of the tool center. The
cutter compensation commands are Cutter Comp.
G40 will cancel the G41 or G42 cutter compensation commands. A tool using
cutter compensation will change from a compensated position to an
uncompensated position. Programming in D00 will also cancel cutter
compensation. Be sure to cancel cutter compensation, when you're done
with each milling cut series that's using compensation.
G41 will select cutter compensation left; that is the tool is moved to the left
of the programmed path to compensate for the radius of the tool. A Dnn
must also be programmed to select the correct tool size from the
DIAMETER/RADIUS offset display register.
FORMAT:
G41 X_ Y_D_;
G42 will select cutter compensation right; that is the tool is moved to the
right of the programmed path to compensate for the size of the tool. A Dnn
must also be programmed to select the correct tool size from the
DIAMETER/RADIUS offset display register.
FORMAT:
G42 X_ Y_D_;
This code selects tool length compensation in a positive direction. That is;
the tool length offsets are added to the commanded axis positions. An Hnn
must be programmed to select the correct offset register from the offset
display for that tool being used. During the setup process, each tool point
was touched-off to the part zero surface. From this position a TOOL LENGTH
DISTANCE offset was recorded for that tool with the TOOLOFSET MESUR
key. This TOOL LENGTH is referred to as the "Z" axis origin move to the
Part zero surface.
This G code cancels tool length compensation. Putting in a H00 will also
cancel tool length compensation. M30, and RESET will also cancel tool length
comp.
These G-codes will select one of the six work coordinate offsets that are
entered in the Work Zero Offset display page. All subsequent references to
axes’ positions will be recognized in the new coordinate system.
WORK COORDINATES
No Data No Data
G54 X -450.0 G57 X
Y -350.0 Y
Z – 250.0 Z
G55 X G58 X
Y Y
Z Z
G56 X G59 X
Y Y
Z Z
Example :( G90)
P1 G00 X0 YO;
P2 X10 Y20;
P3 X30 Y20;
When G91 is active, all movement command values are distance moved (including the
+/- sign) from last known
programmed position.
Example:(G91)
P1 X10 Y20;
P2 X20 Y0;
For example:
(G20) F6 = 6 in/min.
(G21) F150 = 150 mm/min.
A G99 code, when used within a canned cycle, will return the drill or boring
bar back to the R point level after machining a hole.
When the tool reaches the bottom of a hole, the tool may be returned to
point R or to the initial level .These operations are specified with G98 and
G99 .The following illustrates how the tool moves when G98 or G99 is
specified .Generally, G99 is used for the first drilling operation and G98 is
used for the last drilling operation.
The initial levels does not change when when drilling is performed in the
G99 mode
MISCELLANEOUS FUNCTION
M00 Program Stop
M01 Optional Stop
M02 Program End
M03 Spindle Clockwise
M04 Spindle Counter Clock wise
M05 Spindle Stop
M06 Tool Change
M07,M08 Coolant on
M09 Coolant off
M19 Spindle Orientation
M30 Program End
M98 Sub Program Call
M99 Sub Program Exit
This code is used for a Program Stop command on the machine. It stops the
spindle, turns off coolant and stops look-a-head processing. Pressing CYCLE
START again will continue the program on the next block of the program.
This code is used for an Optional Program Stop command. Pressing the OPT
STOP key on the control panel signals the machineto perform a stop
command when the control reads an M01 command. It will then perform like
an M00.
This code is inserted at end of the program, When encountered the cycle will
end .To produce another, the system must be reset.
Tool change command along with a tool number will execute a tool change
for that tool. This command will automatically stop the spindle, Z-axis will
move up to the machine zero position and the selected tool will be put in
spindle. The coolant pump will turn off right before executing the tool
change.
NOTE: Only one "M" code can be used per line. And the M-codes will be the
last command to be executed in a line, regardless of where it's located in
that line.
Alphabet Meaning/Used in
A Fourth Axis Rotary motion
B Fifth Axis Rotary motion
C Auxiliary external rotary axis
D Tool radius offset no
F Feed function
G Preparatory function
H Tool length offset no
I Incremental dimension in X-Axis during circular
interpolation
J Incremental dimension in Y-Axis during circular
interpolation
K Incremental dimension in Z-Axis during circular
interpolation
M Miscellaneous function
N Number of block
O Program Number
P Designation of subprogram number with M98
Unconditional branching to block number with M99
Dwell time with G04 in milli seconds
Refereeing the variable name to which macro results are
loaded
Q Depth of cut in G73 & G83
Q=Shift amount in G76&G87 value to be used in macros
R Radius of arc in G02,G03
Retraction amount in fixed cycle value to use in macros
S Speed function
T Tool function
X Specifies the position in the direction of X-Axis
Dwell time with G04
Y Specifies the position in the direction of Y-axis
Z Specifies the position in the direction of Z-axis
SPEED FUNCTION:
Four digit number (max) flowing S specifies the speed value .The spindle
speed specified is in RPM. Spindle speed should always be given along with
the direction of rotation of the tool.
Example:
M03 S1000 = 1000 RPM CW ROTATION
M04 S1000 = 2000 RPM CCW ROTATION
FEED FUNCTION:
Feed in normally given in mm/min
Example:
F100----feed of 100 mm/min
Feed range 100-500 mm/min
Feed is specified with G01, G02, G03 and fixed cycles
Once feed value is specified, it will remain until a new one is specified
TOOL FUNCTION:
When tool number is commanded with the numerical in two digits following
the letter ‘’ T’’ the tool magazine rotates to bring the specified tool to the
change position
Example:
T01 M06
NON MODAL
Non Modal codes effect only the lines on which they occur. For Example
G4 (Dwell) is Non Modal.
Non modal means it executes only once .See for Example codes
G04, G09, G28,
BLOCK SKIP
When a forward slash mark (/) is followed by a block number (at the
beginning of a block) and the block skip switch on the machine operator
panel is set to "on", the block will be ignored in memory operation. When
the block switch is set to "off", then the blocks indicated by the "/" marks
will be considered as valid.
For example,
N30 X40;
/ N40 Y50 ;
/ N50 X70;
/ N60 Y90;
N70.....
If the block skip switch is set to "on" in the above program example, then blocks
indicated by the "/" mark are skipped
Z: Hole depth
Q: Depth of peck
F: Feed rate
If Q is used, it specifies the amount each peck well be in a G73 canned cycle.
O001;
N1; (High speed peck drilling)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01; (8.5 mm Drill)
G0 G90 G54 X20.0 Y25.0 M03 S1000;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G73 Z-42.0 R2.0 Q10.0 F250.0
X75.0;
Y60.0;
X20.0;
G0 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
Z: Hole depth
F: Feed rate
O002;
N1; (Left hand Tap)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01; (M10 Tap)
G0 G90 G54 X20.0 Y25.0 M04 S300;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G74 Z-14.0 R2.0 P1000 F450.0;
X75.0;
Y60.0;
X20.0;
G0 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
Z: Hole depth
R: Initial safe position
O003;
N1; (Finish Boring)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01;
G0 G90 G54 X20.0 Y25.0 M03 S1000;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G76 Z-14.0 R2.0 Q1.0 F250.0;
X75.0;
Y60.0;
X20.0;
G00 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
Z: Hole depth
F: Feed rate
O004;
N1; (Spot Drilling)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01; ( 5mm Drill )
G0 G90 G54 X20.0 Y25.0 M03 S1000;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G81 Z-22.0 R2.0 F250.0
X75.0;
Y60.0;
X20.0;
G00 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
The tool can also be moved to the position of the first hole before calling the
cycle, and the X,Y coordinates omitted from the cycle block.
Z: Hole depth
F: Feed rate
O005;
N1; (Counter Boring)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01; (9 mm flat Drill)
G0 G90 G54 X20.0 Y25.0 M03 S1000;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G82 Z-4.0 R2.0 P1500 F250.0;
X75.0;
Y60.0;
X20.0;
G00 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
Z: Hole depth
F: Feed rate
Here drilling is performed in pecking increments till the final depth is reached
R is the safety distance from the last depth drilled with in the cycle and
safety distance from the zero level for the next hole.
O006;
N1; (Peck Drilling)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01; (10.25mm Drill)
G0 G90 G54 X20.0 Y25.0 M03 S1000;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G83 Z-42.0 R2.0 Q10.0 F250.0;
X75.0;
Y60.0;
X20.0;
G00 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
Z: Hole depth
F: Feed rate
O007;
N1; (Right Hand Tap)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01; (M12 Tap)
G0 G90 G54 X20.0 Y25.0 M03 S250;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G84 Z-14.0 R2.0 P1000 F435.0;
X75.0;
Y60.0;
X20.0;
G00 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
Z: Hole Depth
F: Feed rate
After the final depth is reached the tool returns to the R point at the same
feed rate programmed.
This cycle is ideal for reamed holes where rapid out will create scratches on
the finished holes.
O008;
N1; (Reaming)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01; (10 mm Reamer)
G0 G90 G54 X20.0 Y25.0 M03 S1000;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G85 Z-14.0 R2.0 F250.0;
X75.0;
Y60.0;
X20.0;
G00 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
Z: Hole Depth
F: Feed rate
This cycle bores a hole after final depth is reached the tool returns to the R
point at rapid traverse.
O009;
N1; (Rough Boring)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01;
G0 G90 G54 X20.0 Y25.0 M03 S1000;
G43 H01 Z100 M08;
G00 Z5.0;
G99 G86 Z-14.0 R2.0 Q1.0 F250.0;
X75.0;
Y60.0;
X20.0;
G00 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
Z: Hole Depth
Q: Lateral Shift
F: Feed rate
This cycle is same as a boring cycle except that the boring is done from the
back side of the work piece.
The tool retract is done by a shift amount Q
O010;
N1; (Back Boring)
G17 G21 G40 G49 G80;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0 Y0.0;
M06 T01;
G0 G90 G54 X20.0 Y25.0 M03 S1000;
G43 H01 Z100 M08;
G00 Z5.0;
G98 G87 Z-10.0 R-14.0 Q2.0 P1000 F250.0;
X75.0;
Y60.0;
X20.0;
G00 G80 Z100;
M05;
M09;
G0 G91 G28 Z0.0;
G0 G91 G28 X0.0; Y0.0;
M30;
INSERT
1. Move the cursor to the required area
2. Write the required character
3. Press insert key
ALTER
1. Move the cursor to the required alteration character
2. Write the correct character
3. Press Alter key
DELETE
1. Move the cursor to the required deleted character
2. Press delete key
DELETING METHOD
1. Single Character deleting`
MEMORY OR AUTO
1. Check the cursor in required block or not
2. If the cursor is not incorrect position select edit mode and move the cursor to
the required block
3. Select memory or auto mode and check the rapid traverse and feed traverse
controller
4. Press cycle start key for run the program
HANDLE MODE
1. Select handle mode by using mode selector
2. Select the axis by using Axis selector
3. Select the movement value by using hand wheel controller
4. Rotate the hand wheel to the required direction (+) or (-)
JOG
1. Select the Jog mode by using mode selector
2. Select any axis by using axis selector
3. Select feed rate by using feed controller
DRY RUN
Remove the work piece, check only movement of the tool. Select the tool
movement rate using the dial on the operator’s panel.
MACHINE LOCK
When automatic running is placed in to the auxiliary function mode during the
machine lock mode, all auxiliary functions (spindle rotation, tool replacement,
coolant on/offset) are disabled.
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.
No Name Explanation
1 Reset Press this key to reset the CNC to cancel all alarm
RESET etc…
2 Help Key Press this Button to use the help function when
uncertain about the operation of an MDI key
HELP (Help function).
4 Address and Numeric Press these keys to input alphabetic, numeric, and
Keys other characters.
N
Q
5 Shift key Some keys have two characters on their key top.
Pressing the <shift>key switches the characters.
Special character E is displayed on the screen when
SHIFT a character indicated at the bottom right corner on
the key top can be entered.
8 Program edit keys Press these keys when editing the program.
ALTER
ALTER : Alteration
INSERT INSERT : Insertion
DELETE : Delete
DELETE
9 Function keys Press these keys to switch display screens for each
function note the diagram for details of the function
POS PROG keys.
11 Page change keys Two kinds of page change keys are described below
SYSTEM MESSAGE GRAPH 2. Press one of the chapter selection soft keys. The
screen for the selected chapter appears. If one soft key
for a target chapter is not displayed , press the
continuous menu key ( next –menu key )
In some cases, additional chapters can be selected with
in a chapter.