Hello Guest it is August 20, 2019, 03:18:56 PM

Author Topic: Gcode mishaps  (Read 4472 times)

0 Members and 1 Guest are viewing this topic.

Re: Gcode mishaps
« Reply #10 on: April 04, 2016, 07:58:00 PM »
i have noticed at the end of the file run the cnc wants to go in the minus direction where it should be going to zero and stopping

Offline Tweakie.CNC

*
  • *
  •  7,884 7,884
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Gcode mishaps
« Reply #11 on: April 05, 2016, 02:19:15 AM »
Your Gcode is shambolic (to say the least) but it does work.

I am assuming…

1) Your Mach3 settings are such that a +Z command moves the tool away from the work and a –Z command moves the tool towards the work.

2) You are setting Z0.0000 as being the top surface of the work.

Is this the case ?

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Gcode mishaps
« Reply #12 on: April 05, 2016, 05:20:18 AM »
Yes
Re: Gcode mishaps
« Reply #13 on: April 05, 2016, 08:00:42 PM »
kharrisonkevin, have you successfully run any other programs (before or after the program you posted) ?
With you saying you have to start at line 6 and you also said the program "misbehaves" at the end, its kind of pointing to the g54 and g53 (work shifts and home).

What happens if you change the beginning to:
Code: [Select]
N01 G20 G40 G49 G91.1
N02 G0
N70 G28 G91 Z0.
N71 G90
(Machine Setup - 1  Facing)
(FACING)
N03 T1 M6
N04 S32 M03
N05 G54
N76 X0. Y0.
N06 G43 H1 Z1.

And change the end to:
Code: [Select]
N63 G28 G91 Z0.
N64 G28 X0. Y0.

Try stepping/running through the program in single block mode and post what happens and at what line number when the machine misbehaves.

_


« Last Edit: April 05, 2016, 08:17:27 PM by iMisspell »
~ What was once an Opinion, became a Fact, to be later proven Wrong ~
Re: Gcode mishaps
« Reply #14 on: April 06, 2016, 08:44:05 PM »
How do I set mach3 to run 1 line at a time. I started to run with your changes and at the first few lines it wanted to go down to.-1657 then up but with not being able to just run 1 line at a time it goes through the code lines so fast I can't document it for you to be precise.
Re: Gcode mishaps
« Reply #15 on: April 07, 2016, 05:59:39 AM »
When I push the single blk the machine does not move on any line of the gcode
Re: Gcode mishaps
« Reply #16 on: April 07, 2016, 09:08:09 AM »
When I push the single blk the machine does not move on any line of the gcode
Keep the single block button active like you are.

Then hit the cycle start button. Ever time you hit the cycle start button mach should read one line of your program and stop. Then you will have to hit the cycle start button again to make Mach read the next line.

Is this the first program you have tried to run ?

.
~ What was once an Opinion, became a Fact, to be later proven Wrong ~
Re: Gcode mishaps
« Reply #17 on: April 07, 2016, 09:18:02 PM »
I run your add in here is what happened. N70G28G91Z0 went below zero
N71G91 went to Z-2.1696
N06 G43H1Z1 went to Z+1.0001
N07 M10 Noth happens
N08 Z0.2 went to Z+.10001
All the Y movements were correct the X was short by -002
N62 Mo5 nothing happened
N63 G28 G91 Z0  z went to Z-2.1696
N64 G28X0Y0 machine stopped for no reason and no estop at
X +4.2067 Y+7.6598 Z-2.1696
Re: Gcode mishaps
« Reply #18 on: April 08, 2016, 05:36:34 PM »
It's runs perfect for the y axis but the x axis is not running at the correct gcode it is  0025 is out even in 2 runs of the same gcode. The z axis at the start and the end is all wrong but throughout the gcode run it is stay at -.001 so that is correct  . But what is going wrong with my program or the cutting sequence?
(No subject)
« Reply #19 on: April 08, 2016, 08:33:14 PM »
Well kharrisonkevin, thats about all the trouble shooting i can offer. I do not know the Mach software (have a back round using/running commercial cnc controls ),  but with the g53 and g28's working the same ("wrong") i would guess its something with how the home position is set up, which is why ive asked if you have run any other gcode programs.

Hopefully with the info you have provided, someone with a Mach background will be able to help you.

-
~ What was once an Opinion, became a Fact, to be later proven Wrong ~