On Thursday 01 August 2019 13:01:25 andy pugh wrote: > On Thu, 1 Aug 2019 at 16:47, Gene Heskett <ghesk...@shentel.net> > wrote: > > Did that got g3 error, usual recipe, converted it back to g17, lcnc > > > bought it but back plot shows the arc as a straight line??? > That turned out to be a missing F in the G2/3 lines. So I have it working, sortof. arcgenm18.py is showing a full 180 degree path, but when that code is pasted into an ngc file, I am getting only the bottom 90 degrees in the backplot.
> At this point I would give up and use R-format arcs. Its getting tempting. Here is the code: % ( for a woodruff key, .750 long, .1885 wide, depth about 170 thou ) ( from arcgenm18.py, z curve offset starting point for arc ) G20 (use inches) #<_x_offset> = -0.3750 #<_y_center> =- 0.0000 #<_x_end> = -#<_x_offset> ( Z motion from X#<_x_offset ) ( G3 X0.3750 Y0.0000 I0.3750 J-0.0000 ) ( translate to G18 y becomes z, j becomes k) ( G3 X0.3750 Z0.0000 I0.3750 K-0.0000 ) ( comeing back ) ( G2 X-0.3750 Y0.0000 I-0.3750 J-0.0000 ) (Translated to G18) ( G2 X-0.3750 Z0.0000 I-0.3750 K-0.0000 ) #<_z_tmp_start> = .3750 (intialize z-tmp) #<_z_tmp> = #<_z_tmp_start> ( tool is carbide, .125 diameter dull 2 flute mill ) (key is .1885 wide so) #<_key_wobble> = [[ .18855 -.125] / 2.0000] #<_z_inc> = .001 (burn 1 thou per pass) S300 m4 (run it backwards) o50 WHILE [#<_z_tmp> gt 0.000] G1 F10 x#<_x_offset> y[#<_y_center> + #<_key_wobble>] G1 F10 z#<_z_tmp> G18 G2 F1 X0.3750 I0.375000 K#<_z_tmp_start> G17 G1 F5 y[-#<_key_wobble>] G18 G3 F1 X-0.3750 I-0.375000 K#<_z_tmp_start> G17 G1 F.2 y[#<_y_center> - #<_key_wobble>] #<_z_tmp> = [#<_z_tmp> - #<_z_inc>] o50 ENDWHILE G17 m5 g0z5 M2 % If you can see why I'm only seeing a 90 degree arc in the backplot, teach me what is wrong. Thanks Andy Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users