Hi,
. and we drive to the center of our workpiece and set all axis to zero... then we hit <ref all>... shutdown mach3, restart mach3... it should come up with mach3 displaying zero for all 3 axis?
No, as I said earlier Mach cannot save its position between sessions, or at least not directly.
For users who have a defined and repeatable home position, it works. If you have home switches then at each and every start-up you <Ref All> and that would drive to the home
switches and set the MACHINE COORDINATES to zero. You would now jog to the centre of the part and <Zero> each axis . Now the WORK COORDINATES would display zero and the G54 data
would reflect where the Work Zero is relative to the Machine zero. If you shut down properly the G54 should be saved on exit.
At the next session you power up and <Ref All> per normal, ie your machine drives to its exactly and repeatably defined Home location. Now you can MDI, using G54, to the Work Zero.
That would put the machine exactly back at the workpiece zero position. But note this requires the the machine be able to UNIQUELY and REPEATABLY go to its home position
You can see that all this absolutely requires that you can drive the machine, either manually by jogging or by using Home switches, to a defined location. If you can't do that you're screwed.
There are a couple of workarounds that will do what you want, but they are a distinct procedure. I used to do it myself years ago, and if you followed the procedure perfectly it worked,
forget even one step and it fails.
Then I fitted good Home switches and I've never had a problem since. Also with a good homing procedure, ie Home switches, then Soft Limits work properly and they have saved my ass countless times before,
and still do.
The procedure is:
1) Drive to the Work Zero point of the part in the vice.
2) <Ref All>, with Home in Place set on each axis
3) <Zero> each axis in turn. This should set G54 as 0,0,0. That is to say that prior to shutdown the Machine Zero is exactly coincident with the Work Zero, and therefore G54=0,0,0
4) Depower the machine.
At the next session:
1) Power up and Enable
2) WITHOUT JOGGING OR ANY OTHER MOTION <Ref All>. This, provided the machine has not moved at all since the last session, will put the Machine Zero exactly where you left off last time.
3) Either <Zero> each axis, this will put the Machine Zero coincident with the Work Zero. You could use G54, but if you followed the shut-down procedure then G54 should be 0,0,0, the two methods should
result in the exact same thing.
Craig