Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 05:29:45 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Screen designer tips and tutorials
| | | |-+  Buttons that execute g-codes
Pages: 1   Go Down
Print
Author Topic: Buttons that execute g-codes  (Read 609 times)
0 Members and 1 Guest are viewing this topic.
tj1988
Active Member

Offline Offline

Posts: 5


View Profile
« on: August 17, 2010, 04: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, 04:14:06 PM by tj1988 » Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,476



View Profile WWW
« Reply #1 on: August 17, 2010, 05:29:07 PM »

You didn't say how you've configured the buttons??
Logged

tj1988
Active Member

Offline Offline

Posts: 5


View Profile
« Reply #2 on: August 17, 2010, 05: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.
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,476



View Profile WWW
« Reply #3 on: August 17, 2010, 07: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
Logged

tj1988
Active Member

Offline Offline

Posts: 5


View Profile
« Reply #4 on: August 17, 2010, 08:59:18 PM »

Thank you!
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!