Mannual Part Programming,.
Mannual Part Programming,.
Word
A program word is a combination of meaningful characters creating a single instruction which will be decoded by the
control system.
It indicate axes position, preparatory commands, speed command, feed command, miscellaneous functions etc.
Each word normally begins with a capital letter followed by a number representing a program code or actual value.
Block
A block is a line of the program and is used as a multiple instruction. It contains all the data required for transferring
the cutting tool from one point to the next one.
A block begins with a line number (optional in some systems) and ends with an end of block (EOB) symbol like “ ; ”.
A small segment of a CNC program is given below:
Block Format
The block format specify the way in which the programming instructions are coded. Currently in wide use is the word address format
in this format each word starts with a letter.
In manual program preparation, the programmer has to determine the machining parameters and the optimal sequence of operations to
be performed.
Based on this sequence, the tool path is determined and a program is written. The arrangement of the information within a block is
referred to as block format.
A typical block form is:
G01 X43.56 Z –39.52 F0.2 M08;
The letter and the number which follows it as a whole
is referred to as a ‘word’. The first letter of the word is
the ‘word address’.
Choose tools.
Determine machining parameters such as feed rate , depth of cut, spindle speed.
Co-ordinate System
Machine Types
It is convenient through not necessary, in the context of the standard, to classify
the CNC machines in the following four groups:
Group I: Machine tools with rotating tools are classified as group I (i.e., Spindle providing
the cutting power)
Machine having vertical spindle are classified as I(a) and that having horizontal spindle are
categorised as II(b).
Group II: All Machine tools with rotating workpieces (i.e., spindle generating surface of
revolution) like lathes, grinding machines are classified as group II machines.
Group III: Machine tools with non-rotating workpieces and non-rotating tools (i.e., no
spindles) like shaper, planer are classified as group III machines.
Group IV: Machines other than machine tools, like CNC drawing machine are classified
as belonging to group IV.
GROUP IV
REFERENCE POINTS FOR MANUAL PROGRAMMING
(i) The Machine Datum - M:
The machine datum is the origin to the co-ordinate system.
For lathes, it is on the mounting flange of the main spindle and the tuning axis.
Cannot be changed by the user - fixed by the manufacturer and programmed
into the computer memory.
The point generally has the co-ordinates X = 0, Z = 0.
Machine Zero of a vertical machining centre
(iii) Workpiece Zero-Point - W:
The workpiece reference point is commonly known as program zero or workpiece zero. In
principle, the workpiece zero can be selected anywhere. Three factors influencing the
choice of workpiece zero are:
● Accuracy of machining
● Convenience of setup and operation
● Safety
In the case of prismatic components machined in a vertical machining centre, the centre
point of the top surface can be taken as the workpiece reference point.
(iv) Tool Post Reference Point–T:
In milling and related operation the reference point of the tool is usually the
intersection of the tool center line and the lowest positioned cutting tip.
In turning and boring, the most common tool reference point is an imaginary point
on the tool insert.
For tools like drills, the reference point is the extreme tip of the tool, as measured
along the Z-axis.
ZERO-SUPPRESSION
• All CNC machines are equipped with decimal point input.
• In order to simplify program input the leading zeros can be omitted. e.g., 12.145 instead of 0012.145.
• Trailing zeros after decimal point also need not be entered. e.g., 12 instead of 12.000, 10.4 instead of
10.400.
Instructions which represent movement of the tool in a specified path which may be along a
straight line or along a part of a circle or a specified curve.
Three common interpolation functions are:
(i) Linear interpolation
Move the machine slides in a straight line either in the rapid traverse or feed mode. Linear
interpolation can be along a single axis or along two or more axes simultaneously.
(ii) Circular interpolation
The programming of the slides of a machine to result in a path which is part of an arc of a
circle is called circular interpolation.
(iii) Helical interpolation
Helical interpolation is an operation where a circular interpolation uses three axes
simultaneously.
It is a simultaneous two axes circular motion in the working plane with a linear motion along
the remaining axis.
A typical example of application of helical interpolation is thread milling.
COMMON MISTAKES AND TROUBLESHOOTING IN CNC
PROGRAMMING
A. Syntax Errors (Incorrect Code Format)
•Problem: Incorrect or missing G/M codes, typos in coordinates, or improper program structure.
•Example:
•Incorrect: G01X100Y50F200 (missing spaces)
•Correct: G01 X100 Y50 F200
•Solution:
•Follow the proper format and syntax.
•Use spaces or proper delimiters between codes.
•Refer to the CNC machine's programming manual.