On Sunday 06 December 2015 07:45:13 John Thornton wrote:
> Just so we are on the same page the latest version is 1.8
>
> http://wiki.linuxcnc.org/uploads/arcgenm18.py
>
> If your not in the correct starting position then you will get an
> error for sure.
>
> For example:
> center X0 Y0
> diameter 0.275
> start angle 90
> end angle 180
> direction ccw
> gives me a start point of X0.0 Y0.1375
> the arc G3 X-0.1375 Y0.0 I0.0 J-0.1375
>
> so if I run the following in the MDI it just works
> F25
> G0 X0.0 Y0.1375
> G3 X-0.1375 Y0.0 I0.0 J-0.1375
>
> JT
Humm, but it still seems to me that any line of g2/g3 code whose starting
address is x0 y0, eg exactly where its at, should run to wherever that
code takes it, without any errors, it ends whereever it ends. I just
re-did, using the new 1.8 code, and adjusting the x,y centers to get
that 0,0 start point for 3 arcs, getting this code from 1.8:
For an S curve that moves a y run by x amount:
G3 X-0.0403 Y0.0972 I-0.1375 J-0.0000 ( is a 45 degree bend to the left )
G2 X-0.0403 Y0.0972 I0.0972 J0.0972 (should go from that end point back
to where the rest of the y move starts, leaving the x dimension, which
was .7500" at .6xxxx" and the next line takes it to the end of the
[lid_len - corner_rad] then a 90 degree turn to the left:
G3 X-0.1375 Y0.1375 I-0.1375 J-0.0000
G1 Y#<_lid_len> X[#<_key_w_lid> - #<_corner_rad>] (is the end point of
the G3 move above, so I get a 45 degree straight run in place of the
curve when the arc is commented out)
G1 X0.00000000 (back to the upper left corner)
G1 Y0.00000000 (back to the point of origin )
G92.1
o<asub> ENDSUB
I have to comment out these 3 lines of arc code before it will load into
LCNC, V2.7.3-sim. The first one, a 90 degree from 270 to zero at the
lower right corner works as expected. These are the next 3.
I used the same arc diameter for all of them, although I suppose I could
adjust that for the G3/g2 pair if the key width of the longer and
narrower section needed adjusting. Obviously I cannot measure the
result to determine that if it won't even load.
The key, without the arcs after the first one, shows in the attached
snapshot. The 45 degree lines are where the arcs belong.
>
> On 12/6/2015 5:53 AM, Gene Heskett wrote:
> > On Sunday 06 December 2015 06:27:37 John Thornton wrote:
> >> The default behavior of incremental.
> >>
> >> JT
> >
> > I was rather convinced of that. Thanks John T.
> >
> > That means that any set of data that results in x0y0 for the
> > starting address, eg where it at, should be valid. It is not.
> > arcbuddy draws exactly what I want it to do, but when copy/pasted
> > into the code stream, the reported errors are huge, over 90% in some
> > cases.
> >
> > So what am I doing wrong? I can't even program a
> > G3 X-0.1375 Y0.1375 I-0.1375 J-0.0000 at the 3" upper end of a Y
> > run, to make a left hand 90 degree turn. The reported error is
> > 95.0495%
> >
> > Is there a gcode that can screw that up? The init line at the top
> > of the file is:
> > G49 G92.1 G17 G40 G90 G91.1
> >
> > The error is in a subroutine where the first line of the subroutine
> > is G92 x0y0z0, and the last line of the subroutine is a G92.1. The
> > idea is to use the subroutine as a step and repeat to make multiple
> > copies because I'll need a dozen of these things.
> >
> > Not up for good, but if you have any ideas, I'm all eyes when I do
> > get up for the day.
> >
> > Thanks John.
> >
> >> On 12/5/2015 9:07 PM, Gene Heskett wrote:
> >>> What arc mode, absolute or incremental, does arcbuddy's answers
> >>> come out in?
> >>
> >> -------------------------------------------------------------------
> >>--- -------- Go from Idea to Many App Stores Faster with Intel(R)
> >> XDK Give your users amazing mobile app experiences with Intel(R)
> >> XDK. Use one codebase in this all-in-one HTML5 development
> >> environment. Design, debug & build mobile apps & 2D/3D high-impact
> >> games for multiple OSs.
> >> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> >> _______________________________________________
> >> Emc-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> > Cheers, Gene Heskett
>
> ----------------------------------------------------------------------
>-------- Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for
> multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
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)
Genes Web page <http://geneslinuxbox.net:6309/gene>
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users