Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: kharrisonkevin on March 29, 2016, 06:47:44 AM

Title: Gcode mishaps
Post by: kharrisonkevin on March 29, 2016, 06:47:44 AM
Hi all I am far new to cnc ing. When I set my Z 0 in the work Cor and run a gcode it is supposed to go to -.001 to start cutting.  When I hit the start button the machine moves away up in the z+ direction and I have to hit the stop button.  Can anyone tell me why or is there a setting that I have to change. Another thing is that when I push go the z the x and y move first and I want the z to move first how do I change this.
Title: Re: Gcode mishaps
Post by: DazTheGas on March 29, 2016, 04:43:52 PM
Check your gcode theres prob a retract height set by the cam program to start from.

DazTheGas
Title: Re: Gcode mishaps
Post by: kharrisonkevin on March 29, 2016, 05:39:41 PM
Maybe I didn't say it right. But if something happens and I want everything to go to zero I want the z to move first
Title: Re: Gcode mishaps
Post by: DazTheGas on March 29, 2016, 05:57:47 PM
Not sure if you mean the goto zero, if so look in the screen load script for

Code: [Select]
---------------------------------------------------------------
-- Go To Work Zero() function.
---------------------------------------------------------------
function GoToWorkZero()
    mc.mcCntlMdiExecute(inst, "G00 X0 Y0 A0")--Without Z moves
    --mc.mcCntlMdiExecute(inst, "G00 G53 Z0\nG00 X0 Y0 A0\nG00 Z0")--With Z moves
end

DazTheGas
Title: Re: Gcode mishaps
Post by: kharrisonkevin on March 29, 2016, 06:02:18 PM
Is that how to get Z to move first when go to zero is called? If so how do I get to that page.
Title: Re: Gcode mishaps
Post by: kharrisonkevin on March 29, 2016, 06:18:18 PM
What I am saying is that as of now when I hit the go to zero button the Y&X move and go to zero. Then the Z axis moves to zero last. I need the Z to move first before the other axis so it clears the work piece.
Title: Re: Gcode mishaps
Post by: DazTheGas on March 29, 2016, 06:26:14 PM
From the main screen menu bar click on Operator->Edit Screen - this will open up the screen editor.

On the top left you will see the Screen Tree Manager, Highlight the uppermost in the tree.

Below in the properties tab click on the second icon with the thunderbolt through it.

From there you should see 4 scripts and the uppermost is the Screen Load Script, click this to reveal a button that loads the script in an editor.

You will need to be on line 204

change the gcode to what you require the goto 0 to do.

DazTheGas
Title: Re: Gcode mishaps
Post by: kharrisonkevin on March 29, 2016, 06:55:53 PM
Thanks I am new to this. I will need all the help I can get thanks
Title: Re: Gcode mishaps
Post by: kharrisonkevin on April 01, 2016, 07:48:26 PM
I tried to edit my screen but I can't get to the menu screen when I push the button Noth happens. Another problem that I am having is I keep getting a false e stop while trying to run a gcode or while running the code it stops responding and it freezes up. I have to restart the code running from the very start.any ideas what can be done to fix my problems.
Title: Re: Gcode mishaps
Post by: bob_at_pmdx on April 01, 2016, 10:48:34 PM
First, please confirm that you are running Mach4.  And what version of Mach4 are you running (go to Help->About)?  I ask only because I see other posts from you in March that mention Mach3. 

Second - what motion device/plug-in are you using?  Darwin parallel port?  Ethernet SmoothStepper? PMDX SmartBOB? PoKeys?  Something else?

"false estop" - when this happens are there any messages in the status line in the lower left of the Mach4 screen? Can you click on the "History" button and see any messages there?

Bob
Title: Re: Gcode mishaps
Post by: kharrisonkevin on April 02, 2016, 05:12:19 AM
I am running mach3 with a either netsmoothstepper.
Title: Re: Gcode mishaps
Post by: DazTheGas on April 02, 2016, 05:32:27 AM
This part of the forum is for Mach4, your best bet is to repost in the General Mach Discussion to get more response.

DazTheGas
Title: Re: Gcode mishaps
Post by: kharrisonkevin on April 02, 2016, 05:33:38 AM
Thanks