Académique Documents
Professionnel Documents
Culture Documents
3. 2L/3L Controllers.
Z-axis: Always aligned with the spindle that imparts cutting power.
This spindle might rotate the work-piece as in a lathe, it might rotate a tool
as in a milling machine. It is perpendicular to work-holding surface if there
is no such spindle. Positive motion in z axis tends to increase the
separation between the work-piece and the tool
Principal: X,Y,Z
Second: U,V,W
Tertiary: P,Q,R
Advantages:
• Position is maintained just by keeping track of number of revolutions.
• Can produce a movement of 1/1000th of an inch, for a single pulse.
• Cheap and less complex.
• Easy to maintain.
Drawback:
• Assumption: Motor movement is precise, i.e. motor is moving the exact
amount depending on the number of pulses.
• No way to correct errors, because no feedback.
• This control is not suitable for large machines requiring greater power
because of limitation of stepper motor to generate high torque.
•Closed-loop Control
• Direct current (DC) motors are used.
• Can generate high levels of torque.
• Can be reversed.
• Unlike stepper motors, it cannot achieve very precise
movement.
• Separate positions sensors are required.
• Position information is fed back as a signal to the controller.
•Major advantage: because of feed back and servo motors
Types of NC control systems reversible feature, errors can be
corrected, by comparing with target position.
• Thus formed a closed loop.
• Higher accuracy than open loop systems because of feed
back.
• Applications:
•Larger NC machines because of higher loads.
•For greater accuracy, any kind of load.
• Expensive and complex.
What the Programmer has to do to make Part
Programming
Operator Paned
Console Interface
Taper Redder
Punch Tape
Producing Planning
Component Size Type of Machining Required Form in which stock material is supplied
Program Proving
Component production
Coordinates System
Incremental Coordinate System Absolute Coordinate System
Absolute and Incremental co-ordinates
In the absolute programming, the end point of a motion is
programmed with reference to the program zero point.
In incremental programming, the end point is specified with
reference to the current tool position.
Floting Zero: -
•Very common with CNC M/C used now a days.
•Operator gas lobeity to set zero point at any
convenient position on M/C table
•The Coordinate system is knows as work coordinate
system (WCS)
Part Programme
The coded instructions or commands listed in a logical sequence to have a
machine tool perform a specific tasks or a series of tasks in order to produce a finished
product in the minimum amount of time.
Programming Format
% Programme Number.
N Sequence Number (Block Identification Number).
G Preparatory functions (G00 to G99). This prepares the M/C for next operation.
X,Y,Z Primary motion Dimension in the X,Y,Z direction respectively.
U,V,W Secondary motion Dimension in the X,Y,Z direction respectively.
P,Q,R Tertiary motion Dimension in the X,Y,Z direction respectively.
I,J,K Distance to the are center or thread leads parallel to X,Y,Z respectively.
A,B,C Angular Dimension around in the X,Y,Z direction respectively.
R Parameters.
F Feedrate.
S Spindle Speed/Cutting Speed.
T/D Tool number.
M Miscellaneous function (Machine Codes)
EOB End of Block.
PART PROGRAMMING FOR CNC
1. CHARACTER : A single alphanumeric character value or the "+" and "-" sign.
5. LEADING ZERO'S : If the digits proceeding a number are zero, they need not
be programmed in. The control will automatically enter in the leading zero's.
EXAMPLE: G0 for G00 and M1 for M01, Trailing zeros must be programmed: M30
not M3, G70 not G7.
6. MODAL COMMANDS : Codes that are active for more than the line in which they
are issued are called MODAL commands. Rapid traverse, feedrate moves, and
canned cycles are all examples of modal commands. A NON-MODAL command which
once called, are effective only in the calling block, and are then immediately forgotten
by the control.
7. PREPARATORY FUNCTIONS : "G" codes use the information contained on the line
to make the machine tool do specific operations, such as :
1.) Move the tool at rapid traverse.
2.) Move the tool at a feedrate along a straight line.
3.) Move the tool along an arc at a feedrate in a clockwise direction.
4.) Move the tool along an arc at a feedrate in a counterclockwise direction.
5.) Move the tool through a series of repetitive operations controlled by "fixed cycles"
such as, spot drilling, drilling, boring, and tapping.
9. SEQUENCE NUMBERS : N1 thru N99999 in a program are only used to locate and
identify a line or block and its relative position within a CNC program. A program can
be with or without SEQUENCE NUMBERS. The only function of SEQUENCE
NUMBERS is to locate a certain block or line within a CNC program.
Programming Key Letters
• O - Program number (Used for program identification)
• N - Sequence number (Used for line identification)
• G - Preparatory function
• X - X axis designation
• Y - Y axis designation
• Z - Z axis designation
• R - Radius designation
• F – Feed rate designation
• S - Spindle speed designation
• H - Tool length offset designation
• D - Tool radius offset designation
• T - Tool Designation
• M - Miscellaneous function
List of G-codes
G-code Function
G00 Positioning rapid traverse
G01 Linear interpolation (feed)
G02 Circular interpolation CW
G03 Circular interpolation CCW
G04 Dwell
G20 Inch unit
G21 Metric unit
G28 Automatic zero return
G40 Tool nose radius compensation cancel
G41 Tool nose radius compensation left
G42 Tool nose radius compensation right
G43 Tool length compensation
G54 Work co-ordinate system 1 selection
G55 Work co-ordinate system 2 selection
G56 Work co-ordinate system 3 selection
G57 Work co-ordinate system 4 selection
G58 Work co-ordinate system 5 selection
G59 Work co-ordinate system 6 selection
G80 Canned cycle cancel
G81 Drilling cycle
G82 Drilling cycle with dwell
G83 Peck drilling cycle / deep drill
G84 Tapping cycle
G85 Boring / Reaming cycle
G86 Boring cycle
G87 Back boring cycle
G90 Absolute command
G91 Incremental command
G94 Feed per minute
G95 Feed per revolution
G98 Return to initial point in canned cycle
G99 Return to R point in canned cycle
List of M codes
M codes vary from machine to machine depending on the functions available on it.
They are decided by the manufacturer of the machine. The M codes listed below are
the common ones.
M-codes Function
M00 Optional program stop automatic
M01 Optional program stop request
M02 Program end
M03 Spindle ON clock wise (CW)
M04 Spindle ON counter clock wise (CCW)
M05 Spindle stop
M06 Tool change
M07 Mist coolant ON (coolant 1 ON)
M08 Flood coolant ON (coolant 2 ON)
M09 Coolant OFF
M30 End of program, Reset to start
M98 Sub program call
M99 Sub program end
History of CNC
IT IS MODEL
FORMAT
G92 X__ Y__ Z__ (CURRENT TOOL POSITION W.R.T
ZERO OF JOB)
REFERENCE POINT AND RETURN
G54 X_ Y_ Z_;
G00 Rapid traverse
When the tool being positioned at a point preparatory to a cutting motion, to
save time it is moved along a straight line at Rapid traverse, at a fixed traverse
rate which is pre-programmed into the machine's control system. Typical rapid
traverse rates are 10 to 25 m /min., but can be as high as 80 m/min.
Format
N_ G00 X__ Y__Z__
G01 Linear interpolation (feed traverse)
The tool moves along a straight line in one or two axis simultaneously at a programmed
linear speed, the feed rate.
Format
N__ G01 X__ Y__Z__ F__
G02/03 Circular interpolation
Format
N__ G02/03 X__ Y__Z__ I__ J__K__ F__ using the arc center
OR
N__ G02/03 X__ Y__Z__ R__ F__ using the arc radius
G02 moves along a CW arc
G03 moves along a CCW arc
Arc center
The arc center is specified by addresses I, J and K. I, J and K are the X, Y and Z
co-ordinates of the arc center with reference to the arc start point.
Block format
N__ G02 X__Y__ Z__ R__ F__
N__ G03 X__Y__ Z__ R__ F__
DWELL COMMAND
G04 Dwell
Format:G04X_; or G04F_; or G04P_;
X: Specified time(decimal point is permitted)
F: Specified time(decimal point is permitted)
P: Specified time(decimal point is unpermitted)
Explanation:G04 command dwell. The execution of the next
block is delayed by the specified time, specify dwell for each
rotation in feed per rotation mode. Dwell is use to stop feed
for specified period of time.
G20/G21;
G20 and G21 selection is meaningful only for linear axes and
it is meaningless for rotary axes.
The input unit for G20 and G21 will not change just by
changing the command unit.
Format: -
G41 X_ Y_D_;
G42 X_ Y_D_;
SUBROUTINE
M99: -An M99 ends a sub-program and returns back to the next
line in the main program after the M98 sub-program call.
Tool length compensation (G43)
Different tools of different lengths are used in machining any part. The lengths of the tools are
not considered in the part program. They are entered in the machine’s memory, and are
considered automatically for each motion in the program depending on the tool that is being
used. The tool lengths in the Z direction are called the Tool length offsets.
Codes Function
G43 Make the value of the cutter’s offset add to the value of Z coordinates of the program
G44 Make the value of the cutter’s offset subtract the value of Z coordinates of the Program
G49 Cancel the offset of the length of the cutter
Format: - G43 Z_ H_; G44 Z_ H_; G49 Z_;
Canned cycles
Canned or fixed cycles are programming aids that simplify programming. Canned
cycles combine many programming operations and are designed to shorten the
program length, minimize mathematical calculations, and use minimal tool motions.
Examples : drilling, peck drilling, tapping, boring, back spot facing.
G81 Drilling cycle
G82 Drilling cycle with dwell (Counter bore cycle)
G83 Peck drilling cycle / deep drill
G84 Right hand tapping cycle
G85 Boring / Reaming cycle
G86 Boring cycle
G87 Back boring cycle
G74 Left hand tapping cycle
G76 Fine boring cycle
G76 X__Y__Z__R__Q__P__F__K__
This G13 code implies the use of G41 cutter compensation left and will be
machining in a counterclockwise direction, but is otherwise the same as G12.
G13 is usually preffered instead of G12, since G13 will be climb cutting when used
with a standard right handed tool.