Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
4/14/2012
Vertical Machine
Horizontal Machine
4/14/2012
4/14/2012
4/14/2012
CNC APPLICATIONS
Machining 2.5D / 3D Turning ~ Lathes, Turning Centre Milling ~ Machining Centres Forming 2D Plasma and Laser Cutting Blanking, nibbling and punching 3D Rapid Prototyping
5
4/14/2012
4/14/2012
CNC TURNING
4/14/2012
CNC MILLING
4/14/2012
4/14/2012
4/14/2012
10
CNC TURNING
4/14/2012
11
CNC PRESS
4/14/2012
12
4/14/2012
13
4/14/2012
4/14/2012
15
4/14/2012
16
4/14/2012
17
4/14/2012
18
4/14/2012
19
ELECTRONIC INDUSTRY
4/14/2012
20
4/14/2012
21
4/14/2012
22
4/14/2012
MACHINE TOOL
CNC controls are used to control various types of machine tools. Regardless of which type of machine tool is controlled, it always has a slide table and a spindle to control of position and speed. The machine table is controlled in the X and Y axes, while the spindle runs along the Z axis.
24
4/14/2012
FEEDBACK SYSTEM
The feedback system is also referred to as the measuring system. It uses position and speed transducers to continuously monitor the position at which the cutting tool is located at any particular time. The MCU uses the difference between reference signals and feedback signals to generate the control signals for correcting position and speed errors.
25
4/14/2012
4/14/2012
26
4/14/2012
V used for profiling, weakest insert, 2 edges per side. D somewhat stronger, used for profiling when the angle allows it, 2 edges per side. T commonly used for turning because it has 3 edges per side. C popular insert because the same holder can be used for turning and facing. 2 edges per side. W newest shape. Can turn and face like the C, but 3 edges per side. S Very strong, but mostly used for chamfering because it wont cut a square shoulder. 4 edges per side. R strongest insert but least commonly used.
27
4/14/2012
28
Most machining centers use some form of HSS or carbide insert endmill as the basic cutting tool. Insert endmills cut many times faster than HSS, but the HSS endmills leave a better finish when side cutting.
29
4/14/2012
The tool most often used to make holes is the fluted drill. Drills are made with two, three, or four cutting lips. The two-lip drill is used for drilling solid stock. The three- and four-lip drills are used for enlarging holes that have been previously drilled. Modern drills can also have coolant holes for direct delivery of coolant through the end of the drill.
4/14/2012 30
Facemills flatten large surfaces quickly and with an excellent finish. Notice the engine block being finished in one pass with a large cutter.
4/14/2012
31
The rotating cutter, termed the milling cutter, has almost an unlimited variety of shapes and sizes for milling regular and irregular forms. The most common milling cutter is the end mill. Other tools that are often used are shell mills, face mills, and roughing mills. When milling, care must be taken not to take a cut that is deeper than the milling cutter can handle. End mills come in various shapes and sizes, each designed to perform a specific task. The three basic shapes of standard end mills are flat, ballnose, and bullnose.
4/14/2012 32
Ball endmills (both HSS and insert) are used for a variety of profiling operations such as the mold shown in the picture. Slitting and side cutters are used when deep, narrow slots must be cut.
33
4/14/2012
Ball endmills (both HSS and insert) are used for a variety of profiling operations such as the mold shown in the picture. Slitting and side cutters are used when deep, narrow slots must be cut.
34
4/14/2012
Drills, Taps, and Reamers Common HSS tools such as drills, taps, and reamers are commonly used on CNC machining centers. Note that a spot drill is used instead of a centerdrill. Also, spiral point or gun taps are used for through holes and spiral flute for blind holes. Rarely are hand taps used on a machining center.
4/14/2012
35
TOOL HOLDERS
All cutting tools must be held in a holder that fits in the spindle. These include end mill holders (shown), collet holders, face mill adapters, etc. Most machines in the USA use a CAT taper which is a modified NST 30, 40, or 50 taper that uses a pull stud and a groove in the flange. The machine pulls on the pull stud to hold the holder in the spindle, and the groove in the flange gives the automatic tool changer something to hold onto. HSK tool holders were designed a number of years ago as an improvement to CAT tapers, but they are gaining acceptance slowly.
4/14/2012
36
CNC PROGRAMMING
4/14/2012
37
CNC PROGRAMMING
Offline programming linked to CAD programs. Conversational programming by the operator. MDI ~ Manual Data Input. Manual Control using jog buttons or `electronic handwheel'. Word-Address Coding using standard G-codes and M-codes.
38
4/14/2012
NC program that will stay in effect until it is changed by some other command, like, feed rate selection, coolant selection, etc.
effective only when issued and whose effects are lost for subsequent commands, like, a dwell command which instructs the tool to remain in a given configuration for a given amount of time.
4/14/2012 39
4/14/2012
40
4/14/2012
41
PREPARING TO PROGRAM
Before you write a CNC program, you must first prepare to write it. The success of a CNC program is directly related to the preparation that you do before you write the CNC program. You should do three things before you begin to write a program: 1. Develop an order of operations. 2. Do all the necessary math and complete a coordinate sheet. 3. Choose your tooling and calculate speeds and feedrates.
4/14/2012
42
The CNC operator can also use coordinate and setup sheets. Using them as references makes generation of the CNC program easier.
4/14/2012
43
4/14/2012
44
4/14/2012
45
BLOCK FORMAT
Sample Block
N135 G01 X1.0 Y1.0 Z0.125 F5
Each may contain only one tool move Each may contain any number of non-tool move G-codes Each may contain only one feedrate Each may contain only one specified tool or spindle speed The block numbers should be sequential Both the program start flag and the program number must be independent of all other commands (on separate lines) The data within a block should follow the sequence shown in the above sample block
47
4/14/2012
WORD-ADDRESS CODING
Example CNC Program
N5 G90 G20 N10 M06 T3 N15 M03 S1250 N20 G00 X1 Y1 N25 Z0.1 N30 G01 Z-0.125 F5 N35 X3 Y2 F10 N40 G00 Z1 N45 X0 Y0 N50 M05 N55 M30
Each instruction to the machine consists of a letter followed by a number. Each letter is associated with a specific type of action or piece of information needed by the machine.
Letters used in Codes
N,G,X,Y,Z,A,B,C,I,J,K,F,S,T,R,M
4/14/2012
48
G & M Codes
Example CNC Program
N5 G90 G20 N10 M06 T3 N15 M03 S1250 N20 G00 X1 Y1 N25 Z0.1 N30 G01 Z-0.125 F5 N35 X3 Y2 F10 N40 G00 Z1 N45 X0 Y0 N50 M05 N55 M30
G-codes: Preparatory Functions involve actual tool moves. M-codes: Miscellaneous Functions involve actions necessary for machining (i.e. spindle on/off, coolant on/off).
4/14/2012
49
G-Codes
G00 Rapid traverse G01 Linear interpolation with feedrate G02 Circular interpolation (clockwise) G03 Circular interpolation (counter clockwise)
Zero offset #1 Zero offset #2 Zero offset #3 Zero offset #4 Zero offset #5 Zero offset #6 Inch format active Metric format active
G04
G17
G18 G19
G80 Canned cycle "off" G81 Drilling to final depth canned cycle G82 Spot facing with dwell time canned cycle G83 Deep hole drilling canned cycle G84 Tapping or Thread cutting with balanced chuck canned cycle G85 Reaming canned cycle G86 Boring canned cycle G90 G91 G94 G95 rev) Absolute programming Incremental programming Feed in mm / min (or inch / min) Feed per revolution (mm / rev or inch /
50
G40 Path compensations "off" G41 Path compensation left of the work piece contour G42 Path compensation right of the work piece contour
4/14/2012
M codes M00 M01 M02 M03 M04 M05 M06 M19 M20 G35) M21 M30 Unconditional stop Conditional stop End of program Spindle clockwise Spindle counterclockwise Spindle stop Tool change Spindle orientation Start oscillation (configured by End oscillation End of program
4/14/2012
51
Modal G-Codes
Most G-codes set the machine in a mode which stays in effect until it is changed or cancelled by another G-code. These commands are called modal.
4/14/2012
52
Rapid Transverse Linear Interpolation Circular Interpolation, CW Circular Interpolation, CCW G17 XY Plane G18 XZ Plane G19 YZ Plane G20/G70 Inch units G21/G71 Metric Units G40 Cutter compensation cancel G41 Cutter compensation left G42 Cutter compensation right G43 Tool length compensation (plus)
G43 Tool length compensation (plus) G44 Tool length compensation (minus) G49 Tool length compensation cancel G80 Cancel canned cycles G81 Drilling cycle G82 Counter boring cycle G83 Deep hole drilling cycle G90 Absolute positioning G91 Incremental positioning
4/14/2012
53
M Codes
M00 Program stop M01 Optional program stop M02 Program end M03 Spindle on clockwise M04 Spindle on counterclockwise M05 Spindle stop M06 Tool change M08 Coolant on M09 Coolant off M30 Program stop, reset to start
4/14/2012
54
N Codes
4/14/2012
X, Y, and Z codes are used to specify the coordinate axis. Number following the code defines the coordinate at the end of the move relative to an incremental or absolute reference point.
4/14/2012
56
I, J, and K codes are used to specify the coordinate axis when defining the center of a circle.
Number following the code defines the respective coordinate for the center of the circle.
57
4/14/2012
4/14/2012
Linear Interpolation results in a straight line feed move. Unless tool compensation is used, the coordinates are associated with the centerline of the tool.
59
4/14/2012
. As an example, for the motion that occurs in x-y plane with the same maximum speed for the x- and y-axis, initial motion is at an angle of 45o to the axes until motion in one of
the axes is completed and then the balance of the motion occurs in the other axis. This is called point-to-point motion.
4/14/2012
60
B 2 0
1 5
1 0
P o s i t i o n i n g N 1 0 G 0 0
m o t i o n
f r o m F 0
t o
A 5
X 3 0 0 0 0
Y 2 0 0 0 0
1 0
1 5
2 0
2 5
3 0
4/14/2012
61
1 5
1 0
A 5
1 0
1 5
2 0
2 5
3 0
4/14/2012
63
4/14/2012
64
G02 is also a preparatory function to specify that the tool should be moved to a specified location along a circular path in a clockwise direction. In order to specify the path to the MCU, the end point of the arc and the location of the center of the arc should be specified. Within the block in which the G02 code is programmed, the center of the arc is given by specifying its location relative to the start of the arc.
65
4/14/2012
The G02 command requires an endpoint and a radius in order to cut the arc. I,J, and K are relative to the start point. N_ G02 X2 Y1 I0 J-1 F10 or N_ G02 X2 Y1 R1
4/14/2012
66
I = 5 2 0
1 5 J = 1 5
1 0
B C
1 0
1 5
2 0
2 5
3 0
4/14/2012
67
The sequence of some machining operations is may be the same for any part and for any machine. For example, drilling a hole involves the following steps: Position the tool above the point where the hole will be drilled
Set the correct spindle speed Feed the tool into the workpiece at a controlled feed rate to a predetermined depth Retract the tool at a rapid rate to just above the point where the hole started
Canned Cycles
4/14/2012
68
G83
G84 G85 G86
Peck
Continuous feed
No action
Reverse spindle No action Stop spindle
Rapid
Feed rate Feed rate Rapid
69
Through boring(in Continuous & out) feed Through boring(in Continuous only) feed
4/14/2012
G81 ILLUSTRATION
4/14/2012
70
(Absolute units, metric) (Stop for tool change, use tool # 2) (Turn the spindle on CW to 1200 rpm)
71
4/14/2012
N20 G00 X1 Y1
(Rapid to X1,Y1 from origin point) N25 Z0.125 (Rapid down to Z0.125) N30 G01 Z-0.125 F100 (Feed down to Z-0.125 at 100 mm/min) N35 G01 X2 Y2 (Feed diagonally to X2,Y2) N40 G00 Z1 (Rapid up to Z1) N45 X0 Y0 (Rapid to X0,Y0)
72
4/14/2012
4/14/2012
73
4/14/2012
74
G-CODE PROGRAM
First pass : conventional mill to a depth of 0.125 around edge profile. Tool 1 is a inch dia. end mill.
% :1002 N5 G90 G20 N10 M06 T1 N15 M03 S1200 N20 G00 X0.125 Y0.125 N30 Z0.125 N35 G01 Z-0.125 F5 N40 X3.875 N45 Y4.125 N50 X0.125 N55 Y0.125
4/14/2012
75
4/14/2012
N100 Y2.125 N105 X2.625 N110 Z0.125 N115 G00 X-5 Y-5 Z5 N120 M05 N125 M30
4/14/2012 78
Advanced features:
Execution of the part of the program in a rotated or mirrored position. Ability to scale the program and produce larger or smaller programs. Three dimensional circular interpolation which produces a helical shape. Parabolic and cubic interpolation.
4/14/2012
79
Program Loading:
keyboard punched tape reader diskette drive RS 232 serial port network interface card
4/14/2012
80
NC program preparation may be tedious and difficult if the part to be machined has a complex geometry. The main difficulty is to find out the cutter locations during the machining. Computers may be used to assist the programmers in preparing the NC codes.
4/14/2012
81
1. It reduces the manual calculations involves in determining the geometric characteristics of the part. It provides the cutter path simulation. It provides tool collision checking. It shortens the program preparation time. It makes the program preparation easier.
82
4/14/2012