Lesson Ten Text
Lesson Ten Text
XZ plane
YZ plane
XZ plane
XY
Since the X-Y plane is the plane directly facing the spindle on all machining centers,
almost all machining is done in the X-Y plane. For example, if machining a hole,
coordinates for the hole center are usually in the X-Y plane. If milling, the path of the
milling cutter is usually in the X-Y plane.
A G code is used to specify the plane in which you wish to work. With most controls,
G17 is used to specify the X-Y plane, G18 for the X-Z plane, and G19 for the Y-Z plane.
The G17 (X-Y plane) is initialized, meaning when the power is turned on, the control
automatically selects this G code, setting the X-Y plane. This means the programmer
does not have to specify a G17 in the program if working exclusively in the X-Y plane.
Because so much machining is done in the X-Y plane, you may not have even considered
the possibility of working in another plane. And since the control will automatically
select the X-Y plane at power up, you may never have even heard of plane selection.
There may come a time, however, when you must work in a different plane. Here are
some examples with extended discussions.
A right angle head will minimize the number of secondary operations required after the
CNC operation. The right angle head can hold a variety of tools, allowing it to perform a
2
Program:
O0016 (Program number)
(.500 diameter drill)
N005 G17 G54 G90 S800 M03 T02 (Select X-Y plane, coordinate system,
absolute mode, turn spindle on CW at 800 RPM, get tool number two ready)
N010 G00 X.5 Y.5 (Move to first hole location)
N015 G43 H01 Z.1 (Rapid down to just above workpiece)
N020 G81 R.1 Z-.875 F5.0 (Drill lower left hole)
N025 Y4.5 (Drill upper left hole)
N030 X4.5 (Drill upper right hole)
N035 Y.5 (Drill lower right hole)
N040 G80 (Cancel cycle)
N045 G91 G28 Z0 M19 (Return to reference position, orient spindle for tool
change)
4
G02!
X
Drawing shows determination of circular motion based upon using a ball end mill in the X-Z plane
If you intend to allow a range of ball end mill sizes to be used while milling in X-Z or YZ, cutter radius compensation must be used. This will also require that you first select the
proper plane (even if circular motions are not commanded).
Plane selection with coordinate manipulation commands
Many CNC controls are equipped with coordinate manipulation features like polar
coordinates, coordinate rotation, single direction positioning, and scaling that make the
calculation of motion positions much easier. Though these commands are most
commonly used in the X-Y plane, you can also use them to manipulate motions in the XZ and Y-Z planes.
As with canned cycles, you must exchange the direction of machining for the particular
coordinate manipulation feature. Coordinate rotation in the X-Z plane, for example,
would require that the center of rotation be a position in the X-Z plane, instead of in the
X-Y plane.
Plane selection with rotary axes that can tilt tools
Some elaborate multi axis machining centers (four and five axis machines) incorporate at
least one rotary device mounted in the machines headstock used to tilt the tool in the
spindle to the desired attitude relative to the X-Z plane and/or the Y-Z plane.