Hello Guest it is March 29, 2024, 09:54:07 AM

Author Topic: Problems saving Gcode from write wizard  (Read 3641 times)

0 Members and 1 Guest are viewing this topic.

Problems saving Gcode from write wizard
« on: December 28, 2015, 01:06:21 PM »
Hello all.  I have been using Mach 3 for a few years, and thankfully had very few problems.  Pretty much all of the programs I wrote for machining and engraving I have been running for 2 years.  Recently, I started a new part and am having a problem. 

When I create an engraving code using the write wizard, it generates fine.   I run a test run and everything works.  However, after I save the code, close Mach 3, and restart it, I get problems when I try to run the same code.  The engraving starts out fine, but then starts going in big circles. 

Today, I created code for 1 word as a test.  Everything was fine.  Ran the code, worked fine. Saved the file.   Printed a copy of it.  Closed mach 3, then restarted.  Opened the same file and got the first few letters before it started going in big circles.  I printed a copy of this code. I closed that code, and created a new file using the wizard.  It ran fine.  I then compared the new file to the 2 printed copies and all 3 were exactly the same.

Any ideas?  I have a licensed copy if that makes a difference.
Re: Problems saving Gcode from write wizard
« Reply #1 on: December 28, 2015, 01:56:35 PM »
That does sound weird.
Do the big circles show up in the Toolpath view ?
Can you post that one word test file ?
I'd like to try it.

Strange indeed.

Russ
Re: Problems saving Gcode from write wizard
« Reply #2 on: December 28, 2015, 02:53:18 PM »
Well, I didn't find the problem, but I did find a solution.   The circles do show in the tool path view, and it appears that the G02 lines were the ones that caused the circles.

When I reopen mach 3, if I go to the write wizard and just create a file of a few letters, click write so the code generates and takes me back to the program run screen.  Then close code, and open my saved engraving file, it works fine. 

So apparently the write wizard changes some default setting I have in mach3. 
Re: Problems saving Gcode from write wizard
« Reply #3 on: December 28, 2015, 03:32:06 PM »
You may be altering the IJ mode upon Initialization.

Should be set to Incremental.
Absolute will produce circles.
Re: Problems saving Gcode from write wizard
« Reply #4 on: December 30, 2015, 09:37:34 PM »
It turns out I was using a different font for the new engraving (helvetica).  It uses G02 and G03 where the font I was using before (monotxt) doesn't.   I added a G90.1 line to the the code generated by the write wizard, and it seems to have solved the problem.  I can now open mach and load the saved code (after adding the G90.1) and it runs properly.

What setting was the write wizard changing in mach so that it could leave the G90.1 out of the code? 
Re: Problems saving Gcode from write wizard
« Reply #5 on: December 30, 2015, 10:45:41 PM »
I doubt that the wizard was changing anything. 
You probably have Mach configured to default as Absolute for the arcs.
You can change it on the gen config screen.
Re: Problems saving Gcode from write wizard
« Reply #6 on: December 30, 2015, 10:57:01 PM »
Thats it.  I just opened mach, checked and it was set to Inc by default.  

After I create a file with the write wizard, I checked and it had changed to absolute.  

But that seems opposite of what you wrote above.  I get circles when the IJ mode is set to Inc.  Absolute works like it should.  I even changed the IJ setting back and forth a few times with the same code loaded to verify.

Thanks! Everything is working like it should now.  
« Last Edit: December 30, 2015, 11:02:53 PM by stroupe »
Re: Problems saving Gcode from write wizard
« Reply #7 on: December 30, 2015, 11:24:12 PM »
Learn somethin every day ....

I never saved a Helvetica file then reopened it before.
It does the same here as yours.

The IJ mode is changed in that font macro. I'll edit it out and see what happens. (not sure which is 0 and 1, but assume 0 is abs and 1 is inc)

Thanks for the lesson,   :)
Russ
Re: Problems saving Gcode from write wizard
« Reply #8 on: December 30, 2015, 11:59:00 PM »
There is another place in the macro where the IJ mode is manipulated, but I can't make sense of it.

Always worked fine in Inc. mode when it writes directly to Mach. But it seems to save the file as Abs.

Sort of a weird one, but it,s not lonely.  :)

You know what's happenin now anyway.

Cheers,
and HNY