On Wednesday 30 October 2013 15:30:14 Bertho Stultiens did opine:

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

Hmmmm, not at all what I got:
===========
(gcmc compiled code, do not change)
(2013-10-30 15:26:56)
(-- prologue begin --)
G17 ( Use XY plane )
G21 ( Use mm )
G40 ( Cancel cutter radius compensation )
(-- prologue end --)
S400.00000000
F100.00000000
M3
( initial global pos 
[0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm] )
( global offset 
[-1.955982mm,-1.955967mm,-1.955956mm,0.000000mm,0.000000mm,0.000000mm] )
G1 X-1.95598221 Y-1.95596695 Z-1.95595554
( before arc global pos 
[0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm] )
G2 X8.04401779 Y8.04403305 Z8.04404446 I10.00000000 J0.00000000 P3
( after arc global pos 
[10.000000mm,10.000000mm,10.000000mm,0.000000mm,0.000000mm,0.000000mm] )
M5
G2 X8.04401779 Y8.04403305 Z8.04404446 I0.00000000 J0.00000000 P3
M5
(-- epilogue begin --)
M2
(-- epilogue end --)

But I also have an offset that will not "home" or touchoff out, of +.003z
This is something else I have noted before, so I'll stop it, delete the 
.var and .txt files & try again.

I guess I must have taken them out of my ini file as way more trouble that 
they are worth, a restart got rid of the +.003Z offset in the dro display, 
but the above code now gives a zero radius arc in line 18 error.  Then, 
looking at the arccw.test.gcmc file again, somehow the last 2 lines got 
duplicated.  Removed them and recompiled, got this now:
=============
(gcmc compiled code, do not change)
(2013-10-30 15:43:08)
(-- prologue begin --)
G17 ( Use XY plane )
G21 ( Use mm )
G40 ( Cancel cutter radius compensation )
(-- prologue end --)
S400.00000000
F100.00000000
M3
( initial global pos 
[0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm] )
( global offset 
[-0.026255mm,-0.026255mm,-0.026255mm,0.000000mm,0.000000mm,0.000000mm] )
G1 X-0.02625543 Y-0.02625519 Z-0.02625501
( before arc global pos 
[0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm,0.000000mm] )
G2 X9.97374457 Y9.97374481 Z9.97374499 I10.00000000 J0.00000000 P3
( after arc global pos 
[10.000000mm,10.000000mm,10.000000mm,0.000000mm,0.000000mm,0.000000mm] )
M5
(-- epilogue begin --)
M2
(-- epilogue end --)

=============

Works, draws a nominally 20mm diameter spiral, moving z up for nominally 
2.25 revolutions in the xy plane.  So starting at XYZA = 0.0, 0.0, 0.0, 
0.0, the ending position is
0.975, 0.975, 0.975, 0.0.

Is that the intended action?  Spindle-at-speed display=400, so that works.

 
Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)

Whenever I feel like exercise, I lie down until the feeling passes.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

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