Machsupport Forum

Mach Discussion => Mach Screens => Screen designer tips and tutorials => Topic started by: tj1988 on August 17, 2010, 05:10:35 PM

Title: Buttons that execute g-codes
Post by: tj1988 on August 17, 2010, 05:10:35 PM
Hi,

I am desigining a screen with several buttons that will execute G0 codes for rapid linear motion. However, I cannot get my CNC motors to move rapidly, amd it behaves the same as G1 and it is determined by the feed rate.

When I enter G0 manually in the MDI, or run a text file containing G0, it works in both cases.

Any help on this issue would be very much appreciated.

I am using MachScreen V 1.43.3
Title: Re: Buttons that execute g-codes
Post by: ger21 on August 17, 2010, 06:29:07 PM
You didn't say how you've configured the buttons??
Title: Re: Buttons that execute g-codes
Post by: tj1988 on August 17, 2010, 06:52:41 PM
Hi Gerry,

The button simply executes a G-code, G0Z.5G1X.5. I want the Z to travel with rapid position (G0) and the X to travel with linear motion at feed rate (G1).

I'm sorry if i'm not being clearer, I'm new to this!

Thanks again.
Title: Re: Buttons that execute g-codes
Post by: ger21 on August 17, 2010, 08:15:23 PM
You can't have G0 and G1 on the same line. Move the Z first, then the X.

G0 Z0.5
G1 X1.5
Title: Re: Buttons that execute g-codes
Post by: tj1988 on August 17, 2010, 09:59:18 PM
Thank you!