Академический Документы
Профессиональный Документы
Культура Документы
DIMENSIONING SYSTEM
SAMPLE PROGRAMS
EXERCISE
AXES IN CNC MACHINES
Depending on the machine type there are commonly two to five axes.
Rotary axes
The rotary motion about the X,Y and Z-Axis are identified by a,
b and c respectively. Clockwise is designated as +ve.
Z Axis
The Z Axis of motion is always the axis of the main spindle of
the machine. It doses not matters whether the spindle carries
the work piece or the cutting tool. On vertical machining
centers Z axis is vertical and on horizontal machining center
and turning centers Z axis is horizontal.
Positive Z Movement is away from the spindle.
X-Axis
It is always horizontal and parallel to the work holding
surface. Positive X Axis movement is identified as being to the
right, when looking from the spindle towards its supporting
column.
Y- Axis
It is at right angle to both X-Axis and Z-Axis
AXES IN MILLING MACHINE
A Milling machine has 3 axes of movement identified by X, Y & Z axes
+
+Z
Z
- +Y
Y +
X -X +X
- -
+
-Y
-Z
AXES IN CNC LATHE
P6 P5
20
P4
P3 10
ABSOLUTE INCREMENIAL
DIMENSIONING DIMENSIONING
P2 P1
POINTS X Z POINTS U W
(0,0)
P1 10 0 P1 10 0
P2 10 -10 P2 0 -10
P3 20 -10 P3 10 0
P4 20 -25 P4 0 -15
P5 30 -25 P5 10 0
P6 30 -35 P6 0 -10
10 15 10
100
70
P9 P8
P7
70
40
P3 P4
20
P5 P6
P1 20 P2
70
Reference Point 100
Main Menu
Simulation Screen
Combo Box
CNC Editor
SELECTION OF CONTROLLER TYPE
Click file on the main menu and click new CNC program and
type the program in the CNC editor screen .
How to load an existing program ?
1.Click file on the main menu and click load CNC program
click save as - enter file name - click save button - click yes to save
Step 1
Tool setting is done by clicking
Job/Tooling - Tool Offset
Step 2
Click the corresponding tool
Step 3
Click Select Tooling
Step 7
Step 6
Step 8 click ok
Verify that left-hand tool is displayed on the tool 2 position
Likewise select the Tool4 (Grooving tool)by following step 2 to 8
Setting the Billet
Click ok
Simulation
M30
M30 Program stop and rewind
PROGRAM FOR SIMPLE TURNING
Syntax
Rapid Traverse
G00 X (VALUE) Z(Value)
Linear Interpolation
G01 X (VALUE) Z(Value) F(Value)
SIMPLE TURNING O1000
( Using G00 and G01 ) N1 G21 G98
N2 G28 U0 W0
N3 M06 T0101
N4 M03 S2000
N5 G00 X30 Z1
30
27 N6 G00 X29 Z1
N7 G01 X29 Z-50 F50
N8 G01 X30 Z-50
N9 G00 X30 Z1
N10 G00 X28 Z1
N11 G01 X28 Z-50
N12 G01 X30 Z-50
15.0 50 N13 G00 X30 Z1
ALL DIMENSION IN 'mm' N14 G00 X 27 Z1
BILLET SIZE :30 X 75
G CODES USED - G00,G01 N15 G01 X27 Z-50
N16 G01 X30 Z-50
N17 G00 X30 Z1
N18 G28 U0 W0
N19 M05
N20 M30
O1002
SIMPLE FACING G21 G98
G28 U0 W0
( Using G00 and G01 ) M06 T0101
M03 S2000
40 G00 X41 Z1
G00 X41 Z-1
G01 X10 Z-1 F30
G01 X10 Z1
G00 X41 Z1
G00 X41 Z-2
10 G01 X10 F30
G01 Z1
G00 X41
Z-3
G01 X10 F30
G01 Z1
G00 X41
Z-4
G01 X10 F30
G01 Z1
20 5 G00 X41
Z-5
ALL DIMENSION IN 'mm' G0I X10 F30
BILLET SIZE :40 X 75
G01 Z1
G CODES USED - G00,G01
G28 U0 W0
M05
M30
BOX TURNING CYCLE ( G90 )
Syntax
Tool movement
R
F R
F
PROGRAM USING BOX TURNING CYCLE
O1003
G21 G98 TOOL PATH
G28 U0 W0
M06 T0404 RAPID TRAVERSE
M03 S1500
RAPID TRAVERSE
G00 X22 Z1
FEED RATE
G90 X21 Z-30 F60 (Box turning cycle)
22
10
X20 PLAIN TURNING CYCLE
X19
X18
X17
X16 FEED RATE
X15
30
X14
X13
70
X12
X11
X10
G28 U0 W0
M05
M30
PROGRAM FOR TAPER TURNING
USING G90 CODE
Syntax
32
25
X32 R-1
X32 R-1.5
X32 R-2
15
X32 R-2.5
X32 R-3
70
X32 R-3.5
G28 U0 W0
R = (Minor dia - Major dia) / 2 M05
M30
= (25 - 32) /2 = -3.5
SAMPLE PROGRAM TAPER TURNING
O1006
G90 TAPER TURNING R+
G21 G98
G28 U0 W0
M06 T0404
M03 S1200
G00 X33 Z-25
G01 X32 F60
G90 X31 Z-50 R0.5 F60
X30 R1
X29 R1.5
X28 R2
X27 R2.5
X26 R3
X25 R3.5
G28 U0 W0
M05
M30
R = (Major dia - Minor dia) / 2
= (32 - 25) /2 = 3.5
G02 Circular Interpolation (CW)
G03 Circular Interpolation (CW)
G74 R
G74 X0 Z Q F
Syntax
G75 R
G75 X Z P Q F
R Retraction, in mm
X Required Diameter, in mm
Z Left end point of Groove in Z axis, in mm
P Peck increment in each cut in X axis, in micron
Q Z Axis stepping distance, in micron
F Feed rate
SAMPLE PROGRAM - GROOVING
Dwg.No:13
O1008
DIA25 G21 G98
M12 X 1.75 G28 U0 W0
M06 T2
M03 S400
G00 X12 Z1
G76 P031560 Q50 R0.1
G76 X9.853 Z-15 P1073 Q100 F1.75
15 G28 U0 W0
M05
M30
PROGRAM FOR DRILLING AND BORING
6 1X45
M12 X 1.75
5 5 15
EXERCISE ON MULTIPLE TURNING CYCLE
WRITE A CNC PROGRAM FOR MACHINING THE GIVEN COMPONENT
CNC MILLING
PROGRAMMING AND SIMULATION
File Menu
Options Menu
Dual Edit Option
G04 - Dwell
O1694
[BILLET X100 Y100 Z10
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1200
N060 G90 G00 X-25.5 Y-37.5
N070 G00 Z5
N080 G01 Z-1 F50
N170 G00 Z5
N090 G03 X-37.5 Y-22.5 R15
N180 G00 X-15 Y0
N100 G01 Y22.5
N190 G01 Z-1 F50
N110 G03 X-22.5 Y37.5 R15
N200 G03 X15 Y0 R15
N120 G01 X22.5
N210 G03 X-15 Y0 R15
N130 G02 X37.5 Y22.5 R15
N220 G00 Z5
N140 G01 Y-22.5
N230 M05
N150 G03 X22.5 Y-37.5 R15
N240 G91 G28 Z0
N160 G01 X-25.5
N250 G28 X0 Y0
N260 M30
Deep Hole Peck Drilling Cycle ( G83 )
Syntax
G83 X___ Y___ Z___ Q___ R___ F___ ;
Z__ : Distance from the reference point to the bottom of the hole in incremental
mode, or the position of the hole bottom in absolute mode.
Q__ : defined as the Cut-in distance value or peck value. (Incremental only)
K__ : defined as the number of repeats, for a series of holes. When not specified K=1.
G170 block,
R defines the position of the tool to start cycle ie. 0 (surface of job).
P defines roughing/ finishing cycle. (P is 0 for roughing cycle & 1 for finishing)
Q defines the peck increment.
X defines the pocket centre in X axis. Syntax
Y defines the pocket centre in Y axis. N10 G170 R0 P0 Q3 X0 Y0 Z-6 I0 J0 K-24 ;
Z defines the pocket base (depth) from job surface. N20 G171 P75 S30 R75 F250 B3500 J200 ;
I defines the side finish allowance.
J defines the base finish allowance.
K defines the radius of pocket. (Negative value - cut in CCW direction).
G171 block,
P defines the cut width percentage.
S defines the roughing spindle speed.
R defines the roughing Feed in Z.
F defines the roughing feed for X and Y.
B defines the finishing spindle speed. (Not applicable for roughing only).
J defines the finishing feed. (Not applicable for roughing only).
When setting offsets the value R must be included, R being the radius of the cutter.
The direction of the cutter path is controlled by K, a negative value for K means the cutter path is in a
CCW direction and if the K value is positive the cutter path is in a CW direction.
The Q value is always positive.
Program for Circular Pocketing
O 0002 ;
N90 M05 ;
N110 M30 ;
Rectangular Pocketing
Syntax
For G172 block, N10 G172 I50 J50 K0 P0 Q3 R0 X-25 Y-25 Z-6
I defines the pocket X length. N20 G173 I0 K0 P75 T1 S300 R75 F250 B3500 J200 Z5
J defines the pocket Y length.
K defines the radius of corner roundness.
P defines that 0 = roughing cycle.
Q defines the pocket Z increment.
R defines the Absolute Z reference point.
X defines the pocket corner X (Absolute position relative to the X datum position).
Y defines the pocket corner Y (Absolute position relative to the Y datum position).
Z defines the absolute Z base of pocket (depth).
For G173 block,
I defines the pocket side finishing allowance.
K defines the pocket base finishing allowance.
P defines the cut width percentage (% of tool dia.).
T defines the pocket tool.
S defines the spindle speed for roughing.
R defines the roughing feed for Z .
F defines the roughing feed X and Y .
B defines the finishing spindle speed.
J defines the finishing feed.
Z defines the safety Z position above 'R' point.
Program for Rectangular Pocketing
O 0005 ;
N10 G91 G21 G28 X0 Y0 Z0 ;
N20 M06 T01 ;
N30 G90 G00 X0 Y0 Z10 S3000 M03 ;
N40 G01 Z0 F300 ;
N50 G172 I-50 J-50 K0 P0 Q3 R0 X-25 Y-25 Z-6 ;
N60 G173 I0 K0 P75 T1 S300 R75 F250 B3500 J200 Z5 ;
N70 G00 Z25 M05 ;
N80 G91 G28 X0 Y0 Z0 ;
N90 M30 ;
Sub-program call and Mirroring
M70 - X Mirror On M70 sets X axis mirroring about the current X axis position.
M71 - Y Mirror On M71 sets Y axis mirroring about the current Y axis position.
M80 - X Mirror Off M80 disables X axis mirroring
M81 - Y Mirror Off M81 disables Y axis mirroring
M98 - Subprogram Call
M98 causes another program to be executed. The "P" value specifies the program number and
the number of times to execute it. The right most 4 digits are the program number. The digits to the left are
the number of repetitions. There can be up to 999 repetitions, if the value is omitted it is called once.
Examples: M98 P12
and M98 P10012 both execute CNC program 12 once.
M99 - Subprogram Exit
Returns control to the program that called the current program.
If a "P" value is specified then execution begins form the block with the same "N" number, otherwise it is
form the block after the subprogram call.
If an M99 is specified in the main program then the execution is from the start of the program. This is
called looping (or) nesting of one or more programs
Example: M99 - Returns to the block following the call.
M99 P10 - Returns to the block with "N" value 10.
Program by Mirroring Option
[BILLET X100 Y100 X10
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1800
N060 G90 G00 X0 Y0
N070 G00 Z5
N080 M98 P10008
N090 M70
N100 M98 P10008
N110 M80
N120 M70
N130 M71
N140 M98 P10008
N150 M80
N160 M81 O 0008 Subprogram
N170 M71 N010 G90 G00 X10 Y10
N180 M98 P10008 N020 G01 Z -1 F50
N190 M81 N030 X40
N200 G00 Z5 N040 X10 Y40
N210 M05 N050 Y10
N220 G91 G28 Z0 N060 G00 Z6
N230 G28 X0 Y0 N070 G00 X0 Y0
N240 M30 N080 M99
EXERCISE ON CONTOUR MILLING
33
33
EXERCISE ON CONTOUR MILLING AND CIRCULAR POCKETING
EXERCISE ON CONTOUR MILLING AND RECTANGULAR POCKETING
EXERCISE ON MIRRORING