On 10/30/2013 06:42 PM, Gene Heskett wrote:
[snip]
> Generates:
[snip]
> G2 X9.97547740 Y9.97547764 Z9.97547781 I10.00000000 J0.00000000 P3

That is seriously wrong...

The generated code should read:
...
G2 X10.00000000 Y10.00000000 Z10.00000000 I10.00000000 J0.00000000 P3
...

Is you add a "move([0,0,0]);" before the arc, does it still come out
with a fractional XYZ position?

You may want to try:
spindlespeed(400);
feedrate(100);
spindle(1);
literal("( initial global pos ", global_position, " )\n");
literal("( global offset ", global_offset, " )\n");
move([0,0,0]);
literal("( before arc global pos ", global_position, " )\n");
arc_cw([10, 10, 10], 10, 3);
literal("( after arc global pos ", global_position, " )\n");
spindle(0);

Then you can see in the generated code what the positions evaluated to.
The initial position should have been initialized to zero on all axes
and the offset should read zero if none set on the command-line.

My local compile gives:
...
S400.00000000
F100.00000000
M3
( initial global pos
[0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm] )
( global offset
[0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm] )
G1 X0.00000000 Y0.00000000 Z0.00000000
( before arc global pos
[0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm] )
G2 X10.00000000 Y10.00000000 Z10.00000000 I10.00000000 J0.00000000 P3
( after arc global pos
[10.000000mm,10.000000mm,10.000000mm,0.000000mm,0.000000mm,0.000000mm] )
M5
...

-- 
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