I am trying to do c code when adding a button. I want to add three buttons one to move x to 0 one to move y to 0 and one to move z to -.75. I tried the move command but when I move to my zero position and reset the zero then the move command to zero moves the amount i zeroed out not back to the new zero position. Tried other commands and get undeclared error messages.

This should be easy i move axis to zero location with arrow buttons then press zero for all axis then after machine runs a program I want the user buttons to bring x and z back to zero. I use a .75 block to adjust z zero then move off the work piece and lower the z .75 and reset zero. I would like a button so I don't have to use the arrow buttons 12 times.

Joe