What's new
What's new

Yet another G52 question!

Atomkinder

Titanium
Joined
May 8, 2012
Location
Mid-Iowa, USA
Machine: Fadal VMC2216 CNC88HS Format 1

Question: The part I'm programming is pretty short, and it needs to sit with only about 1/8" in the vise. It's pretty much a mirror image part, and so I want to machine one side at at a time so it can simply be flipped and won't mill away a stop sitting on the left side (right side out of the vise). To do this I'd like to use a G52 to shift the X axis .05" and back again after an M0, but I have no experience using G52. Does it need to be canceled or will calling the work offset (E* in this case) cancel it again? Tried searching the forums, but most of what I come up with is examples for shifting work coordinates for multiple parts. Only making one of these right now but I don't want to program it again if we make more.
 
So, in use, something like:

G0G90E0H0
T1M6
G52X.05
E1X2.Y.5S3000M3
Z.1H1
G1Z-.5F20.
Y-.5
G0Z1.
G53Z0
G52X0
M0 (Flip Part)



Etc? Just need to solidify this in my mind before I jump into it, whether it needs to (or can be) be in there before or after the work offset, etc.
 
I don't think you need the 53 , but it probably wound't hurt, I almost never use either 52 or 53

If you want to repeat a cut use a subprogram and just move the fixture

L100***(CUT TOP)***
G1Z0F60.
X-4.
G0Z.1
M17
M30
*******(MAIN PROGRAM)*****
T1 M6
G0G90S8000M3***( 1/2 ENDMILL)***
X0Y0E1
G43H1Z.1M8
L101
G0M5M9
G49Z0
X0Y0E0
M0***(FLIP PART)
G0G90S9000M3
X0Y0E2***(MAKE THIS .05 DIFF THAN LOC OF E1)***
G43H1Z.1M8
L101
G0M5M9
G49Z0
X0Y0E0
T1M6
M2
 
The L100 sub is just an example, you could have anything in there that you want to repeat

In your case

L100
G1Z-.5F30.
Y-.5
G0Z.1
M17
 
I don't want to use a sub, and I don't want to use multiple offsets. If anyone winds up running this program I don't want them to have to use multiple offsets, just the one and go for it, hence G52 in the program, less muss less fuss for an operator.

Edit: a lot of this is being done so that it conforms with how many of the existing programs look and so that they fit with minimal confusion the format that the previous programmer left. A lot of his programs are awful, but mostly in terms of speeds, feeds and general machining ability. Setups are good if his sheets are readable ;)
 
Multiple offsets or repetitive code..hum... but I get ya, bad habits are hard to break..speaking of...Beer time:cheers:

At least he left setup sheets :)
 








 
Back
Top