Search the Community
Showing results for tags 'G-code related questions'.
-
One of the nuances of my new Makino PS95 VMC is that I need to type in the probing routines manually, which is a bit of a pain. I am a little spoiled with the Haas probing routines and the ability to just select the routine from a menu. The A51 with the Pro5 control is pretty much the same. If I want to probe the corner of a part in the PS95 I need to jog to the X position and enter the routine (N50 G170 X0. S1), then jog to the Y position and do the same, then the same with the Z position. I would like to set up one of my available M codes to call a macro that will do all of these with one command. This is a macro that I plan to write. The macro routine for probing X, Y, and Z surfaces is O9511. So to probe X, the call would be G65 P9511 X0. S1 (for G54). The issue I am running into is that this macro, along with the protected positioning macro (9510) require that a length offset be active (G43 H1) otherwise the machine will alarm. Is there a way to activate a length offset without moving the probe? If I run the program as follows the machine wants to move the probe to Z0. with respect to the active work offset: G43 H1 Z0. G65 P9511 X0. S1 (probe x surface, setting G54 x offset) The program I had in mind is something like this: (jog probe to corner of part, .25" above) #100 = 5 (X width) #101 = 4 (Y width) #102 = -.5 (Z drop) G65 P9510 X[#100/2] Y[-#101/2] F100. (position to center of part) G65 P9511 Z0. S1 (set G54 Z offset) G65 P9510 Y[#101/2+.4] (jog to position for probing Y offset) G65 P9510 Z-[#102] G65 P9511 Y0. S1 (probe Y offset) G65 P9510 Z#102 G65 P9510 X[-#100/2-.4] Y[-#101/2-.4] (position for probing X offset) G65 P9510 Z-[#102] G65 P9511 X0. S1 (probe X offset) M30 Bear in mind that I am very new to this and I realize I probably made a dozen syntax errors and omissions in the above program. The end result I am after is a program that will probe the XYZ locations of a part with one program call such as G65 P9xxx X5 Y4 Z-.5. Any help or advice is much appreciated. Thanks, Bob
Join us!
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.