Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

PixelCNC Has Moved: deftware.org

CAM software developed by artists for artists to create unique and original works on a 3-axis CNC router or mill. · By Deftware

Mach3 metric post didn't work..

A topic by eric berg created Jul 09, 2020 Views: 326 Replies: 10
Viewing posts 1 to 8

I need to sort out why the post you generate for mach 3 metric ran out in X   .   

BOLD copy pasted the header from one of my other programs to make it work.


program ran fine like that and ended.



%
O0001(TABLEDECKOUTER)
(MACHINE: MACH3.M3)
(RUNDATE: 1/5/2020 TIME: 10.31.33 AM)
G00 G17 G71 G40 G80 G90 M05 
 
T02 M06
G00 G90 G54 S17000 M03

*( Generated by PixelCNC v1.43a )
( Post: Mach3 Metric.txt v1.10 )
G21 G90 G91.1
( Spindle: CW 17000 )
M3 S17000
( operation01 1mmball )
G0 *

Z44.00
X199.99 Y0.01
G1 Z19.00 F350
X199.62 F600
X198.44
X197.27
X196.10
X194.93
X193.76
X192.58


.

.

.


X198.19
X198.63
X198.97
X199.46 Z18.88
X199.76 Z18.90
X199.89 Z18.98
G0 Z44.00
( Spindle: STOP )
M5
( End Program )
M30

Developer

Hi Eric, thanks for the feedback! What controller are you running exactly?

I think it might be the addition of the G40, which disables cutter compensation, that might be what you're needing with your controller. I'll throw that into the Inch/Metric posts for the next update if you could try adding it to the beginning of a fresh PixelCNC mach3 G-code program and see if that solves the issue you're seeing.

(+1)

I'm running Mach3 at home.   w a 2' x 3'  table.   a 60 90 from china  nice place in Chicago.   I would have to look at the board/mfg to tell you more.


I'm a professional prototyper in the bay area.  At work i use Haas mills and Surfcam, but at home i'm doing  topo maps and stuff and my pro software doesn't handle STL files well and doesn't do nice heightmapping like your system.  easiest 180.00 i ever spent.

I hadn't had the time to pick out what might have caused the issue.    in mach3 display the toolpath just went off positive in x for ever.


i'll add in that g40

in 25 years anytime i've needed to modify a post, i had to relearn it.  as I've needed to do that about once every 3 years.


oh.. and took some digging but I found a nice gray scale  mapper that is much easier to use then the USGS

might want to pin it.


https://tangrams.github.io/heightmapper/#11.375/39.0487/-122.8176

Developer

Hey, that's a really great site for grabbing heightmaps!

Oh I see, it's drifting off to the side indefinitely. It could be that it's somehow not switching to absolute coordinates, so each absolute X coordinate just sends it off further and further down the X axis, in spite of the G90 that the Mach3 post includes at the beginning of the G-code. Maybe the controller is expecting it with some other G/M codes somehow. It seems like it could just be something finicky with the controller like that. Whatever it is I'd really like to know what it is and work in a fix - understanding the what/why of it.

It could very well be something else too, like the G40. There's no telling what the issue is without some trial-and-error just messing around with it. It could even have something to do with the lack of a "start read" character, the % line. I'd suggest trying removing that first line from the  working G-code and see if it still works, or if its presence is inconsequential.

PixelCNC's posts are relatively simple, I tried to keep all the cruft out and avoid over-complicating anything with features and vernacular nobody ever uses 99.99% of the time. The most complex part are the codeblock definitions at the bottom where it references different variable names/states within the block's string of characters. You could really just directly replace PixelCNC's program prefix codeblock with the one that works for you, but knowing why the Mach3 post isn't working with your 6090 controller would be much more useful to others in the future. That way I can work in a fix without breaking Mach3 support for other controllers that the posts already work for.

Thanks!

below is the cnc.


I will sort out which code is causing this and report back over the weekend.







https://www.automationtechnologiesinc.com/products-page/entry-level-machine-cnc-router/3-axis-kl-6090-desktop-cnc-router-24-x-36-inch-3hp-water-spindle/

Well,  Strange things happen..


I can cut past the top of my post from my pro software and just run that in place of your top.  but if i load and run, stop a program with an old top, I can then load the post you make and it loads and runs fine.


hmmm

OK,     it is the G91.1

I put // on that line  all is fine.


CodeInches "G20" // inches mode (Inches/Metric determined by Units above ^^^)
CodeMetric "G21" // metric mode
// Distance modes
CodeAbsolute "G90" // absolute distance coords
//CodeRelative "G91" // relative distance coords

// Spindle
CodeSpindleCW "M3"
CodeSpindleCCW "M4"

Developer

That's rather confusing. You say that you commented the CodeRelative "G91" line from the post-processor but the G-code you're outputting doesn't even have a G91 in it - it's using the CodeAbsolute/G90. There's a G91.1 that's being included via the PrefixBlock but that's a different code altogether and only applies to arc/helical motion command coordinates (which PixelCNC doesn't generate yet, just linear feeds and rapids right now).

I have a feeling that what "worked" was something else other than commenting out the CodeRelative line, because that should have no impact on the G-code that's output. I'd investigate further and compare the G-code that is actually being generated. Compare a program generated with and without the CodeRelative line commented out in the post, because they should really just be identical  due to the CodeRelative variable not being referenced anywhere in the actual command block definitions. I'm inclined to  think that the problem might be the G91.1 that's included in the PrefixCodeBlock and that Mach3 controller doesn't know that it's a G91.1, seeing it as a G91 instead. ...but that doesn't explain how "initializing" the machine with a different program causes it to work even with the G91.1 still in there.

Hrmmm.

I know..  I'll post out some small programs with diff var.  and reset the machine and controller each time to ''wipe':   to see what happens where.


i'm cutting a 2k job while i'm trying to debugg but also getting working results. soooo    figurn' out what is / isn't working while it IS working is more of a study in perplexity atm :)   


Between my cnc at home, yard work, a hot wife, garden, and smoking lots of meat....   busy, happy man!!


can we have a pined post for pics that you can Moderate *edit*?    i'm sorry i'm not a youtube guy to promote your program ....   I think this can be worth an easy 350.00    just needs more push!!



eric

Developer

Life's been pretty good and busier than usual over here for us too :) 

Hey that's a good idea! Go ahead and start a thread and I'll sticky it at the top of the posts and add my own pics to it too. I aim to get the price up a bit further once we hit beta and move to a more professional website, and have better learning materials (tutorials, videos, etc.) Software without learning materials or "proof" of what can be done with it is a bit of a hard sale but judging by existing sales (without any legit advertising/promotion yet) there clearly there are people who can take a look at a piece of software and imagine what the possibilities are and know it's well worth the price.

Yes, your current version is more of a tool for Mid level + peeps.