Professional Documents
Culture Documents
Cam Practical Theory
Cam Practical Theory
Cam Practical Theory
NC PART PROGRAMMING
•
The program is directly input into the memory of the machine by a tape reader
or
is widely used
transferred from a computer system 'into th_e mac~ine control unit. This' method
for work pieces having simple geometry.
fl
3) Sp_ecification of machines
8) Sequence of operation
+Y +Z
+Y
z
+X
be located at a fixed place an d canno t be Changed · This is known as fixed zero . po;nt.
. Some. other
·
machines, · point
a zero · may be est abli·shed by moving . the slides so that the .cutting tool. is placed.
•in the desired
• pos1t1on
• • . is known as floating zero pomt.
• re 1at·10n to the work pieces · This
in ,
It is a fixed point on a machine specified by the manufacturer . This pbint is the zer~ point
for the coordin·ate system of the machine controller. In turning centre, the machine zero point is
generally at the centre of the spindle nose face . In machining centres, it is either fixed at centre
o(the table or a point along the edge of the traverse range.
This point determines the work piece coordfnate system in relation to the machine zero
poi~t. This point is chosen by the part programmer and input to the machine ~ontroller. The
position of this point may be chosen in such a way that the dimensions of th~ work piece drawing
can be easily converted into coordinate values. r0r turned components, it is placed along the
spindle axis, in line with the right or left end face of the work piece. It is also known as program
zero point.
-t X
Workpi ece Zer
0 Poin t
Workp iece ze ro poi nt
-- M w
--- +2
-2 -- M
-
VI
Fig.2.4 W
ork piece
roof zero point {T) zero point
When machining a work piece
. th ·t
work piece along t he machining Path ' Th·e ool must be controlled in d
p0int, which is known as too/ z · . is requires a point . pre ise relationship with t he
era pomt. in the tool turret be taken as reference
Z MR
The value of machine reference coordinates (XMR, ZMR) is fixed and cannot be changed by
the user. The positing of t he reference point is accurately predetermined in every transverse axis
by the trip dogs and limit switches.
2.5 NC coor dina te dimensioning
· . . . h h. d ·
The following are the two methods of d1mens1oning t e compo nents to be mac me in NC
machine tool.
,
1) Absolute "dime nsion ing: "I n absolute d1men
· · ·
s1on1ng, th e coordinates of a point in a
work piece are always defined with respect to the origin.
·· . .
2) Incre ment al dimensioning: In incremental dimensionin
g, the coordinated of a point
in a work piece are always defined relative to the previous
point.
2.6 CNC prog ram procedure
The following are the steps involved in the development of
a part program and its proving.
1) Process plann ing: The programmer carryqut a
careful study of part drawing to
prepare the process plan. It includes the following:
• Machine tools used
• Fixtures required
• Sequence of operations
• Cutting tools required
• Process parameters
Identif y operations
& too ling r- -- -- -.
ine feeds
, - - - - - i Determ ths' r -- -- -.
speeds & dep
Prepare
process sheet
Develop
par t program
Simulate
tool path
Dry run
Pro~en par t
Inspect the part
cedure
Fig.2.6 CNC program pro
ld be ve rifi ed be for e
: On ce the pa rt pro gram is created, it shou
ing
BJ Pa rt pr og ra m pr ov ent. A tria l run can
ntr oll er for the ma nu facture of the compon
chine co ve me nts tak ing
it can be loaded on the ma to enable visualization of mo
l or wo rk pie ce
ut the too
be carried out with or wi tho the · wo rk piece and the clamp
ing .device.
ee n the too l,
possible betw
place, and any collision
at of a pa rt program
2.7 Structure or fo rm mp on en t consists of a beginnin
g code of %. A
for a
gram given co
The complete pa rt pro rep r~s enting an operation to
be carried
of blo cks ea ch
large- nu mb er
part program consists of ck are us ually given in the follow
in~ ord er.
e words in ea ch blo
·/ out in the machining of the part. Th ·
- . wo rd)
• Sequence nu mb er (N
- word)
• Preparatory word (G
, z- words for lin ea r axes;
• Coordinates (X -, Y-
rot ati on al ax_es)
A- , 8- , c- words for
%; (Program start)
N010 O I I . I
(l
IO IO O t O t I 0 ..
Blocks IO I I o O. 0 0 0
Coordinate function
• The coordinate values are ~pecified using the word address such as X, Y, Z, U, V, W, I,
,J, K, etc. All these word addresses are normally Signed along with decimal point ·depending
upon the resolution available in .the macl:iine tool.
Comments
Parentheses are used t~ add comments in the program to clarify the individual functions
that are used in the program: When the controller encounters the opening' parenthesis, it
ignores all the information till it reaches the closing parenthesis. :
few other G-codes are non-modal, which means that they remain
operational in the block .
which they are programmed. II)
For example, G20 (Inch input) is a modal command, which can b~ cancell
ed by G21 (Metric
input) command.
G-code Function
Turning Center Machining Center
I
GOO Rapid positioning
G- co de -
-
Tu rn in g Ce nt er
Function
Ma ch in in g Ce nt er
) GBS '
Boring cycle
Boring cycle
G86 .
Back boring cycle
G87
ion ing
Absolute mo de of po sit
G90 Box tur nin g cycle
sitioning
,Incn;mental mode of po
. G91
int
Preset pro gra m ze ro po
G92 Th rea d cu ttin g cycle
Feed per mi nu te
G94 Box facing cycle
Feed pe r rev olu tio n
G95
d (m /m in)
G96 Co ns tan t surface spee
G98 Feed pe r mi nu te
M-code functior:a
- M81
M98
'f axis mirror OFF
Subprogram call
M99 Subprogram end
-
[Note: G - codes, M - codes and programming methods Used in this book
are basec1 on FANUC CNc controller system]