On 11/03/2013 03:32 PM, Bertho Stultiens wrote:
> In principle, it should be possible to alter gcmc to output relative
> position code, which subsequently can be reused in other programs. It
> has been a thought I have been playing with.

To that end,...

I just had a look at relative outputs and it was actually quite simple
to implement. I pushed an update to gitorious that implements the "-r"
command-line option, which in turn will output the G-code using relative
addressing.

That means that you can generate a fragment of code and include it into
other programs quite easily:
...
 (your gcode here)
...
G0 Xxx Yxx Zxx
G91
 (imported code from "gcmc -r -q ...")
G90
...
 (back to your code)
M2


-- 
Greetings Bertho

(disclaimers are disclaimed)

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to