Re: [Emc-users] CNC terminology

2020-03-28 Thread R C
actually,  I have been told there are combinations of parts produced  
those ways too.



It definitely is interesting.



On 3/28/20 9:21 PM, Chris Albertson wrote:

I don't think so. Form Labs, one of the big makers of resin printers call
their products "3D Printers".  The term 3D Print means more than just
FDM printing.

This is now widely used to make "real" parts  The fuel injectors in the
SpaceX rockets are printed.   "Printed" is the most common term and is used
for every process.

Even the low-cost, under $200 FDM printer can make usable parts.   I've
mead motor mounts for my CNC mill using PLA plastic on a $170 printer.  I
thought that later I'd remake then in metal but the plastic rigid enough
that I can't measure any deflection under load.  That said the plastic
does have a press-fit bronze bushing and a press fit thrust bearing.

One of the neat things is that we can use the same CAD files for both CNC
and 3D Printing.   So the part can be designed once and then made on
plastic to check fit and then if it work, cut metal.   There is a
convergence so it makes sense to  call one additive and the other
subtractive so we can think of it as just two ways to get the same end.



On Thu, Mar 26, 2020 at 2:01 PM R C  wrote:


I figured something like that...


On 3/26/20 1:34 PM, Bari wrote:


The term 3D printing also used to be a blanket term until it was
hijacked by the media and marketers to only mean CNC glue gun types of
3D printers aka FDM/FFF.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] CNC terminology

2020-03-28 Thread Chris Albertson
I don't think so. Form Labs, one of the big makers of resin printers call
their products "3D Printers".  The term 3D Print means more than just
FDM printing.

This is now widely used to make "real" parts  The fuel injectors in the
SpaceX rockets are printed.   "Printed" is the most common term and is used
for every process.

Even the low-cost, under $200 FDM printer can make usable parts.   I've
mead motor mounts for my CNC mill using PLA plastic on a $170 printer.  I
thought that later I'd remake then in metal but the plastic rigid enough
that I can't measure any deflection under load.  That said the plastic
does have a press-fit bronze bushing and a press fit thrust bearing.

One of the neat things is that we can use the same CAD files for both CNC
and 3D Printing.   So the part can be designed once and then made on
plastic to check fit and then if it work, cut metal.   There is a
convergence so it makes sense to  call one additive and the other
subtractive so we can think of it as just two ways to get the same end.



On Thu, Mar 26, 2020 at 2:01 PM R C  wrote:

> I figured something like that...
>
>
> On 3/26/20 1:34 PM, Bari wrote:
>
> > The term 3D printing also used to be a blanket term until it was
> > hijacked by the media and marketers to only mean CNC glue gun types of
> > 3D printers aka FDM/FFF.
>
-- 

Chris Albertson
Redondo Beach, California

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another wild hare idea.

2020-03-28 Thread andy pugh
On Sun, 29 Mar 2020 at 03:08, Gene Heskett  wrote:

> Is the analog-in-00 and and analog-out-00 two separate circuits independent of
> each other?

Yes.

And there is no need to add a tiny move to M66.
M67 takes effect on the next move, but that's for output, not input.

M66 ENN  transfers the value of the hal pin motion.analog-in-NN
straight to #5399.

That is all there is to it.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another wild hare idea.

2020-03-28 Thread Gene Heskett
On Saturday 28 March 2020 15:51:02 Gene Heskett wrote:

> On Saturday 28 March 2020 13:55:28 andy pugh wrote:
> > On Sat, 28 Mar 2020 at 17:50, Gene Heskett  wrote:
> > > mornings git pull so it might not be page 812 any more. Is now on
> > > page 814 according to evince:
> > >
> > Section 14.15 is "14.15 Creating Userspace Python Components"
> >
> > So, this is a Python function for use in custom userspace
> > components. It has no place in your G-code.

I guess I don't have a grasp on the relationshit of
motion.analog-in and out vs m68 and m66. Is there a doc that explains how this 
works? wrapping an m66 
e1 l0 in a two thou g1 movements so there is motion seems to get me nothing yet 
halshow shows .05 at 
motion.analog-in-01. Is the analog-in-00 and and analog-out-00 two separate 
circuits independent of 
each other?

I currently have a "net showdist => motion.analog-in-01" but cannot get 
anything for the gcode out of 
M66 E1 L0 to #5399 with this hal code:
net showdist<= mult2distance.out # should feed pyvcp.ovrtvldist does 
and works
net showdist=> motion.analog-in-01
 and this gcode:
g33.1 z#<_z_tmp> k0.050 # its a 20 tpi thread

g1 f30 z[#<_z_tmp> + 0.002] # movements to enable the M66 and is an error at 
gcode load time.
m66 E1 L0
g1f30  z#<_z_tmp> #put it back. Humm, z-tmp is the wrong var, s/b #<_z_start
#<_z_correction> = #5299
And #<_z_correction> remains at 0.
Theres a flubbergasket blown here someplace, need more tutorial.
Reading the docs again it looks as if I should be using M67 E1 L0 followed by a 
small g1 move.
But its getting late here too.

Thanks

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 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Non-circular boring. Linuxcnc style.

2020-03-28 Thread John Dammeyer
Really must get after putting some sort of encoder on the spindle just so I can 
try that.
John


> -Original Message-
> From: Sam Sokolik [mailto:samco...@gmail.com]
> Sent: March-28-20 1:40 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> 
> https://youtu.be/C0Wz8vnFAQU
> 
> 
> On Sat, Mar 28, 2020, 3:34 PM John Dammeyer  wrote:
> 
> > Nice!
> >
> > > -Original Message-
> > > From: Sam Sokolik [mailto:samco...@gmail.com]
> > > Sent: March-28-20 12:37 PM
> > > To: Enhanced Machine Controller (EMC)
> > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> > >
> > > Aluminum!
> > > http://electronicsam.com/images/greenmachine/IMG_20200328_133410.jpg
> > >
> > > http://electronicsam.com/images/greenmachine/IMG_20200328_133433.jpg
> > >
> > > You can really see the spindle res...
> > >
> > > http://electronicsam.com/images/greenmachine/IMG_20200328_140150.jpg
> > >
> > > On Sun, Mar 15, 2020, 7:28 PM Sam Sokolik  wrote:
> > >
> > > > don't look at it too close...  :)
> > > >
> > > > On Sun, Mar 15, 2020 at 5:38 PM John Dammeyer 
> > > > wrote:
> > > >
> > > >> Cool.  I'll study it tonight and see if I can figure out what you are
> > > >> doing.
> > > >> Thanks.
> > > >> John
> > > >>
> > > >>
> > > >> > -Original Message-
> > > >> > From: Sam Sokolik [mailto:samco...@gmail.com]
> > > >> > Sent: March-15-20 3:24 PM
> > > >> > To: Enhanced Machine Controller (EMC)
> > > >> > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> > > >> >
> > > >> > I made a hal component that uses either eoffset functionality or
> > using
> > > >> an
> > > >> > offset component in hal.  It takes the spindle position and
> > dynamically
> > > >> > move the axis to create a polygon..  (and remember - a polygon of a
> > > >> large
> > > >> > number of sides is a circle..)
> > > >> >
> > > >> > The comp is only lightly tested.
> > > >> >
> > > >> >
> > > >> >
> > > >> > On Sun, Mar 15, 2020 at 2:56 PM John Dammeyer
> > > >> > 
> > > >> > wrote:
> > > >> >
> > > >> > > Cool.  Did I miss a post on how you actually do this?
> > > >> > >
> > > >> > > > -Original Message-
> > > >> > > > From: Sam Sokolik [mailto:samco...@gmail.com]
> > > >> > > > Sent: March-15-20 12:39 PM
> > > >> > > > To: Enhanced Machine Controller (EMC)
> > > >> > > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> > > >> > > >
> > > >> > > > another high quality video
> > > >> > > >
> > > >> > > > https://youtu.be/LWLcFdObLvA
> > > >> > > >
> > > >> > > > On Sun, Mar 15, 2020 at 1:57 PM Nicklas Karlsson <
> > > >> > > > nicklas.karlsso...@gmail.com> wrote:
> > > >> > > >
> > > >> > > > > Hex hole is rather useful for nuts.
> > > >> > > > >
> > > >> > > > > > video coming...  :)  one gcode program - chamfer, hex and
> > hole
> > > >> all
> > > >> > > > > > poly-bored..
> > > >> > > > > >  h
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > On Sat, Mar 14, 2020, 6:47 PM Sam Sokolik <
> > samco...@gmail.com>
> > > >> > > > wrote:
> > > >> > > > > >
> > > >> > > > > > > playing with being able to 'gear?' the x axis to the
> > radius
> > > >> of the
> > > >> > > > > polygon.
> > > >> > > > > > >
> > > >> > > > > > > \
> > > >> > > > > > >
> > > >> > > > > > >
> > > >> > > > > > > On Thu, Mar 12, 2020 at 11:12 AM dave engvall
> > > >> > > > 
> > > >> > > > > > > wrote:
> > > >> > > > > > >
> > > >> > > > > > >>
> > > >> > > > > > >> On 3/12/20 8:53 AM, Sam Sokolik wrote:
> > > >> > > > > > >> > I think you could with currently a negative tool
> > > >> diameter...
> > > >> > >  The
> > > >> > > > > > >> problem
> > > >> > > > > > >> > is - the axis keeping up.  The spindle would have to
> > move
> > > >> > > slower.
> > > >> > > > > > >> >
> > > >> > > > > > >> > On Thu, Mar 12, 2020, 10:25 AM Ed 
> > wrote:
> > > >> > > > > > >> >
> > > >> > > > > > >> >> On 3/12/20 10:03 AM, Sam Sokolik wrote:
> > > >> > > > > > >> >>> Yes - and it really isn't that great.  the cutter
> > edge
> > > >> isn't
> > > >> > > on
> > > >> > > > > the
> > > >> > > > > > >> >> center
> > > >> > > > > > >> >>> line of the spindle..  I had to tweek the angle of
> > the
> > > >> tool so
> > > >> > > > > that it
> > > >> > > > > > >> >> cut
> > > >> > > > > > >> >>> the hex in the right orientation.  I am actually
> > > >> surprised it
> > > >> > > > > worked
> > > >> > > > > > >> as
> > > >> > > > > > >> >>> well as it did.
> > > >> > > > > > >> >>>
> > > >> > > > > > >> >>> (or who knows - maybe it is why it did work as well
> > as it
> > > >> > > did. :)
> > > >> > > > > )
> > > >> > > > > > >> >>>
> > > >> > > > > > >> >>> I hope to find or sharpen a decent tool to try andy's
> > > >> tapered
> > > >> > > > > polygon
> > > >> > > > > > >> >> this
> > > >> > > > > > >> >>> weekend.  (I also think I could thread it... why?  no
> > > >> clue.
> > > >> > > But
> > > >> > > > > why
> > > >> > > > > > >> stop
> > > >> > > > 

Re: [Emc-users] Non-circular boring. Linuxcnc style.

2020-03-28 Thread Sam Sokolik
https://youtu.be/C0Wz8vnFAQU


On Sat, Mar 28, 2020, 3:34 PM John Dammeyer  wrote:

> Nice!
>
> > -Original Message-
> > From: Sam Sokolik [mailto:samco...@gmail.com]
> > Sent: March-28-20 12:37 PM
> > To: Enhanced Machine Controller (EMC)
> > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> >
> > Aluminum!
> > http://electronicsam.com/images/greenmachine/IMG_20200328_133410.jpg
> >
> > http://electronicsam.com/images/greenmachine/IMG_20200328_133433.jpg
> >
> > You can really see the spindle res...
> >
> > http://electronicsam.com/images/greenmachine/IMG_20200328_140150.jpg
> >
> > On Sun, Mar 15, 2020, 7:28 PM Sam Sokolik  wrote:
> >
> > > don't look at it too close...  :)
> > >
> > > On Sun, Mar 15, 2020 at 5:38 PM John Dammeyer 
> > > wrote:
> > >
> > >> Cool.  I'll study it tonight and see if I can figure out what you are
> > >> doing.
> > >> Thanks.
> > >> John
> > >>
> > >>
> > >> > -Original Message-
> > >> > From: Sam Sokolik [mailto:samco...@gmail.com]
> > >> > Sent: March-15-20 3:24 PM
> > >> > To: Enhanced Machine Controller (EMC)
> > >> > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> > >> >
> > >> > I made a hal component that uses either eoffset functionality or
> using
> > >> an
> > >> > offset component in hal.  It takes the spindle position and
> dynamically
> > >> > move the axis to create a polygon..  (and remember - a polygon of a
> > >> large
> > >> > number of sides is a circle..)
> > >> >
> > >> > The comp is only lightly tested.
> > >> >
> > >> >
> > >> >
> > >> > On Sun, Mar 15, 2020 at 2:56 PM John Dammeyer
> > >> > 
> > >> > wrote:
> > >> >
> > >> > > Cool.  Did I miss a post on how you actually do this?
> > >> > >
> > >> > > > -Original Message-
> > >> > > > From: Sam Sokolik [mailto:samco...@gmail.com]
> > >> > > > Sent: March-15-20 12:39 PM
> > >> > > > To: Enhanced Machine Controller (EMC)
> > >> > > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> > >> > > >
> > >> > > > another high quality video
> > >> > > >
> > >> > > > https://youtu.be/LWLcFdObLvA
> > >> > > >
> > >> > > > On Sun, Mar 15, 2020 at 1:57 PM Nicklas Karlsson <
> > >> > > > nicklas.karlsso...@gmail.com> wrote:
> > >> > > >
> > >> > > > > Hex hole is rather useful for nuts.
> > >> > > > >
> > >> > > > > > video coming...  :)  one gcode program - chamfer, hex and
> hole
> > >> all
> > >> > > > > > poly-bored..
> > >> > > > > >  h
> > >> > > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > On Sat, Mar 14, 2020, 6:47 PM Sam Sokolik <
> samco...@gmail.com>
> > >> > > > wrote:
> > >> > > > > >
> > >> > > > > > > playing with being able to 'gear?' the x axis to the
> radius
> > >> of the
> > >> > > > > polygon.
> > >> > > > > > >
> > >> > > > > > > \
> > >> > > > > > >
> > >> > > > > > >
> > >> > > > > > > On Thu, Mar 12, 2020 at 11:12 AM dave engvall
> > >> > > > 
> > >> > > > > > > wrote:
> > >> > > > > > >
> > >> > > > > > >>
> > >> > > > > > >> On 3/12/20 8:53 AM, Sam Sokolik wrote:
> > >> > > > > > >> > I think you could with currently a negative tool
> > >> diameter...
> > >> > >  The
> > >> > > > > > >> problem
> > >> > > > > > >> > is - the axis keeping up.  The spindle would have to
> move
> > >> > > slower.
> > >> > > > > > >> >
> > >> > > > > > >> > On Thu, Mar 12, 2020, 10:25 AM Ed 
> wrote:
> > >> > > > > > >> >
> > >> > > > > > >> >> On 3/12/20 10:03 AM, Sam Sokolik wrote:
> > >> > > > > > >> >>> Yes - and it really isn't that great.  the cutter
> edge
> > >> isn't
> > >> > > on
> > >> > > > > the
> > >> > > > > > >> >> center
> > >> > > > > > >> >>> line of the spindle..  I had to tweek the angle of
> the
> > >> tool so
> > >> > > > > that it
> > >> > > > > > >> >> cut
> > >> > > > > > >> >>> the hex in the right orientation.  I am actually
> > >> surprised it
> > >> > > > > worked
> > >> > > > > > >> as
> > >> > > > > > >> >>> well as it did.
> > >> > > > > > >> >>>
> > >> > > > > > >> >>> (or who knows - maybe it is why it did work as well
> as it
> > >> > > did. :)
> > >> > > > > )
> > >> > > > > > >> >>>
> > >> > > > > > >> >>> I hope to find or sharpen a decent tool to try andy's
> > >> tapered
> > >> > > > > polygon
> > >> > > > > > >> >> this
> > >> > > > > > >> >>> weekend.  (I also think I could thread it... why?  no
> > >> clue.
> > >> > > But
> > >> > > > > why
> > >> > > > > > >> stop
> > >> > > > > > >> >>> now..)
> > >> > > > > > >> >>>
> > >> > > > > > >> >>> sam
> > >> > > > > > >> >>
> > >> > > > > > >> >> Pretty neat Sam!
> > >> > > > > > >> >>
> > >> > > > > > >> >>
> > >> > > > > > >> >> Now for your next test do the double hex on an OD.
> > >> > > > > > >> >>
> > >> > > > > > >> >>
> > >> > > > > > >> >> Ed.;-)
> > >> > > > > > >> >>
> > >> > > > > > >> >>
> > >> > > > > > >> >> Get the bugs worked out and then try something in
> steel.
> > >> :-)
> > >> > > > > Probbly
> > >> > > > > > >> using a roughing routine first to remove the bulk of the
> > >> material.
> > >> > > > 

Re: [Emc-users] Non-circular boring. Linuxcnc style.

2020-03-28 Thread John Dammeyer
Nice!

> -Original Message-
> From: Sam Sokolik [mailto:samco...@gmail.com]
> Sent: March-28-20 12:37 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> 
> Aluminum!
> http://electronicsam.com/images/greenmachine/IMG_20200328_133410.jpg
> 
> http://electronicsam.com/images/greenmachine/IMG_20200328_133433.jpg
> 
> You can really see the spindle res...
> 
> http://electronicsam.com/images/greenmachine/IMG_20200328_140150.jpg
> 
> On Sun, Mar 15, 2020, 7:28 PM Sam Sokolik  wrote:
> 
> > don't look at it too close...  :)
> >
> > On Sun, Mar 15, 2020 at 5:38 PM John Dammeyer 
> > wrote:
> >
> >> Cool.  I'll study it tonight and see if I can figure out what you are
> >> doing.
> >> Thanks.
> >> John
> >>
> >>
> >> > -Original Message-
> >> > From: Sam Sokolik [mailto:samco...@gmail.com]
> >> > Sent: March-15-20 3:24 PM
> >> > To: Enhanced Machine Controller (EMC)
> >> > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> >> >
> >> > I made a hal component that uses either eoffset functionality or using
> >> an
> >> > offset component in hal.  It takes the spindle position and dynamically
> >> > move the axis to create a polygon..  (and remember - a polygon of a
> >> large
> >> > number of sides is a circle..)
> >> >
> >> > The comp is only lightly tested.
> >> >
> >> >
> >> >
> >> > On Sun, Mar 15, 2020 at 2:56 PM John Dammeyer
> >> > 
> >> > wrote:
> >> >
> >> > > Cool.  Did I miss a post on how you actually do this?
> >> > >
> >> > > > -Original Message-
> >> > > > From: Sam Sokolik [mailto:samco...@gmail.com]
> >> > > > Sent: March-15-20 12:39 PM
> >> > > > To: Enhanced Machine Controller (EMC)
> >> > > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
> >> > > >
> >> > > > another high quality video
> >> > > >
> >> > > > https://youtu.be/LWLcFdObLvA
> >> > > >
> >> > > > On Sun, Mar 15, 2020 at 1:57 PM Nicklas Karlsson <
> >> > > > nicklas.karlsso...@gmail.com> wrote:
> >> > > >
> >> > > > > Hex hole is rather useful for nuts.
> >> > > > >
> >> > > > > > video coming...  :)  one gcode program - chamfer, hex and hole
> >> all
> >> > > > > > poly-bored..
> >> > > > > >  h
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > > On Sat, Mar 14, 2020, 6:47 PM Sam Sokolik 
> >> > > > wrote:
> >> > > > > >
> >> > > > > > > playing with being able to 'gear?' the x axis to the radius
> >> of the
> >> > > > > polygon.
> >> > > > > > >
> >> > > > > > > \
> >> > > > > > >
> >> > > > > > >
> >> > > > > > > On Thu, Mar 12, 2020 at 11:12 AM dave engvall
> >> > > > 
> >> > > > > > > wrote:
> >> > > > > > >
> >> > > > > > >>
> >> > > > > > >> On 3/12/20 8:53 AM, Sam Sokolik wrote:
> >> > > > > > >> > I think you could with currently a negative tool
> >> diameter...
> >> > >  The
> >> > > > > > >> problem
> >> > > > > > >> > is - the axis keeping up.  The spindle would have to move
> >> > > slower.
> >> > > > > > >> >
> >> > > > > > >> > On Thu, Mar 12, 2020, 10:25 AM Ed  wrote:
> >> > > > > > >> >
> >> > > > > > >> >> On 3/12/20 10:03 AM, Sam Sokolik wrote:
> >> > > > > > >> >>> Yes - and it really isn't that great.  the cutter edge
> >> isn't
> >> > > on
> >> > > > > the
> >> > > > > > >> >> center
> >> > > > > > >> >>> line of the spindle..  I had to tweek the angle of the
> >> tool so
> >> > > > > that it
> >> > > > > > >> >> cut
> >> > > > > > >> >>> the hex in the right orientation.  I am actually
> >> surprised it
> >> > > > > worked
> >> > > > > > >> as
> >> > > > > > >> >>> well as it did.
> >> > > > > > >> >>>
> >> > > > > > >> >>> (or who knows - maybe it is why it did work as well as it
> >> > > did. :)
> >> > > > > )
> >> > > > > > >> >>>
> >> > > > > > >> >>> I hope to find or sharpen a decent tool to try andy's
> >> tapered
> >> > > > > polygon
> >> > > > > > >> >> this
> >> > > > > > >> >>> weekend.  (I also think I could thread it... why?  no
> >> clue.
> >> > > But
> >> > > > > why
> >> > > > > > >> stop
> >> > > > > > >> >>> now..)
> >> > > > > > >> >>>
> >> > > > > > >> >>> sam
> >> > > > > > >> >>
> >> > > > > > >> >> Pretty neat Sam!
> >> > > > > > >> >>
> >> > > > > > >> >>
> >> > > > > > >> >> Now for your next test do the double hex on an OD.
> >> > > > > > >> >>
> >> > > > > > >> >>
> >> > > > > > >> >> Ed.;-)
> >> > > > > > >> >>
> >> > > > > > >> >>
> >> > > > > > >> >> Get the bugs worked out and then try something in steel.
> >> :-)
> >> > > > > Probbly
> >> > > > > > >> using a roughing routine first to remove the bulk of the
> >> material.
> >> > > > > Still
> >> > > > > > >> pretty fancy stuff.
> >> > > > > > >> Dave
> >> > > > > > >> >>
> >> > > > > > >> >> ___
> >> > > > > > >> >> Emc-users mailing list
> >> > > > > > >> >> Emc-users@lists.sourceforge.net
> >> > > > > > >> >> https://lists.sourceforge.net/lists/listinfo/emc-users
> >> > > > > > >> >>
> >> > > > > > >> > 

Re: [Emc-users] another wild hare idea.

2020-03-28 Thread Gene Heskett
On Saturday 28 March 2020 13:55:28 andy pugh wrote:

> On Sat, 28 Mar 2020 at 17:50, Gene Heskett  wrote:
> > mornings git pull so it might not be page 812 any more. Is now on
> > page 814 according to evince:
> >
> > 14.15.6.6
>
> Section 14.15 is "14.15 Creating Userspace Python Components"
>
> So, this is a Python function for use in custom userspace components.
> It has no place in your G-code.

So while I have used M68 to give the counts to pyvcp for massaging and display, 
I'll have to do all the 
rest in the gcode if I want to get it done.  Thats a bummer.

Thanks Andy, I'll see what I can do from that side of the wall. First I have to 
use a different means 
of getting the counter output, which is a different signal name in the main 
hal, I can I hope retrieve 
that somehow. Here is what I have, from the main hal:

# calculate spindle reversal overshoot
setpsum2.ovrtrvl.gain0  -1.0 # make sub2 out of sum2
# feed accumulated counts to both sample-holds
net ovrtrvl1<=  hm2_[HOSTMOT2](BOARD).0.encoder.00.count
# Feed both sample-holds
net ovrtrvl1=>  sample-dirchg.in   #checks
net ovrtrvl1=>  sample-spndlchg.in #checks

net spindle-is-reversed <=  abs_encdir.is-negative  =>  
sample-spndlchg.hold # checks
# that takes care of measuring reversal rotation distance, HOWEVER, it also 
measures the other end
# of the travel, so the halmeter jumps to a higher value at the end of the 
retract move as it
# reverses to fwd again. SO KEEP THAT IN MIND! Better yet, make it a held value 
thats updated
net ovrtrvl2   <=   sample-dirchg.out=>   s32_float_cmd.in # checks
net ovrtrvl3   <=   s32_float_cmd.out=>   sum2.ovrtrvl.in0 # checks
net ovrtrvl4   <=   sample-spndlchg.out  =>   s32_float_spndl.in # checks
net ovrtrvl5   <=   s32_float_spndl.out  =>   sum2.ovrtrvl.in1 # checks
# make a sample-hold out of a mux2
net ovrtrvl6   <=   sum2.ovrtrvl.out =>   ovrtvl-frz.in1
net ovrtrvl6a  <=   ovrtvl-frz.out   =>   ovrtvl-frz.in0
# now we need a ovrtvl-frz.sel <= trig.frz signal
net spindle-is-reversed=> trig-frz.in
setptrig-frz.width  0.25
net holdovrtvl <= trig-frz.out ovrtvl-frz.sel

# ovrtvl-frz.out can be watched with a halmeter, is in encoder counts, works
# next we need a mult2 to make turns of spindle out of this
# first, feed reciprical of encoder counts to in0, which is 240/turn
# this is hard coded reciprical of encoder's scale
setpmult2turns.in0 0.0041667
net ovrtrvl6a => mult2turns.in1
# now mult2turns.out s/b spindle turns
net makedist0<= motion.analog-out-00 => mult2distance.in0
net makedist1<= mult2turns.out mult2distance.in1
net showdist <= mult2distance.out # which feed to pyvcp.ovrtvldist
net showdist => motion.analog.in-01

So to feed gcode, I need mult2distance.out delivered to a named gcode var.

At least to this point its all hal. So I'm confused, can I do that with 
a feed to motion.analog.in-01 as above, retrieve in gcode with an 
M66 E1 L0, and  get it back from #599? the M66 uses?  And is that 
instant enough to use for some math in gcode, done above the g33.1 and 
applied to the next peck cycle. It should be available to the M68 E1 L0
at the end of the g33.1 in each peck cycle. But the header of M66, Wait 
for input bothers me

Does excedrin have a number for this headache? :)

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 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Non-circular boring. Linuxcnc style.

2020-03-28 Thread Sam Sokolik
Aluminum!
http://electronicsam.com/images/greenmachine/IMG_20200328_133410.jpg

http://electronicsam.com/images/greenmachine/IMG_20200328_133433.jpg

You can really see the spindle res...

http://electronicsam.com/images/greenmachine/IMG_20200328_140150.jpg

On Sun, Mar 15, 2020, 7:28 PM Sam Sokolik  wrote:

> don't look at it too close...  :)
>
> On Sun, Mar 15, 2020 at 5:38 PM John Dammeyer 
> wrote:
>
>> Cool.  I'll study it tonight and see if I can figure out what you are
>> doing.
>> Thanks.
>> John
>>
>>
>> > -Original Message-
>> > From: Sam Sokolik [mailto:samco...@gmail.com]
>> > Sent: March-15-20 3:24 PM
>> > To: Enhanced Machine Controller (EMC)
>> > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
>> >
>> > I made a hal component that uses either eoffset functionality or using
>> an
>> > offset component in hal.  It takes the spindle position and dynamically
>> > move the axis to create a polygon..  (and remember - a polygon of a
>> large
>> > number of sides is a circle..)
>> >
>> > The comp is only lightly tested.
>> >
>> >
>> >
>> > On Sun, Mar 15, 2020 at 2:56 PM John Dammeyer
>> > 
>> > wrote:
>> >
>> > > Cool.  Did I miss a post on how you actually do this?
>> > >
>> > > > -Original Message-
>> > > > From: Sam Sokolik [mailto:samco...@gmail.com]
>> > > > Sent: March-15-20 12:39 PM
>> > > > To: Enhanced Machine Controller (EMC)
>> > > > Subject: Re: [Emc-users] Non-circular boring. Linuxcnc style.
>> > > >
>> > > > another high quality video
>> > > >
>> > > > https://youtu.be/LWLcFdObLvA
>> > > >
>> > > > On Sun, Mar 15, 2020 at 1:57 PM Nicklas Karlsson <
>> > > > nicklas.karlsso...@gmail.com> wrote:
>> > > >
>> > > > > Hex hole is rather useful for nuts.
>> > > > >
>> > > > > > video coming...  :)  one gcode program - chamfer, hex and hole
>> all
>> > > > > > poly-bored..
>> > > > > >  h
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > On Sat, Mar 14, 2020, 6:47 PM Sam Sokolik 
>> > > > wrote:
>> > > > > >
>> > > > > > > playing with being able to 'gear?' the x axis to the radius
>> of the
>> > > > > polygon.
>> > > > > > >
>> > > > > > > \
>> > > > > > >
>> > > > > > >
>> > > > > > > On Thu, Mar 12, 2020 at 11:12 AM dave engvall
>> > > > 
>> > > > > > > wrote:
>> > > > > > >
>> > > > > > >>
>> > > > > > >> On 3/12/20 8:53 AM, Sam Sokolik wrote:
>> > > > > > >> > I think you could with currently a negative tool
>> diameter...
>> > >  The
>> > > > > > >> problem
>> > > > > > >> > is - the axis keeping up.  The spindle would have to move
>> > > slower.
>> > > > > > >> >
>> > > > > > >> > On Thu, Mar 12, 2020, 10:25 AM Ed  wrote:
>> > > > > > >> >
>> > > > > > >> >> On 3/12/20 10:03 AM, Sam Sokolik wrote:
>> > > > > > >> >>> Yes - and it really isn't that great.  the cutter edge
>> isn't
>> > > on
>> > > > > the
>> > > > > > >> >> center
>> > > > > > >> >>> line of the spindle..  I had to tweek the angle of the
>> tool so
>> > > > > that it
>> > > > > > >> >> cut
>> > > > > > >> >>> the hex in the right orientation.  I am actually
>> surprised it
>> > > > > worked
>> > > > > > >> as
>> > > > > > >> >>> well as it did.
>> > > > > > >> >>>
>> > > > > > >> >>> (or who knows - maybe it is why it did work as well as it
>> > > did. :)
>> > > > > )
>> > > > > > >> >>>
>> > > > > > >> >>> I hope to find or sharpen a decent tool to try andy's
>> tapered
>> > > > > polygon
>> > > > > > >> >> this
>> > > > > > >> >>> weekend.  (I also think I could thread it... why?  no
>> clue.
>> > > But
>> > > > > why
>> > > > > > >> stop
>> > > > > > >> >>> now..)
>> > > > > > >> >>>
>> > > > > > >> >>> sam
>> > > > > > >> >>
>> > > > > > >> >> Pretty neat Sam!
>> > > > > > >> >>
>> > > > > > >> >>
>> > > > > > >> >> Now for your next test do the double hex on an OD.
>> > > > > > >> >>
>> > > > > > >> >>
>> > > > > > >> >> Ed.;-)
>> > > > > > >> >>
>> > > > > > >> >>
>> > > > > > >> >> Get the bugs worked out and then try something in steel.
>> :-)
>> > > > > Probbly
>> > > > > > >> using a roughing routine first to remove the bulk of the
>> material.
>> > > > > Still
>> > > > > > >> pretty fancy stuff.
>> > > > > > >> Dave
>> > > > > > >> >>
>> > > > > > >> >> ___
>> > > > > > >> >> Emc-users mailing list
>> > > > > > >> >> Emc-users@lists.sourceforge.net
>> > > > > > >> >> https://lists.sourceforge.net/lists/listinfo/emc-users
>> > > > > > >> >>
>> > > > > > >> > ___
>> > > > > > >> > Emc-users mailing list
>> > > > > > >> > Emc-users@lists.sourceforge.net
>> > > > > > >> > https://lists.sourceforge.net/lists/listinfo/emc-users
>> > > > > > >>
>> > > > > > >
>> > > > > >
>> > > > > > ___
>> > > > > > Emc-users mailing list
>> > > > > > Emc-users@lists.sourceforge.net
>> > > > > > https://lists.sourceforge.net/lists/listinfo/emc-users
>> > > > >
>> > > > >
>> > > > > ___
>> > > > > 

Re: [Emc-users] Who knows about LASIMM ?

2020-03-28 Thread Valerio Bellizzomi
I know nothing about twincat, but it is cool.


On Sat, 2020-03-28 at 18:41 +0100, theman whosoldtheworld wrote:
> twincat magician?
> 
> Il giorno sab 28 mar 2020 alle ore 17:29 Valerio Bellizzomi <
> vale...@selnet.org> ha scritto:
> 
> > On Fri, 2020-03-27 at 13:31 +, andy pugh wrote:
> > > On Fri, 27 Mar 2020 at 13:00, Valerio Bellizzomi 
> > wrote:
> > >
> > > > This actially means they have an advanced control system. Can really
> > > > LinuxCNC do the same with metal additive and subtractive plus
> > metrology?
> > >
> > > Yes and no...
> > >
> > > LinuxCNC can't control three independent robots like this machine can.
> > >
> > > But I would expect that the interactions between the robots were
> > > handled in the CAM layer, not in the machine controller.
> >
> > They talk about an advanced control system, no idea what that means
> > though. Is it possible that they can control the 3 robots
> > simultaneously?
> >
> >
> >
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] spi connections

2020-03-28 Thread dave engvall

Hi all,

I'm working (slowly) on a Rspi4b to 7i90 to 5i33 system. After a few 
speed bumps ( I ordered the wrong connector) I think I have things 
worked out. The geometry isn't pretty but should work  unless my 
cognition has drifted off into never-neverland.


So 40 pin idc plugs into spi bus and solders to the jepler interface 
board (osh-park). 26 pin on the jepler board (solder connection) plugs 
into the 7i90. This looks weird since the Rpi4 is at rt angles to the 
7i90 but a bit of creative milling of aluminum will at least mount it 
securely.  Plans are for a 60 mm cooling fan.


Now the question. What is the probably impedance across these connectors 
and do I need the smd resistors? Do I need to match the impedance or 
just load the lines? Gene is using 88 ohm grain of wheat resistors. The 
pads are for smd ... like 1206 (imperial). Connectors in general unless 
they are very good have an impedance bump anyway.


This would be cleaner with a rt angle 26 pin but they were weeks out. ;-)

Maybe Peter will chime in here. :-)

Dave

ps. if one gets a 929852-01-10 then you can split it into the 40 pin and 
the 26 pin. Don't ask me how I know. ;-)





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another wild hare idea.

2020-03-28 Thread andy pugh
On Sat, 28 Mar 2020 at 17:50, Gene Heskett  wrote:

> mornings git pull so it might not be page 812 any more. Is now on page
> 814 according to evince:
>
> 14.15.6.6

Section 14.15 is "14.15 Creating Userspace Python Components"

So, this is a Python function for use in custom userspace components.
It has no place in your G-code.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another wild hare idea.

2020-03-28 Thread Gene Heskett
On Saturday 28 March 2020 10:01:51 andy pugh wrote:

> On Sat, 28 Mar 2020 at 13:45, Gene Heskett  
wrote:
> > > Where did you find that format? Is it in the docs somewhere?
> >
> > page 812, /usr/share/doc/linuxcnc/Documentation.pdf
>
> The 2.7 docs don't even have a page 812, and in 2.9 and 2.8 that page
> is discussing kinematics.
>
> Searching the PDF for the string "hal." doesn't help either, so I
> really have no idea where you got that string from, but it certainly
> isn't G-code.

Get it from my web page. You should know that I am pulling and rebuilding 
master for the rpi4 at some point every weekend. Goto the link in my 
sig, then add lathe-stf/ to the address bar, and you will see a dir 
listing, click on linuxcnc4rpi4, and get 
linuxcnc-doc-en_2.9.0~pre0_all.deb. But I see a gfx add during this 
mornings git pull so it might not be page 812 any more. Is now on page 
814 according to evince:

14.15.6.6
get_value
read a pin, param or signal directly.
example:
value = hal.get_value("iocontrol.0.emc-enable-in"):

Thats copy/pasted from the docs I built this morning on the rpi4.
Just installed it on mine, appears to work, so in 15 minutes or less you 
should see todays date on that stuff at the link described above.
 
All done, ready for your downloading pleasure.  Be my guest.

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 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Had to share

2020-03-28 Thread dave engvall
You can say what you want about Spam. Once a year is about the right 
dose for me. However in the late 50 when I was spending summers on a 
fire lookout Spam was an easy meal. Bearing in mind that by the time you 
go up all the snow has melted and that was the only refrigeration.


During and after the Korean 'war'  Spam saved a lot of Koreans from 
starvation. The US Army kitchens were throwing it in the dumpsters so it 
got scavengedby locals. Spam with kimchi anyone?


Dave

On 3/27/20 2:45 PM, Marcus Bowman wrote:

Spam, spam, double-spam, egg, spam, spam and spam.
Loved the video; wouldn't eat the end product, though.

Marcus

On 27 Mar 2020, at 11:25, andy pugh wrote:


https://youtu.be/GX68sOHZ12M

For maximum enjoyment turn on auto-captions. They really can't handle
his accent.

--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Who knows about LASIMM ?

2020-03-28 Thread theman whosoldtheworld
twincat magician?

Il giorno sab 28 mar 2020 alle ore 17:29 Valerio Bellizzomi <
vale...@selnet.org> ha scritto:

> On Fri, 2020-03-27 at 13:31 +, andy pugh wrote:
> > On Fri, 27 Mar 2020 at 13:00, Valerio Bellizzomi 
> wrote:
> >
> > > This actially means they have an advanced control system. Can really
> > > LinuxCNC do the same with metal additive and subtractive plus
> metrology?
> >
> > Yes and no...
> >
> > LinuxCNC can't control three independent robots like this machine can.
> >
> > But I would expect that the interactions between the robots were
> > handled in the CAM layer, not in the machine controller.
>
> They talk about an advanced control system, no idea what that means
> though. Is it possible that they can control the 3 robots
> simultaneously?
>
>
>
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Who knows about LASIMM ?

2020-03-28 Thread Valerio Bellizzomi
On Fri, 2020-03-27 at 13:31 +, andy pugh wrote:
> On Fri, 27 Mar 2020 at 13:00, Valerio Bellizzomi  wrote:
> 
> > This actially means they have an advanced control system. Can really
> > LinuxCNC do the same with metal additive and subtractive plus metrology?
> 
> Yes and no...
> 
> LinuxCNC can't control three independent robots like this machine can.
> 
> But I would expect that the interactions between the robots were
> handled in the CAM layer, not in the machine controller.

They talk about an advanced control system, no idea what that means
though. Is it possible that they can control the 3 robots
simultaneously?





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another wild hare idea.

2020-03-28 Thread andy pugh
On Sat, 28 Mar 2020 at 13:45, Gene Heskett  wrote:

> > Where did you find that format? Is it in the docs somewhere?
>
> page 812, /usr/share/doc/linuxcnc/Documentation.pdf

The 2.7 docs don't even have a page 812, and in 2.9 and 2.8 that page
is discussing kinematics.

Searching the PDF for the string "hal." doesn't help either, so I
really have no idea where you got that string from, but it certainly
isn't G-code.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another wild hare idea.

2020-03-28 Thread Gene Heskett
On Saturday 28 March 2020 07:16:49 andy pugh wrote:

> On Sat, 28 Mar 2020 at 07:45, Gene Heskett  
wrote:
> > Now, the actual line from the gcode which should be good
> > #<_Z_dist>=hal.get_value("ovrtrvl-scaler-mux.out")
>
> Where did you find that format? Is it in the docs somewhere?

page 812, /usr/share/doc/linuxcnc/Documentation.pdf

> If so, can you say which file and which page?
>
> You seem to be trying to put Python code in G-code.
> http://linuxcnc.org/docs/2.8/html/hal/halmodule.html

Is not answering the phone this morning.

> You can read HAL pins at the _beginning_ of a G-code routine, but the
> format is quite different.
> #<_Z_dist>=#<_hal[ovrtrvl-scaler-mux.out])

Not usefull here.

> http://linuxcnc.org/docs/2.7/html/remap/remap.html#remap:referto-hal-i
>tems
>
> But that won't work here, as the G-code gets the interpreter value,
> not the run-time value.
>
> What you need to do is
>
> net G-code-input ovrtrvl-scaler-mux.out => motion.analog-in-00

The in-00 is already in use so I'll have to use in-01, in-00 is supplying 
the tpmm or tpi to hal, which then runs it thru a short chain that 
converts the overtravel counts into turns(float) and if tp* is non-zero, 
distance(float) according to the value passed as tpi/tpmm from the 
gcode, to turns*tpi|tpmm and converts it back to imperial based on the 
outputs of a units module so I get the same "physical" answer for both 
g20 and g21.

Section 5.4.16 of that same doc says wait on input, but in this case the 
input is there, and what I want it to do is pass the new value the hal 
modules have caught during he peck just performed, updated during every 
g33.1 pass and held in a sample-hold. Updated at the bottom of each peck 
and available even if tp** is zero. I still get the # of counts, 
displayed as turns.

What I want to do now is ship that "turns" back to the gcode, massage it 
by tpmm or tpi and subtract it from the depth commanded as it runs the 
next loop of the peck. Eventually I want to incorporate the tools tlo 
from the tool table. (that, with my tray of taps, might need a bigger 
tool table).

That however will probably wait until I've bored out a big bar holder so 
it mates with my tray of top-hatted taps. They are all 7/8" OD and keyed 
so they cannot turn in the holder. There is a 4mm cap screw in the side 
of each hat that mates with a notch cut in an R8, or will be cut into 
this custom toolholder.

> Then in the g-code
> M66 E0 L0
> # = #5399

M66 E1 L0, but is the #number(#5399) the same? The docs would seem to say 
so, so in the gcode I should capture that immediately after the g33.1 
peck is done.

And this is synchronized? Coding it up and testing will answer that..

My method is always, if I'm pecking, one peck stale.  And if I don't peck 
it still works for the display of turns in FPoint. So then I just loop 
once. All this gives me, after the 1st peck, a display of both turns and 
distance traveled while its slowing and turning around to back out of 
the hole. Even if one is carefull, this is where you break taps, and 
I've broken quite a few already. :( 

At some point I want to add a #<_var> to hold the in-## so it can be 
edited to fit other installs that may already be using different 
num_aio's for other things.

Stay safe everybody.

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 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another wild hare idea.

2020-03-28 Thread andy pugh
On Sat, 28 Mar 2020 at 07:45, Gene Heskett  wrote:

> Now, the actual line from the gcode which should be good
> #<_Z_dist>=hal.get_value("ovrtrvl-scaler-mux.out")

Where did you find that format? Is it in the docs somewhere?

If so, can you say which file and which page?

You seem to be trying to put Python code in G-code.
http://linuxcnc.org/docs/2.8/html/hal/halmodule.html

You can read HAL pins at the _beginning_ of a G-code routine, but the
format is quite different.
#<_Z_dist>=#<_hal[ovrtrvl-scaler-mux.out])
http://linuxcnc.org/docs/2.7/html/remap/remap.html#remap:referto-hal-items

But that won't work here, as the G-code gets the interpreter value,
not the run-time value.

What you need to do is

net G-code-input ovrtrvl-scaler-mux.out => motion.analog-in-00

Then in the g-code
M66 E0 L0
# = #5399


--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another wild hare idea.

2020-03-28 Thread Gene Heskett
On Friday 27 March 2020 16:04:21 Gene Heskett wrote:

> On Friday 27 March 2020 14:39:39 Gene Heskett wrote:
> > On Friday 27 March 2020 07:20:33 Gene Heskett wrote:
> > > On Friday 27 March 2020 02:53:03 theman whosoldtheworld wrote:
> > > > Hi
> > > >
> > > > They are read only.
> > > >
> > > > The FEATURES=12 or whatever gives you access to the values, but
> > > > you cannot change them, that would be the Holy Grail.
> > > >
> > > > If the pin can be written to, you can do it from a user M code
> > > >
> > > > halcmd setp  value type thing
> > > >
> > > > Whether it is linked and what type of pin it is is going to
> > > > determine if it can be written
> > > >
> > > > regards
> > > >
> > > > (by ArcHye   with AndyPugh some years ago teach me about
> > > > thse)
> > > >
> > > > plus on g code #<_hal[pinname]>
>
> Apparently has been modified, see snip below from page 812 of the
> current docs, I finally found it with zero help from the index.
>
> > > Great minds, I just thought of adding a module, putting it in the
> > > correct place in the addf order & feeding it from hal but using
> > > its output in the gcode. That syntax '#<_hal[pinname]>' may be the
> > > key to the backwards path I need to actually make it work.
>
> Nope.
>
> > > And a debug statement is all it will take to prove its working. 
> > > But that also means the loading of the module will have to be
> > > moved out of the postgui.hal to the initial loadrt's and addf's so
> > > that the modules output exists at the hal scan time, else the
> > > error is that the pin doesn't exist. I can sort that I think as
> > > geany's copy/paste is I think, global.  I think I may have already
> > > done that as postgui.hal is all 'net' statements:
> > >
> > > net   showdist1   <= scale-ovrtrvl.out => ovrtrvl-scaler-mux.in1
> > > net   display-mode<= units.G21 => ovrtrvl-scaler-mux.sel
> > > setp  scale-ovrtrvl.gain 25.40
> > > # here, use a scale and a mux2 to select the scale.in for inches,
> > > or the scale.out
> > > # for a mm's conversion.
> > >
> > > So in the gcode:
> > > #<_z_depth> = [#<_hole_depth> - #<_hal[ovrtrvl-scaler-mux.out]>]
>
> And on page 812, I find this example:
> value = hal.get_value("iocontrol.0.emc-enable-in")
> So I'll use that syntax just for S
> Then I noted the dblquotes around the hal-pinname, but now it is an
> unk where a unary could be.  Gonna take more figuring I think.

Now, the actual line from the gcode which should be good
#<_Z_dist>=hal.get_value("ovrtrvl-scaler-mux.out")
That pin is there in hal-showconfig, but lcnc spits it out.

Where have I made a mistake?

I have also noted that the copyright date this freshly pulled and 
compiled Documentation.pdf is in June 2019, so it stands to be nearly 9 
months out of date.

Thanks again.

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 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users