1. ## Help needed

Hello everybody...
I'm taking a manufacturing course where we are introduced to CNC Milling.
I have a lab report due today, and while I was searching online, I found cnczone.com. I hope you can give me some help.

I've got the following code, and I have to explain the functions for each block. Would you be kind enough to take a look at it and correct me if i'm wrong. Also fill in a couple of blank ones?

Thanx!

Code:
(DATE=DD-MM-YY - 07-11-2005 TIME=HH:MM 09:15)
N100 G20 # Inch mode
N102 G0 G17 G40 G49 G80 G90 # Select the X-Y plane, turn off the path compensations, canned cycle and start absolute programming
(1/4 FLAT ENDMILL TOOL-2 DIA. OFF. – 2 LEN. – 2 DIA. – .25)
N110 T2 M6 # Change to tool 2
N112 G0 G90 X0. Y0. S3200 M3 # Spindle clockwise at a speed at 3200 RPM
N114 G43 H2 Z.25 # Initialize tool length compensation at a 2 inch
height and bring the tip of the tool to the position
Z.5
N118 G1 Z-.1 F4. # Drill at the position Z=-0.1 inches with a feed rate
of 4 in/min
N120 Y2. F8. # Apply a feed rate of 8 in/min in the Y 2in position
N122 X1. #
N124 G2 X2. Y1. R1. # Circular clockwise interpolation with a radius of 0.5 inch and end at position X=2 inch and Y=1 inch
N126 G1 Y.5 # Drill at the end position (Y=0.5 inch)
N128 G2 X1.5 Y0. R.5 # Circular clockwise interpolation with a radius of 0.5 inch and end at position X=1.5 inch and Y=0
N130 G1 X0. # Drill at position X=0
N132 G0 Z.25 # Rapid transverse at the point Z=0.25 inches
N134 M5 # Spindle off
M136 G91 G28 Z0 # Incremental programming
N138 G28 X0. Y0. # Tool returns to the home position (0,0)
N140 M30 # End of program
%

2. Originally Posted by BlackIbanez
Hello everybody...
I'm taking a manufacturing course where we are introduced to CNC Milling.
I have a lab report due today, and while I was searching online, I found cnczone.com. I hope you can give me some help.

I've got the following code, and I have to explain the functions for each block. Would you be kind enough to take a look at it and correct me if i'm wrong. Also fill in a couple of blank ones?

Thanx!

Code:
(DATE=DD-MM-YY - 07-11-2005 TIME=HH:MM 09:15)
N100 G20 # Inch mode
N102 G0 G17 G40 G49 G80 G90 # Select the X-Y plane, turn off the path compensations, canned cycle and start absolute programming
(1/4 FLAT ENDMILL TOOL-2 DIA. OFF. – 2 LEN. – 2 DIA. – .25)
N110 T2 M6 # Change to tool 2
N112 G0 G90 X0. Y0. S3200 M3 # Spindle clockwise at a speed at 3200 RPM
N114 G43 H2 Z.25 # Initialize tool length compensation at a 2 inch height and bring the tip of the tool to the position
Z.5
N118 G1 Z-.1 F4. # Drill at the position Z=-0.1 inches with a feed rate
of 4 in/min
N120 Y2. F8. # Apply a feed rate of 8 in/min in the Y 2in position
N122 X1. #
N124 G2 X2. Y1. R1. # Circular clockwise interpolation with a radius of 0.5 inch and end at position X=2 inch and Y=1 inch
N126 G1 Y.5 # Drill at the end position (Y=0.5 inch)
N128 G2 X1.5 Y0. R.5 # Circular clockwise interpolation with a radius of 0.5 inch and end at position X=1.5 inch and Y=0
N130 G1 X0. # Drill at position X=0
N132 G0 Z.25 # Rapid transverse at the point Z=0.25 inches
N134 M5 # Spindle off
M136 G91 G28 Z0 # Incremental programming
N138 G28 X0. Y0. # Tool returns to the home position (0,0)
N140 M30 # End of program
%
H2 Calls tool length offset H2.
Note : Cincinnati Mills use H1 ...Hx as fixture offsets.

The G1 lines are moving at the last F rate. - Not drilling.

M136 G91 G28 Z0 (Returns Z axis to home position)