Hello Guest it is March 28, 2024, 01:05:25 PM

Author Topic: Buttons that execute g-codes  (Read 5295 times)

0 Members and 1 Guest are viewing this topic.

Buttons that execute g-codes
« 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
« Last Edit: August 17, 2010, 05:14:06 PM by tj1988 »

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Buttons that execute g-codes
« Reply #1 on: August 17, 2010, 06:29:07 PM »
You didn't say how you've configured the buttons??
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Buttons that execute g-codes
« Reply #2 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.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Buttons that execute g-codes
« Reply #3 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
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Buttons that execute g-codes
« Reply #4 on: August 17, 2010, 09:59:18 PM »
Thank you!