91ÊÓÆµÍøÕ¾ÎÛ

Published

The Best Point of Reference for Program Zero Assignment Entries

Correctly specified program zero assignment and coordinate position values enable the CNC to determine how far to move the cutting tool during each positioning motion.

Share

Leaders-In background

The task of program zero assignment varies among CNC manufacturers and machine types, but the basic concept remains the same: By one means or another, the CNC must be told where the program origin is located. Programmed coordinates are usually specified from the program origin. With correctly specified program zero assignment and coordinate position values, the CNC can determine how far to move the cutting tool during each positioning motion.

With FANUC-controlled machining centers, workpiece coordinate system setting offsets (more commonly called fixture offsets) are used to specify program zero assignment values. With turning centers, geometry offsets are used for the same purpose.

It is not commonly known that FANUC — and other — CNCs enable users to specify the point of reference from which program zero assignment values are specified. Rest assured that programmed coordinates remain the same, regardless of where this point of reference is located — so if you decide to change it, existing programs require no modification.

The default point of reference for FANUC CNCs is the machine’s reference position — commonly called the home position. Since the machine’s reference position is commonly located close to the positive overtravel limit in each axis, the resulting program zero assignment value for each axis will be negative. And since there is no relationship between the program zero point and the machine’s reference position, the resulting program zero assignment values will have no logical meaning — often carrying out to four decimal places, like -15.1837, when using the Imperial measurement system (three places if using the Metric system).

For machining centers, shifting the point of reference for program zero assignment with a FANUC CNC involves the workpiece coordinate system setting the common offset — offset number zero. As with any fixture offset, there will be one register for each axis. If each contains a value of zero (the default condition), the machine’s reference position is the point of reference for program zero assignment. Any value placed in a common offset register will shift the point of reference from the reference position to the new point of reference.

There are times when using the machine’s reference position as the point of reference for program zero assignment values is just fine. For machining centers, this is most commonly when setups are unqualified. That is, there is no way to accurately determine where the location of program zero will be until the workholding setup is complete. For turning centers, it is when all — or most — cutting tools are replaced from job to job. In these cases, it really doesn’t matter where the point of reference is located. Measurements must be taken to determine program zero assignment values. But consider some other situations.

Look at the sub-plate shown in Figure 1. The location holes are all in known positions relative to one another. With component tooling, we can easily calculate the distance from the lower-left location hole to the program zero point in the X- and Y-axes. If we shift the X- and Y-axis point of reference to this location hole (by entering the distances from the reference position to the lower-left location hole into the X- and Y-axis common offset registers), program zero assignment values will make sense, and we can easily calculate them. Similarly, we can shift the Z-axis point of reference to the top of the sub-plate to make the Z-axis program zero assignment value easy to calculate. Using a G10 data setting command, we can then enter these values into their appropriate registers from within the program. This eliminates the task of program zero assignment from the list of things a setup person must do.

Photo Credit: CNC Concepts Inc.

Similar techniques can be used with rotary devices. With a horizontal machining center, for instance, shifting the X- and Z-axis point of reference to the center of rotation — and the Y-axis point of reference to the table-top — will enable the user to calculate program zero assignment values from a known position on the fixture being used to hold the workpiece(s). Entering them with G10 commands, again, eliminates the task of program zero assignment during setup.

Shifting the point of reference for determining program zero assignment values on turning centers is done somewhat differently — and for a different reason having to do with cutting tools that remain in the turret from job to job.

The X-axis program zero point will always be the centerline of the workpiece/spindle. It does not change from job to job. So, X-axis program zero assignment values determined for one setup will remain the same for any cutting tool left in the turret for the next job.

On the other hand, the Z-axis program zero point will be a function of workpiece length if the finished end of the workpiece opposite the workholding device is chosen as the program zero point — as it often is. If we specify all Z-axis geometry offsets from the machines Z-axis reference position to a consistent surface (like the chuck face), we can then use a workpiece coordinate system offset (also called a work shift offset on turning centers) to shift the Z-axis program zero point from the chuck face to where program zero is located on the workpiece, like the right end of the finished workpiece. After doing so, and if all cutting tools remain in the machine from job to job, only the work shift value must be redetermined and reentered.

MMS Leaders in CNC Machining

Related Content

CNC Tech Talks

2 Secondary Coordinate Systems You Should Know

Coordinate systems tell a CNC machine where to position the cutting tool during the program’s execution for any purpose that requires the cutting tool to move.

Read More
CNC Tech Talks

6 Variations That Kill Productivity

The act of qualifying CNC programs is largely related to eliminating variations, which can be a daunting task when you consider how many things can change from one time a job is run to the next.

Read More

5 Reasons Why You Should Know How to Write Custom Macros

Custom macros enhance what can be done in G-code programs, giving users the ability to code operations that were previously not possible.

Read More
CNC Tech Talks

CNC-Related Features of Custom Macro

CNC-related features of custom macro are separated into two topics: system variables and user-defined G and M codes. This column explores both.

Read More

Read Next

Top Shops

Machine Shop MBA

  Making Chips and 91ÊÓÆµÍøÕ¾ÎÛ are teaming up for a new podcast series called Machine Shop MBA—designed to help manufacturers measure their success against the industry’s best. Through the lens of the Top Shops benchmarking program, the series explores the KPIs that set high-performing shops apart, from machine utilization and first-pass yield to employee engagement and revenue per employee.  

Read More
Automation

AMRs Are Moving Into Manufacturing: 4 Considerations for Implementation

AMRs can provide a flexible, easy-to-use automation platform so long as manufacturers choose a suitable task and prepare their facilities.

Read More
Economics

Last Chance! 2025 Top Shops Benchmarking Survey Still Open Through April 30

Don’t miss out! 91ÊÓÆµÍøÕ¾ÎÛ's Top Shops Benchmarking Survey is still open — but not for long. This is your last chance to a receive free, customized benchmarking report that includes actionable feedback across several shopfloor and business metrics. 

Read More