In UGS when you press return to zero, it will return to the machine zero. But when you reset zero it resets your work zero. so if you want to use the return zero to reset the machine where you are setting your work zero at, here is what I do:
start UGS and unlock controls.
Set the position you want your work zero to be.
reset zero ( that will reset your “work” zero)
shut down UGS and restart it.
unlock controls again and look at both work and machine zero locations should be set to 0 an all axis. if not repeat previous steps.
Now for me, I work in inches so I give a command G20 and test the travel before I start a project because UGS like to revert back to mm for me! And to test me travel I just set the travel distance to 1" up z axis and measure it, then back down z axis and should be back to zero.
heheh, OK, that’s what I started experimenting with after my part came out in the wrong location. I guess my question should have included “is there a better way to reset machine position without closing and opening UGS”
I’m also going to go through the machine again and make sure everything is tight and has thread-lock, I don’t really expect to find anything loose as the part looked great, just in the wrong location
when you open UGS it does read 0,0,0 but after you move it to your work zero there is no way to reset your machine zero other that to shut it down and restart it after you have positioned you machine where you want the work to start. and there is no way that I know of to send your machine to work zero except to manually do it with the move controls.
Ok, the code does look a little goofy, but we can work with it.
What I usually do when using UGS to control the machine is issue commands to set the work zero.
I go through this process:
Home the machine with $H if it has homing switches
Jog to the position I want as my work zero
Issue the command G10 L20 P1 X0 Y0 Z0
Issue the command G54
What that does is tell the Arduino that I want the G54 coordinate system’s origin to be where my tool is right now and that I want all code the follows in the program I load to be based on the G54 coordinate system.
Try going through those steps, issuing a $# command and then take a screenshot and post it here please.