Archive for the ‘cad/cam’ Category

h1

Default G codes used on most machines types.

12/09/2009

G00 Rapid move G0 X# Y# Z# up to eight axes or G0 Z# X#
G01 Feed Rate move G1 X# Y# Z# up to eight axes or G1 Z# X#
G02 Clockwise move
G03 Counter Clockwise move
G04 Dwell time G04 L#
G08 Spline Smoothing On
G09 Exact stop check, Spline Smoothing Off
G10 A linear feedrate controlled move with a decelerated stop
G11 Controlled Decel stop
G17 XY PLANE
G18 XZ PLANE
G19 YZ PLANE
G28 Return to clearance plane
G33 Threading (Lathe)
G35 Bypass error checking on next line
G40 Tool compensation off
G41 Tool compensation to the left
G42 Tool compensation to the right
G43 Tool length compensation – negative direction
G44 Tool length compensation – positive direction
G49 Tool length compensation cancelled
G53 Cancel work coordinate offsets
G54-G59 Work coordinate offsets 1 through 6
G61 Spline contouring with buffering mode off
G64 Spline contouring with buffering mode on
G65 Mill out rectangular pocket
G66 Mill out circular pocket
G67 Flycut
G68 Mill out rectangular pocket with radius corners
G70 Inch mode
G71 Millimeter mode
G74 Peck drilling (Lathe) G83 Z# X# R#
G81 Drill cycle G81 X# Y# Z# R#
G82 Dwell cycle G82 X# Y# Z# R#
G83 Peck cycle G83 X# Y# Z# R#
G84 Tapping cycle G84 X# Y# Z# R# C#
G85 Boring cycle 1 G85 X# Y# Z# R#
G86 Boring cycle 2 G86 X# Y# Z# R#
G88 Boring cycle 3 G88 X# Y# Z# R#
G89 Boring cycle 4 G89 X# Y# Z# R#
G90 Absolute mode
G91 Incremental mode
G92 Home coordinate reset G92 X# Y# Z#
G94 IPM mode (Lathe) default
G95 IPR mode (Lathe)
G96 Constant Surface Feed On (Lathe)
G97 Constant Surface Feed Off (Lathe)
G110 Lathe Groove Face
G111 Lathe Groove OD
G112 Lathe Groove ID
G113 Lathe Thread OD
G114 Lathe Thread ID
G115 Lathe Face Rough
G116 Lathe Turn Rough
G120 Mill Outside Square
G121 Mill Outside Circle or Island
G122 Mill Out Counter Bore
G123 Mill Outside Ellipse pocket
G124 Mill Inside Ellipse pocket
G125 Mill Outside Slot
G126 Mill Inside Slot pocket
G130 3D tool compensation with gouge protection
G131 3D offset parallel to 3D profile
G132 3D tool compensation with gouge protection in the Z axis only
G135 5 axis tool compensation with gouge protection
G136 Included angle limit for gouge protection. G136 L#
G140 3D part rotation and plane tilting G140 U# V# W# R#
G141 Scale factor for the X axis only. G141 L#
G142 Scale factor for the Y axis only. G142 L#
G143 Scale factor for the Z axis only. G143 L#
G160 Mill 3D Cylinder
G162 Mill 3D Sphere
G163 Mill 3D Ramped Plane
G170 Set soft limits and crash fixture/chuck barriers to defaults
G171 Set backward crash fixture/chuck barriers G171 U# V# W#
G172 Set forward crash fixture/chuck barriers G172 U# V# W#
G181 Bolt Hole Drill
G182 Bolt Hole Dwell
G183 Bolt Hole Peck
G184 Bolt Hole Tap
G185 Bolt Hole Bore

h1

CNC Machining, G codes, G0, Rapid Travel

12/09/2009

G0 moves from one point to another point at the maximum traverse rate of the machine. G0 is generally used when cutting will not take place when moving from one location to another.

Multiple axis moves begin by all axes moving together at the same rate until each axis move is completed. This gives the appearance of a forty-five degree move at the beginning of the move. For the remaining distances, each axis will continue to move to the end point.

G0 is modal and will remain in effect until it is canceled by the G1, G2 or G3 codes.

G0 will not cancel any feed rates used by the interpolation modes. An F word can appear on the same line with a G0 code; however, the F word will only be used when an interpolation code is used.

G0 can appear at any point on a line to make all moves on the line rapid.

EXAMPLE:

F30. (This F word is modal).
G0 G90 Z.1 (This line will be in rapid travel).
X1.5 Y2.5 (This line will be in rapid travel).
G1 Z-.25 (The G1 will cancel the G0 and use the F30. from above).
G91 X.5 (This will be at F30.0).
G90 Z.1 G0 (This line will be in rapid travel).

h1

CNC Machining, G codes, G1, Linear Interpolation.

12/09/2009

This code is used for linear interpolation. Linear moves can be made by one, or any combination of, all the active axes.

Linear Interpolation is used to generate motion along a line, at a specified feed rate. The linear mode is established by the G1 code.

Some controllers can move up to 5 axes simultaneously, completing the movement at a point determined by the X, Y, Z, A, and B words.

EXAMPLE:
N1 O1
N2 M6 T1
N3 G0 G90 S2000 M3 E1 X0 Y0 A0 B0
N4 H1 Z.1 M8
N5 G1 Z-.25 F5.
N6 G1 G91 X1. F10.
N7 X1. Y1.
N8 X1. Y1. Z1. A360. B90.

According to the sample program above:

Block N6 moves the X axis linearly (G1 mode) 1.0 inch at a feed rate of 10 IPM. Block N7 moves the X and Y axes together forming an angular cut. Block N8 moves all possible axes together.

The G1 code will use the last feed rate established in the program with the F# word. The F# word is modal and is only canceled by another F# word. The F# will remain in effect throughout the program until another F# word is used. The F# word can appear on any line with other codes as long as the other codes have no restrictions. G1 is modal and is only canceled by a G0 code.
The G1 must be used again after using a G0 code in the program. A G2/G3 code will not cancel a G1 code.
This means that if a G2 or G3 is used it is not necessary to re-state the G1 on the following line. Also, if the arc center is not described, then a straight line will be generated.

h1

CNC Machining, G codes, G90 Absolute Input

12/09/2009

A control mode in which the motion data input is in the form of absolute dimensions. The values programmed with the axis words are the locations to move to in relation to the current zero position.

Since blocks are processed in a left to right order, both G90 and G91 may appear in the same block. G90 and G91 are position sensitive; therefore the moves to the left of the G90 code will be in absolute until the G91 code is used.

The G90 code is modal and will remain in effect until the G91 code is used.

EXAMPLE:
N12 G90 X2.0 G91 Y1.0 The X move will be absolute; the Y move will be incremental
N13 Z-.02 G5 This Z move will be incremental
N14 G90 X4. This X move will be absolute

h1

3D Machining

09/15/2009

Today, 3d solid modeling is preferred over 2d modeling because of its flexibility, ease of rendering and accurate photorealism.”Computer-aided design doesn’t come naturally to students, and 3D solid modeling is even harder”, said Thomas Bligh, Professor of Mechanical Engineering at Cambridge University.

We are happier when actually making something in the shop, though 3D solid modeling is becoming a new passion.