Milling Notes
Milling Notes
1.Rectangular pocket.
2.Circular pocket.
3.Drilling.
4.Reaming.
5.Tapping …All Practical Demonstration
EVOLUTION OF CNC MACHINES
• G80-Cancellation of CANNED
cycle
• G81/G82-Spot drilling/Boring
• G83-Peck drilling
M codes for Milling m/c
M00-Program stop M20-ATC Arm in
M19-Spindle orientation
G codes for Turning m/c M codes for Turning m/c
G00-Rapid traverse M00-Program stop
G30-Return to 2nd Reference point M16-Special tool call(Tool call ignores turret)
G31-Skip function M19-Spindle orientation
G32-Thread cutting M20-Spindle index A
G34-Variable lead thread cutting M21-Spindle index 2A
G36-Automatic tool compensation--X M22-Spindle index 3A
G37-Automatic tool compensation--Z M23-Spindle index 4A
G40-Tool nose radius compensation cancel M25-Quill extend
G41-Tool nose radius left M26-Quill retract
G42-Tool nose radius right M29-Select DNC mode
G50-Work co-ordinate/Max.spindle speed setting M30-End of program and rewind
G65-Macro program call M31-Increment part counter
G66-Macro modal call M37-Door open to stop
G67-Macro modal call cancel M38-Door open
G70-Finishing cycle in turning M39-Door close
G71-Stock removal in turning(Multiple turning M62-Output 1 on
cycle)
G72-Stock removal in facing M63-Output 2 on
G73-Pattern repeating M64-Output 1 off
G74-Peck drilling cycle M65-Output 2 off
G75-Grooving in X axis M98-Sub program call
G76-Thread cutting cycle(Multiple thread cutting) M99-Subprogram repetition(Incremental
G81-Drilling cycle depth)
G90-Absolute dimensioning
G91-Incremental dimensioning
G94-Facing cycle
1. Absolute dimensioning:
In absolute dimensioning all the dimensions/points are measured from
common reference point or zero point. This zero point is called datum point.
2. Incremental dimensioning :
In incremental dimensioning all the points are measured from current tool
position. These dimensions are measured from the previous measuring point.
CNC programming
Two type of programming
1.Offline programming
2.Online programming
In offline programming
Initial information:-
➢ Analyzing of part Drawing
➢ Part number, material, size means maximum length, width, height,
and diameter.
➢ Input condition like casting/forge/bar
➢ Process details like Drilling, Machining, inspection, Heat treatment.
➢ Allowances / Tolerance, Control dimension
Machine :-
➢ Milling, lathe, Grinding etc.
➢ Specification of machine eg:-stroke length, Spindle axis
Part Programming
CNC programming include:-
➢ Alphabets[A-Z]
➢ Number[0-9]
➢ Symbols[/;()]
G-codes:-(Preparatory function)
Generating profile creating those called G-codes
M-codes:-Miscellaneous function
Vary from machine to machine depending on the
function available on it and manufacturing of the
machine decides them
Program Structure
❖ Start
❖ Tool change
❖ Spindle Rotation
❖ Axis Moment
❖ Metal cutting
❖ Program End
Terms in programming
1.Program Number:-The program number functions as addressing
symbol for accessing a program. The program number is expressed by
putting the numericals of four digits after the alphabet “O”, numericals
from 0001 to 9999 can be used.
• Example: O2244;
• The program number can be input with numericals of smaller than
four digits.
• Example: O10; = O0010;
• If the number to be input already in the memory that program can not
be input, input with the other number.
Terms in programming
2. SEQUENCE NUMBER(N)
The sequence number is used to
• search
• Callout the position is being executed.
• The position you want to edit in the program easily.
Example : O1001
Generally sequence numbers are inserted in to important
Sequence Number places of the program
Example :
N01 G00 X50 Y50
•Beginning of each tool
Sequence Number •If the program memory is over the memory capacity :
N02 G1 Z-50 F20 Eliminate the sequence numbers to save memory capacity.
Terms in programming
3. Part Program
• Part program is used to specify the machining process for a single tool.
• That is a program for each process ( First process, Second process etc.) required.
• Number of a part program corresponding to the required number of tools is
included.
Example : O1001;
N01 G00 X50 Y50 ;
Part program
M01;
N02
G54 G00 X60 Y60 ;
Part program
M01;
M30;
Terms in programming
4. Address
The address is expressed by the alphabet.
Example :
G00 X100 Y100
Address
5. Data
Numerals (Including the sign and the decimal point). Succeeding to the address is
called data.
G00 X100 Y100
Data
Terms in programming
6. Word
• Word is minimum unit for specifying the functions.
• It consists of the numerical values (data) including the address and sign.
Example :
G00 X100 Y100
Word
7. Block
▪ Block Consists of words.
▪ Block is minimum unit necessary to operate a In machine.
▪ program each line corresponds to one block.
Block
Drawing to Machined part steps
Cutting Speed for Milling, Drilling, Turning,
Boring.
Work Tool Brazed
Coated Carbide
Inserts
material HSS Carbide Rough Medium Fine
CAST
20 - 40 75 - 100 100 - 150 135 - 225 175 - 270 215 - 275
IRON
BRASS & 35 - 75 100 - 250 125 - 200 150 - 300 250 - 600 500 - 2500
Aluminum
FANUC CONTROLL INTERFACING
FANUC:-Fujitsu Automatic Numerical Control-Oi Mate-TD
Power Switches ON:-Power to NC is turned on when the(POWER
ON) Switch pressed
Power Switches OFF:-Power to NC is turned off when
the(POWER FF) Switch pressed
❖ EMERGENCY STOP
Pressing the (EMERGENCY STOP) switch turn off the power supply
to the NC servo system and stops the machine. The EMERGENCY
STOP switch should be pressed During the following situations.
❑ If an Emergency state arises during operation
» OR
❑ To turn off the power supply at the end of an operation.
By turning the (EMERGENCY STOP) switch clockwise, the button is
released from the locked state.
FANUC CONTROLL INTERFACING
❖ EDIT KEY SWITCH
This key switch is used to protect the stored program from being inadvertently
changed.
❑ PROGRAM EDIT ON
Program can be stored in the memory and a new program can be edited. This
key cannot be removed when the switch is set to this position.
❑ PROGRAM EDIT OFF
Program stored in the memory cannot be edited by the User. The key can be
removed when switch is set to this position.
❖ AUTOMATIC OPERATION SWITCHES
❑ CYCLE START
The switch is used to slot an automatic operation Auto or MDI mode. The
indicator above the switch is light during an automatic operation.
❑ CYCLE STOP (FEED HOLD)
This switch is used to temporarily stop the axis movement during an
automation operation. The indicator above the switch is light, while the axis
movement is stopped. Press (CYCLE START) to restart the interrupted
automatic operation.
FANUC CONTROLL INTERFACING
❖ COOLANT SWITCHES
❑ COOLANT ON
When this switch is pressed, the coolant supplied through nozzle. Also when
the coolant ON M code is read in Auto mode the coolant is automatically
supplied.
❑ COOLANT OFF
When the COOLANT OFF switch is pressed the coolant being supplied is
stopped.
When M09 code is executed during an automatic operation coolant is stopped.
❖ SPINDLE SWITCHES
❑ CW
The spindle rotates in the clockwise direction (Viewing a work piece
from the direction of the spindle) when this switch is pressed.
❑ CCW
The spindle rotates in the counter clockwise direction (Viewing the work piece
from the direction of the spindle) when this switch is pressed.
❑ STOP
The spindle stops when the STOP switch is pressed.
FANUC CONTROLL INTERFACING
SPINDLE LOAD METER
The spindle load meter indicates (as a percentage) the load applied
to the spindle motor.
❖ SPINDLE SPEED OVERRIDE %
The spindle speed is adjusted in the range of 50% to 120% of the
speed displayed in the program MDI (Manual Data Input) Screen.
Override setting is possible in increment of 10%.
❖ FEED OVERRIDE%
The feed(Linear Motion) is adjusted in the range of 0% to 150% of
the feed displayed in the program MDI (Manual Data Input) Screen.
Override setting is possible in increment of 10,%.
❖ RAPID OVERRIDE%
The Rapid feed(Air Motion) is adjusted in the range of 0% to 100% of
the feed displayed in the program MDI (Manual Data Input) Screen.
Override setting is possible in increment of 25,50,100,%.
FANUC CONTROLL INTERFACING
❖ MODE SELECTION
This switch selects the machine operation mode. They are classified
into three groups
1) Program Edit:-
a. Edit Mode(EDT)
2) Automatic Operation:-
a. Single Auto Mode
b. Auto Cont. Mode
c. MDI Mode(Manual Data Input)
3) Manual Operation:-
a) Handle mode (MPG) MANUAL PULSE GENAREATOR
b) Jog mode (Jump over Geometry)
c) Zero Return mode (ZRN)
FANUC CONTROLL INTERFACING
❖ EDIT
In EDIT mode following operations are possible:
➢ Inputting and storing the programs to the NC memory
➢Changing and deleting the program to the NC memory
➢Outputting a program stored in the NC memory using the
search functions ( Program number and search, sequence
number search)
❖ MDI
➢ A program created in the MDI mode will be cleared after it has been
executed, when the RESET key is pressed or when the power is turned
off.
➢ For this reason MDI mode is often used to rotate the spindle or to carry
out tool change operation.
➢ Setting parameter and other data.
FANUC CONTROLL INTERFACING
❖ HANDLE
➢ Select the axis to be moved through the axis selector switch
➢ Turn the pulse handle in the direction (+ or -), the selected axis will
move
❖ MANUAL PULSE GENERATOR
➢ The manual pulse generator is used to move an axis in the handle mode.
➢ The axis movement amount per pulse is selected using the MPG scale
selection switch by placing it in either “X1” or “X10” or “X100”
❖ JOG
➢ An axis is moved while the axis direction switch is held down after selecting the
Axis to be moved through the Axis selector switch. The selected axis is moved
with the feed rate set by the Feed rate override switch.
FANUC CONTROLL INTERFACING
❖ Single Auto
When the single block (SBK) mode is selected, the program is executed
block by block for every press of the (CYCLE START ) switch
❖ ZERO RETURN
With the selector switch in the Zero return position. The axes can be
returned to home position and the indicator for the Axes zero return
light will ON.
❖ OPTIONAL STOP
When the Optional stop (OSP) switch is in the ON position, Optional
stop function is called. The indicator above the switch will light when M01
command is executed and the machine operation is stopped. To continue
with the operation press the (CYCLE START) switch. Placing the switch
the OFF position cancels the optional stop function and the indicator goes
OFF.
FANUC CONTROLL INTERFACING
❖ BLOCK DELETE
When the Block Delete ( BDT) switch is in the ON position, the indicator
above the switch is light will on and the block delete function is called and
the commands in the program is ignored with the slash code (/) . placing the
switch in the OFF position cancels the block delete function and the
indicator goes OFF
❖ DRY RUN
With DRY RUN function enabled, the cutting feed rate specified in the
program is ignored and all the axis feed commands are executed. At a feed
rate set by the override switch.
❖ MACHINE LOCK
When this function is ON, the axes movement commands are all locked
while the operation data displayed on the screen is updated according to
the execution on the program.