On 11/03/2013 03:08 PM, Tony Zampini wrote:
> A quick question about gcmc. Are the contents of the prologue and
> epilogue hard-coded into the program? Or can I make them anything I want.

They are hard-coded, but you can disable its generation by adding the
"-q" option on the command-line.

The reason for being hard-coded is that the generated G-code depends on
a few settings of G-code interpreter, which are setup in the prologue.
Dependencies include:
- G21 ( Use mm )
- G40 ( Cancel cutter radius compensation )
- G90 ( Use absolute distance mode )

Strictly seen, the cutter radius compensation is not required if your
program keeps track of its effect in the program.

The active plane in the prologue can be set with the command-line option
"-p". The feedrate mode can be changed in the program by calling feedmode().

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.

The epilogue simply terminates the program with 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