Modern Machine Shop

SEP 2013

Modern Machine Shop is focused on all aspects of metalworking technology - Providing the new product technologies; process solutions; supplier listings; business management; networking; and event information that companies need to be competitive.

Issue link: https://mms.epubxp.com/i/155490

Contents of this Issue

Navigation

Page 63 of 243

CNC TECH TALK Columnist G28 Versus G53 Which command is better to get your machine axes to the reference position? Most FANUC-controlled machines, especially machining centers, use the machine's zero return position (also called the reference return position and home position) as a point of reference for certain machine functions. For example, the zero return position is the origin point for fixture offset (machining centers) and geometry offset (turning centers) entries. Most machine tool builders place the zero return position close to the plus over-travel limit in each axis. Some machines require that one or more axes be sent to this position prior to activating a function. The Z-axis zero return position is often the tool change position for vertical machining centers, while the Y- and Z-axis zero return positions often serve that function for horizontal machining centers. And almost any machining center equipped with a pallet changer will require one or more axes to be at its zero return position prior to activating a pallet change. Since certain machine accessories require axes to be located at the zero return position prior to activation, CNC programmers must often command axes to go to this position. FANUC has two G code commands that can be used for this purpose, G28 and G53. G28 is a bit difficult to explain and understand. It is a two-step command, meaning two things will happen when a G28 command is executed. First, the axes included in the G28 command will go to an intermediate position, then those axes will go to their respective zero return positions. MIKE LYNCH CNC CoNCepts, INC. Contact Mike Lynch on MMS Online at mmsonline.com/ experts/lynch.html. 62 MMS September 2013 mmsonline.com Both motions will be done at rapid. By the way, if you have the single block switch on, you must press the cycle start button twice to complete a G28 command—once to make the axes to move to the intermediate position and once to make them move to the zero return position. Since we normally want the machine to go straight to the zero return position (not needing the intermediate position), I like to use the following technique. If sending only the Z axis to the zero return position, I recommend: G91 G28 Z0 Note first that only a Z word is included in this command, so only the Z axis will be involved. The G91 (with Z0) specifies that the intermediate position is incrementally nothing in Z from the current position, so in the first step of G28, the machine will not move. In the second step, the Z axis will rapid to the zero return position. Here are a few more examples: G91 G28 X0 Y0 (Move nothing in X and Y, then rapid to zero return position in X and Y.) G91 G28 X0 Y0 Z3.0 (Move nothing in X and Y, and up 3 inches in Z, then rapid all three axes to the zero return position.) One concern about G28 is that it enables you to work in incremental and absolute mode. If you leave out the G91 by mistake, it is likely that the machine is currently in the absolute mode. Consider this command that would probably cause a crash (or near crash): G28 Z0 If the current positioning mode is absolute, this command tells the machine to rapid to program zero in Z, possibly causing a crash, then to rapid to the zero return position. G53 is much easier to understand and use. It is a simple motion command, like G00 or G01, but with G53, the origin for the motion is the machine's zero return position and the motion will

Articles in this issue

Links on this page

Archives of this issue

view archives of Modern Machine Shop - SEP 2013