CNC Machine Programming: Dealing with Spindle Probe Results in Real Time
2023年 06月 28日
There are two general types of machining center spindle probe applications: those that can be handled separately from the machining G code program and those that cannot.
Consider, for example, the need to measure a program origin in each axis and enter the results into fixture offset registers. This is done one time per setup, and the G-code program that machines the workpiece need not be involved.
The more challenging case is when probing results must be dealt with in real time during the execution of every CNC cycle and from within the G-code program. It can be especially problematic if you are using a CAM system to generate G-code programs since some CAM systems are not designed to generate probing commands, let alone deal with the results of probing.
There are at least four situations in which machining center spindle probes can help in real time.
Spindle probe manufacturers provide a series of special programs (such as custom macros for FANUC controls) designed to get probing results. A simple calling command can, for example, tell the probe to find the location of a surface in any axis, the width of a slot, the height of a boss, the center of a hole, etc. Some CAM systems are designed with probing in mind and can create the necessary custom macro calling commands.
Even so, you will still be on your own to deal with the results the probe provides. Take a lesson from probe manufacturers: Don’t incorporate all of the related logic and motion commands into your G-code program. Instead, create your own series of custom macros to deal with probing results. This will minimize the number of commands you must include in your RCMX Insert machining programs and keep you from duplicating effort when similar actions must be taken on multiple workpieces. One error-trapping custom macro, for instance, may work for any number of machining programs.
With FANUC custom macros, probe manufacturers store probing results in #100 series common variables. Consider, for instance, a cast surface that is varying in the Z (depth) axis from one workpiece to another. After probing, this Z position may be stored in common variable #133. Let’s say that this cast surface is supposed to be 1.1 inch above the program zero surface (finished to 1.0 inch), but it varies between 1.05 to 1.3 inches. After probing, the value of common variable #133 will range from 1.05 to 1.3.
After the machining program probes the surface, your simple calling command could look like N200 G65 P9501 V#133 B1.3 S1.05 Z1.0 Q0.05, where:
There could be more input variables depending on the application, such as those related to the shape of the surface to be machined if it is not generated by the CAM system. The calling command must provide the rough machining custom macro with the information needed to appropriately perform the roughing operation, regardless of how many passes are required.
The Cutting Carbide Inserts Blog: https://dzkcqy916.isblog.net
