Study Ex.- Introduction to CNC Programming
Study Ex.- Introduction to CNC Programming
to CNC Progparpming
OCm TY hea o 13
1.0 INTRODUCTION
CNC machines are those machines, which operate by a special way of
instructions in the form of combinations of numbers and codes.
2
1.I TYPES OF CNC
MEMORY
MASS
MEMORY
STORAGE
Date
COMPUTER CONTROL SERVO MACHINE
UNIT DRIVE TOOL
Input
Programming reliability.
Less drudgery in tape preparation.
Increased efficiency.
memory, and the second needs the data from that address with all such
operations synchronized by control signals provided by the common data
memory.
The CNC control may be very simple with only storage capacity of
20 or 40 meters of tape information or may have al features like the
following:
1.2.1 MEMORY STORAGE
Ability to run the tape and put it into memory, from the computer
instead of from the tape. Storage capacity varies from 15 meters to 2i0
meters to tape length or I mb to 2 mb. The programme can be stored more
than once. After loading the programme, tlhis eliminates any further use of
the tape, results in saving on maintenance of tape reader, information comes
much faster from the computer. This also results in lot of time saving
1.2.2 EDIT
Ability to edit or design the tape right at the machine. This is one of
expensive addition but results in greatest saving. Once the programme is in
the CNC, changes can be made in the computer's memory without referring
to tape. These changes may be to correct location, error in X, Y and Z axis
often in green color letters or words. With CRT there is a keyboard, usually
1.2.5 DIAGNOSTICs
This refers to the trouble shooting when CNC goes out of order. It
takes more time to locate the trouble and a very shot time to fix it up. A
special diagnostic tape checks many different parts or on a CRT or on
separate oscilloscope indicates when the trouble is found. Even by a special
telephone unit the CNC can be connected directly to the manufacturer's
service department, who will carry out a variety of tests and will be able to
locate the faculty and rectify it. Other facilities includes inch metric
conversion/ tool offsets, mm / rpm, mm/ min feed rate speed override and
ISO/EIA coding axis inversions,
canned cycles
etc.
1.3 WORK
OFF SET
The distance between the machine zero and the
job zero. Job
zero can be taken from one of the
job on from the center of the job may
be continuous.
ZERO OFFSE T
the tool.
TOCL
CFFSE
3.0 PART PROGRAMMING
BLOCK
BLOCK
BLOCK 00L MOVEMENT
BLOCK SEQUENCE
BLOCK
END OF BLOCK
TOOL FUNCTION
SPINDLE FUNCTION
MISC. FUNCTION
DIMENTION WORD
PREPARATORY FUN.
SEQUENCE NO.
11
there are two axes "X" and "Z" and they can be controlled simultaneously or
separately. All CNC milling machine have 3 axes and they ban be controlled
In machine center or in other 4 axes machine, 3 axes can be
simultaneously.
controlled simultaneously and 4" axis can be controlled separately.
Spindle axis is always called "2" axis. Traverse axis is called "X"
and "Y". All the "X", "y" AND "z" axes are mutually perpendicular.
Y
12
3.1.1 BLOCK
X 90.5
ADDRESs NUMBERS
WORD
Programming Structure
The NC program is a sequence of program blocks which are
stored in the Control. With machining of the work pieces these blocks will
be read and checked by the control in the programmed order. The
Program Number
Blocks
Words
Addresses
%1000
G Path Function
M Miscellaneous Function
B Radius
Tool Offset
Feed
I, K Circular Parameters, Thread Pitch
P
No. of Passes, Scale Factor
R |Parameter for Cycles
|Spindle Speed, Cutting Speed
Tool Call
X.7 |Position Data
LF Block End
14
COMMANDS FORMAT
G00 Positioning (Rapid Traverse) -N... GO0 X... Z...
GO1 Linear Interpolation N..GO1 X... Z. FB... F..
G02 Circular Interpolation Clockwise N... G02 X... Z...
N... G02 X... Z... I... K... F...
GO3 X... Z.. B... F..
GO3 Circular Interpolation Counter N...
N... GO3 X... Z... I... K... F.
Clockwise
G04 Dwell -N.. G04 X...
G33 Thread Cutting N... G33 X... Z... /K..
I- Thread Pitch X direction
(Longitudinal)
K-Thread Pitch in Z direction
(Face)
G40 Cancel Cutter Radius -N... G40
Compensation
G41 Cutter Radius Compensation left -N... G41
N... G42
G42 Cutter Radius Compensation
Right N... G50
G50 Cancel Scale Modification
G51 Scale Modification -N. GS1 X... Z. P...
G53 Cancel Zero Offset
G54-G57 Zero Offset 1-4
GS8&G59 Programmable offset
G70 Measuringin Inches -N... G70
G71 | Measuringin Millimeter N.. G71
- N... G90
Speci G90 Absolute Programming
-N... G391
G91 Incremental Programming
G92Spindle Speed Limit N.. G92 S...
G94 Feed Per Minute
G95 Feed per Revolution
-N... G96 S...
G96 Constant Cutting Speed
G97 Constant Spindle Speed -N. G97 S...
Ca Ikefwn tu zu hn Pent
15
COMMANDS
MO00 |ProgrammedStop Unconditional
M01 Programmed Stop Conditional
M02 -Main Programme End
M03 Main Spindle ON Clockwise
M04 Main Spindle ON Counterclockwise
M05 Main Spindle OFF
M08 Coolant ON
M09 Coolant OFF
M17 Subroutine End
M30 - | Main Programme End
DESCRIPTION OF CYCLES
of program runs.
.Programmingthe Parameters
R26 Run-in
R27 Run-out
DESCRIPTION OF CYCLE
Parameters
FORMAT
L82 P... LF
N... R02-... R03=... R04=... R10=...
in the Control. With machining of the work pieces these blocks will be read
and checked by the control in the pregrammed order. The corresponding
control signal will be send to machine.
NC Program consists of
Program Number
Blocks
Words
Addresses
19
% PROGRAM START
PROGRAM SECTION
N0200 M30 LF
Addresses
CODES DESCRIPTION
M00 |Programmed Stop Unconditional
MO1 Programmed Stop ConditionalL
M02 Program End
M03 Main Spindle "On" Clockwise
M04 Main Spindle "On" Counterclockwise
MO5 Main Spindle "Off"
M06 Tool Change
M08 Coolant On
M09 Coolant Off
M19 Spindle Oriented M30 Main Program End
CANNED CYCLES
N.. X..
N... Y.
N... Z...
N... X.. Y...
N... X.. Y... Z...