Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jeffmorris on September 26, 2008, 04:18:55 PM

Title: Command to move Z-Axis -0.8500?
Post by: jeffmorris on September 26, 2008, 04:18:55 PM
How do I set up a command to move Z-Axis -0.8500?
Title: Re: Command to move Z-Axis -0.8500?
Post by: Hood on September 27, 2008, 03:23:52 AM
Not sure I follow, are you just asking how to move an axis to that position? if so the MDI line will do it for you G1 Z-0.85F10 or G0Z-0.85
Hood
Title: Re: Command to move Z-Axis -0.8500?
Post by: jeffmorris on September 27, 2008, 05:17:21 AM
I tried G0Z-0.85 but the Z-Axis kept on going. I need the command to move Z-Axis 0.85 inch down because I had to make 60 steam locomotives and 60 cabooses for 30 centerpieces at the program for mentally handicappied people. I cut out two locomotives and two cabooses from 12 inches by 16 inches pieces of 1/4" birch plywood before changing pieces of plywood because my CNC router has working area of 17 inches by 20 inches. If I had a CNC router with working area of 24 inches by 48 inches, I would cut out 24 locomotives and 24 cabooses before changing pieces of plywood. When my CNC router is finished cutting out locomotives and cabooses, the Z-Axis moves 0.85 inch up and I need to move Z-Axis 0.85 inch down after changing pieces of plywood. I had to call up the jogging control (TAB key) to move Z-Axis 0.85 inch down.
Title: Re: Command to move Z-Axis -0.8500?
Post by: Hood on September 27, 2008, 06:07:48 AM
Sounds like you may have your axis moving the wrong way.
 Do you have home switches?  If so where is your home position in relation to each axis, ie is Z fully up? X fully left? Y fully towards you?

Hood
Title: Re: Command to move Z-Axis -0.8500?
Post by: jeffmorris on September 27, 2008, 10:41:17 AM
I have home switches on X-Axis, Y-Axis, and Z-Axis. X-Axis and Y-Axis home position is at 0,0 which is on the left corner of my CNC router nearest me. Z-Axis "home" position is at its upper position. Is there something that I place on workpieces and move Z-Axis until the router bit touches the workpiece and stop?
Title: Re: Command to move Z-Axis -0.8500?
Post by: Hood on September 27, 2008, 10:59:27 AM
Do you have Auto Zero enabled in Homing and Limits?
 If so then when you home the machine coordinates should all be zero. You can then jog each axis to your materials zero position and press the Zero Axis buttons for X Y and Z. This sets the work offset as X0 Y0 Z0, the Z zero is normally the top of your material thus if you command a G0Z1 it should move to 1 in above your material, commanding a Z negative move would vbe cutting into your work.

Hood
Title: Re: Command to move Z-Axis -0.8500?
Post by: jeffmorris on September 27, 2008, 11:11:53 AM
Auto Zero is enabled. How do I reset machine coordinates to 0,0,0 after homing the machine if something goes wrong with my machine? For example, I let the stepper motor move Z-Axis too far and I hear the "grinding" noise.
Title: Re: Command to move Z-Axis -0.8500?
Post by: Hood on September 27, 2008, 11:20:14 AM
If you home the machine the X Y and Z will be zeroed in Machine coordinates. If previously you have moved to your workpiece and pressed the zero button at the side of each DRO you have set up a work offset, you can verify this by pressing the machine coords button this will display the machine coords which will be the distance you have just moveed each axis, press the button again and you will be back to displaying your work offset coordinates (x0,y0z0)
 If for any reason you have lost position you just home again and then when you press the Go to Zero button it will move back to your Work offset X0Y0Z0.
 When you shut Mach down it will probably ask if you want to save the work offsets, if you choose Yes then the next time you switch on you Home then you can go back to the same X0Y0Z0 in work offset.

Hood
Title: Re: Command to move Z-Axis -0.8500?
Post by: scudzuki on September 27, 2008, 12:24:17 PM
Isn't there a command operator that specifies that the position move is incremental, not absolute?
Joe
Title: Re: Command to move Z-Axis -0.8500?
Post by: MarkC on September 27, 2008, 12:38:43 PM
G0 G91 Z-.85 should do it
make sure to do a G90 after it it's not in the program

Mark
Title: Re: Command to move Z-Axis -0.8500?
Post by: jeffmorris on September 29, 2008, 05:00:22 PM
Would G0 Z0 work after zeroing the Z-Axis on the first piece of workpiece?
Title: Re: Command to move Z-Axis -0.8500?
Post by: MarkC on September 29, 2008, 08:32:41 PM
G90 is absolute mode (will move to a certain position no matter where it starts) and G91 is incremental mode (moves a specified amount in a specified direction) so...
G0 G91 Z-.85 will move the z down .850". If G91 is still active G0 Z0 will do nothing (it's telling it to move 0") If G90 is active G0 Z0 will move the z to the position of z0.
Normally programming is done in absolute mode with incremental used for more specialized things

HTH

Mark