Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: oldcrowe on February 05, 2021, 01:05:28 AM

Title: NOOB with a gcode question...?
Post by: oldcrowe on February 05, 2021, 01:05:28 AM
So I am slowly wrapping my head 63 year-old head around Mach3 and gcode... but I have had something come up that I don't understand...

I was modeling a little plaque with some text to v-carve on my cnc router and get this gcode (it's 8000 lines- I won't paste the whole code!)
My questions are this: Line 14 is requesting tool #10- no problem. But when I re-choose "start" nothing happens... why?

So, I configured Mach3 to ignore tool changes, and it went past line N14, but hung up on N16... and there it's stuck.

So- why did it stick on N14, then why did it stick on N16?  Also, I chose "Mach3 ARCS inches" as my post processor- I didn't chose "Mach3 ATC" so why is it hanging at line N14 like its waiting for a tool change?

Is this a Vectric issue, or a Mach3 issue?

Help!!

Thanks for your time!
Oldcrowe

( V-Carve 1 )
( File created: Tuesday February 02 2021 - 08:50 PM)
( for Mach2/3 from Vectric )
( Material Size)
( X= 9.000, Y= 3.750, Z= 0.753)
()
(Toolpaths used in this file:)
(V-Carve 1)
(V-Carve 2)
(V-Carve 3)
(Tools used in this file: )
(10 = V-Bit {60.0° - 1/2"})
N120G00G20G17G90G40G49G80
N130G70G91.1
N140T10M06
N150 (V-Bit {60.0° - 1/2"})
N160G00G43Z0.8000H10
N170S12000M03
N180(Toolpath:- V-Carve 1)
N190()
N200G94
N210X0.0000Y0.0000F50.0
N220G00X1.3323Y3.4693Z0.2000
N230G1Z-0.0507F15.0
N240G1X1.3320Y3.4653Z-0.0506F50.0
N250G1X1.3317Y3.4495Z-0.0478
N260G1X1.3316Y3.4195Z-0.0394
Title: Re: NOOB with a gcode question...?
Post by: TPS on February 05, 2021, 01:41:25 AM
if you are not working with toolchange and tool length compensation you can delete line N140 and N160 completly.
Title: Re: NOOB with a gcode question...?
Post by: oldcrowe on February 05, 2021, 01:53:57 AM
Great!  Thanks!  But... is there a simple explanation as to why they are even there?  Did Mach3 put them there, or did Vectric?
Title: Re: NOOB with a gcode question...?
Post by: TPS on February 05, 2021, 01:56:04 AM
Vectric did.

N140 is the code to initiate toolchange
N160 is the code to activate tool length compensation
Title: Re: NOOB with a gcode question...?
Post by: oldcrowe on February 05, 2021, 01:57:51 AM
Thanks so much.  I'll check my Vectric settings to try to fix these...
Thanks again!
Title: Re: NOOB with a gcode question...?
Post by: ZASto on February 05, 2021, 05:39:19 AM
You should choose a post processor which does not generate ATC code, from top of my head Mach2/3_arc_mm or Mach2/3_arc_inch (I'm not near the computer that I have Aspire on)
Title: Re: NOOB with a gcode question...?
Post by: oldcrowe on February 05, 2021, 01:11:45 PM
Thanks @ZASto-

But that brings up another quandary-

That code was generated by exactly what you mentioned-  "Mach3 arcs inches"  so I don't know how the tool change command got in there...

Title: Re: NOOB with a gcode question...?
Post by: ZASto on February 05, 2021, 01:47:41 PM
Well, I guess that there are some lines in the post processor that should be removed.
put this modified post processor in your %programdata%/vectric/..../PostP (or My_PostP) folder.
I commented the offending/un necessary lines.