Re: [Emc-users] should I be laughing or crying?

2019-10-17 Thread Gene Heskett
On Thursday 17 October 2019 22:15:29 TJoseph Powderly wrote:

> Gene
> I cant find units comp either, nor can google so far,
> So write one
> List all the pins connected to it ( by browsing .hal)
> then look ar
> http://www.linuxcnc.org/docs/html/config/python-interface.html#_linuxc
>nc_stat_attributes especially

Clear at the bottom of that section, thats the one I'm looking for!

Thanks TomP.

> program_units (returns integer) - one of CANON_UNITS_INCHES=1,
> CANON_UNITS_MM=2, CANON_UNITS_CM=3
> if the comp only returns imperial/metric
> this may be easy
> hth
> tomp
>
> On Fri, Oct 18, 2019 at 8:50 AM andy pugh  wrote:
> > On Fri, 18 Oct 2019 at 02:06, Phillip Carter
> > 
> >
> > wrote:
> > > I think this is the units you are referring to: <
> > > https://en.wikipedia.org/wiki/GNU_Units <
> > > https://en.wikipedia.org/wiki/GNU_Units>>
> >
> > No., it's a HAL component. (his HAL is trying to "loadusr" it).
> > I have no idea what it does.
> >
> > --
> > 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, 1916
> >
> > ___
> > 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


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] should I be laughing or crying?

2019-10-17 Thread Gene Heskett
On Thursday 17 October 2019 21:47:28 andy pugh wrote:

> On Fri, 18 Oct 2019 at 02:06, Phillip Carter 
>
> wrote:
> > I think this is the units you are referring to: <
> > https://en.wikipedia.org/wiki/GNU_Units <
> > https://en.wikipedia.org/wiki/GNU_Units>>
>
> No., it's a HAL component. (his HAL is trying to "loadusr" it).
> I have no idea what it does.

It takes a numerical value applied to a 
'pin', and converts it to either inches, or mm's on two output 'pin's.  
use the one you need to display.

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] should I be laughing or crying?

2019-10-17 Thread Gene Heskett
On Thursday 17 October 2019 21:03:34 Phillip Carter wrote:

> > On 18 Oct 2019, at 9:58 am, Gene Heskett 
> > wrote:
> >
> > And I still need that units conversion module, or I have to cobble
> > it up with a couple scale's and a mux4 some of which can go in the
> > slower jog- thread. But that can wait till I've transplanted the pi4
> > into the lathe.
>
> I think this is the units you are referring to:
>  >

Thats the one I did have installed but its not the one I need.  Once I 
get the pi4 sitting where the 3 is now, and with two # in the code so it 
will run, I'll add a couple scale modules and a mux4, and just do it in 
the hal file. It shouldn't be that hard.

I have similar code in th G0704's config, doing the same thing.  So I've 
that framework to refer to.

> Cheers, Phill.
>
> > That may happen over the weekend if the warmer weather promised
> > yesterday materializes.
> >
> > Those teeny little, and cheap peristaltic pumps showed up today,
> > hooked one up to a 12 volt supply, looks promising. 5 watts, I might
> > be able to run it direct on the 7i76 field outputs.  And maybe not,
> > thats a fat 400 ma.  And its inductive.
> >
> > 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 
> >
> >
> > ___
> > 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


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] should I be laughing or crying?

2019-10-17 Thread TJoseph Powderly
Gene
I cant find units comp either, nor can google so far,
So write one
List all the pins connected to it ( by browsing .hal)
then look ar 
http://www.linuxcnc.org/docs/html/config/python-interface.html#_linuxcnc_stat_attributes
especially
program_units (returns integer) - one of CANON_UNITS_INCHES=1,
CANON_UNITS_MM=2, CANON_UNITS_CM=3
if the comp only returns imperial/metric
this may be easy
hth
tomp

On Fri, Oct 18, 2019 at 8:50 AM andy pugh  wrote:
>
> On Fri, 18 Oct 2019 at 02:06, Phillip Carter 
> wrote:
>
> >
> > I think this is the units you are referring to: <
> > https://en.wikipedia.org/wiki/GNU_Units <
> > https://en.wikipedia.org/wiki/GNU_Units>>
>
>
> No., it's a HAL component. (his HAL is trying to "loadusr" it).
> I have no idea what it does.
>
> --
> 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, 1916
>
> ___
> 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] should I be laughing or crying?

2019-10-17 Thread Phillip Carter


> On 18 Oct 2019, at 12:47 pm, andy pugh  wrote:
> 
> On Fri, 18 Oct 2019 at 02:06, Phillip Carter 
> wrote:
> 
>> 
>> I think this is the units you are referring to: <
>> https://en.wikipedia.org/wiki/GNU_Units <
>> https://en.wikipedia.org/wiki/GNU_Units>>
> 
> 
> No., it's a HAL component. (his HAL is trying to "loadusr" it).
> I have no idea what it does.
> 

Sorry, I see that now…


> -- 
> 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, 1916
> 
> ___
> 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] should I be laughing or crying?

2019-10-17 Thread andy pugh
On Fri, 18 Oct 2019 at 02:06, Phillip Carter 
wrote:

>
> I think this is the units you are referring to: <
> https://en.wikipedia.org/wiki/GNU_Units <
> https://en.wikipedia.org/wiki/GNU_Units>>


No., it's a HAL component. (his HAL is trying to "loadusr" it).
I have no idea what it does.

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

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


Re: [Emc-users] should I be laughing or crying?

2019-10-17 Thread Phillip Carter



> On 18 Oct 2019, at 9:58 am, Gene Heskett  wrote:
> 
> And I still need that units conversion module, or I have to cobble it up 
> with a couple scale's and a mux4 some of which can go in the slower jog- 
> thread. But that can wait till I've transplanted the pi4 into the lathe. 
> 

I think this is the units you are referring to: 
>

Cheers, Phill.

> That may happen over the weekend if the warmer weather promised yesterday 
> materializes.
> 
> Those teeny little, and cheap peristaltic pumps showed up today, hooked 
> one up to a 12 volt supply, looks promising. 5 watts, I might be able to 
> run it direct on the 7i76 field outputs.  And maybe not, thats a fat 400 
> ma.  And its inductive.
> 
> 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 
> 
> 
> ___
> 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] should I be laughing or crying?

2019-10-17 Thread Gene Heskett
On Thursday 17 October 2019 10:40:25 Gene Heskett wrote:

> On Thursday 17 October 2019 10:04:39 andy pugh wrote:
> > On Thu, 17 Oct 2019 at 14:31, Gene Heskett 
>
> wrote:
> > > loadusr units
> > > But much later when the postgui.hal was ran, where I have this
> > > line: #netdisplay-mode<= units.prog_mm=>
> > > pyvcp.x-in-mm
> >
> > Where did this HAL file come from? I have never previously heard of
> > a hal component called "units"
>
> I haven't a clue Andy, other than its been working for 2 years on the
> pi3 running my Sheldon. Right now I'm trying to get a realtime kernel
> built for buster-10.1 to see if it still works. It worked on a jessie
> install all this time. And it worked on a stretch install I must have
> overwritten. I can't find it in the dozen or so 32 and 64GB cards I
> have.
>
> But it takes RealtimePi quite a few hours to build a realtime image.
> Been working on it a bit over 2 hours now.

And failed, realtimepi builds an older 4.14 kernel for buster, which 
stops booting at a text login on tty1, and has no keyboard/mouse so no 
login possible.  And my feet are killing me. Only about 14C with a good 
20 KT wind, had the garage door open so I could put a new blue oval sign 
on the tailgate which I had backed up against the garage door.  All the 
blue was gone from the OEM decorator, looked like crap. 
Time to go get the misses her daily fishwrap, and whatever for dinner if 
I don't have it.

And I still need that units conversion module, or I have to cobble it up 
with a couple scale's and a mux4 some of which can go in the slower jog- 
thread. But that can wait till I've transplanted the pi4 into the lathe. 

That may happen over the weekend if the warmer weather promised yesterday 
materializes.

Those teeny little, and cheap peristaltic pumps showed up today, hooked 
one up to a 12 volt supply, looks promising. 5 watts, I might be able to 
run it direct on the 7i76 field outputs.  And maybe not, thats a fat 400 
ma.  And its inductive.

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 


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


Re: [Emc-users] should I be laughing or crying?

2019-10-17 Thread Gene Heskett
On Thursday 17 October 2019 10:04:39 andy pugh wrote:

> On Thu, 17 Oct 2019 at 14:31, Gene Heskett  
wrote:
> > loadusr units
> > But much later when the postgui.hal was ran, where I have this line:
> > #netdisplay-mode<= units.prog_mm=> pyvcp.x-in-mm
>
> Where did this HAL file come from? I have never previously heard of a
> hal component called "units"

I haven't a clue Andy, other than its been working for 2 years on the pi3 
running my Sheldon. Right now I'm trying to get a realtime kernel built 
for buster-10.1 to see if it still works. It worked on a jessie install 
all this time. And it worked on a stretch install I must have 
overwritten. I can't find it in the dozen or so 32 and 64GB cards I 
have.

But it takes RealtimePi quite a few hours to build a realtime image. Been 
working on it a bit over 2 hours now.  

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 


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


Re: [Emc-users] should I be laughing or crying?

2019-10-17 Thread andy pugh
On Thu, 17 Oct 2019 at 14:31, Gene Heskett  wrote:

> loadusr units
> But much later when the postgui.hal was ran, where I have this line:
> #netdisplay-mode<= units.prog_mm=> pyvcp.x-in-mm

Where did this HAL file come from? I have never previously heard of a
hal component called "units"

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


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


[Emc-users] should I be laughing or crying?

2019-10-17 Thread Gene Heskett
Greetings all;

I've managed to get a prempt-rt kernel built and installed on an rpi4.
Then I just installed a locally made on that pi, linuxcnc.

There was no reported error result from a line in my hal:
loadusr units

But much later when the postgui.hal was ran, where I have this line:
#netdisplay-mode<= units.prog_mm=> pyvcp.x-in-mm 
pyvcp.z-in-mm
currently commented because no pins from units are to be found by any of 
the hal show facilities.

So, thinking its a dependency I missed, I had apt install units. But its 
obviously the wrong units, as witnessed by the startup log to the 
terminal:

pi@rpi4:~/linuxcnc/configs/sheldon-lathe $
LINUXCNC - 2.8.0~pre1
Machine configuration directory 
is '/home/pi/linuxcnc/configs/sheldon-lathe'
Machine configuration file is '7i90-axis.ini'
Starting LinuxCNC...
Found file(REL): ./hm2-7i90-stepper.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2/hm2_7i90.0: 72 I/O Pins used:
hm2/hm2_7i90.0: IO Pin 000 (P1-01): StepGen #0, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 001 (P1-03): StepGen #0, pin Direction 
(Output)
hm2/hm2_7i90.0: IO Pin 002 (P1-05): StepGen #1, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 003 (P1-07): StepGen #1, pin Direction 
(Output)
hm2/hm2_7i90.0: IO Pin 004 (P1-09): Encoder #0, pin A (Input)
hm2/hm2_7i90.0: IO Pin 005 (P1-11): Encoder #2, pin A (Input)
hm2/hm2_7i90.0: IO Pin 006 (P1-13): Encoder #0, pin B (Input)
hm2/hm2_7i90.0: IO Pin 007 (P1-15): Encoder #2, pin B (Input)
hm2/hm2_7i90.0: IO Pin 008 (P1-17): Encoder #0, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 009 (P1-19): Encoder #2, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 010 (P1-21): Encoder #1, pin A (Input)
hm2/hm2_7i90.0: IO Pin 011 (P1-23): Encoder #3, pin A (Input)
hm2/hm2_7i90.0: IO Pin 012 (P1-25): Encoder #1, pin B (Input)
hm2/hm2_7i90.0: IO Pin 013 (P1-27): Encoder #3, pin B (Input)
hm2/hm2_7i90.0: IO Pin 014 (P1-29): Encoder #1, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 015 (P1-31): Encoder #3, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 016 (P1-33): StepGen #2, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 017 (P1-35): StepGen #2, pin Direction 
(Output)
hm2/hm2_7i90.0: IO Pin 018 (P1-37): StepGen #3, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 019 (P1-39): StepGen #3, pin Direction 
(Output)
hm2/hm2_7i90.0: IO Pin 020 (P1-41): PWMGen #0, pin Out0 (PWM or Up) 
(Output)
hm2/hm2_7i90.0: IO Pin 021 (P1-43): PWMGen #0, pin Out1 (Dir or Down) 
(Output)
hm2/hm2_7i90.0: IO Pin 022 (P1-45): IOPort
hm2/hm2_7i90.0: IO Pin 023 (P1-47): IOPort
hm2/hm2_7i90.0: IO Pin 024 (P2-01): IOPort
hm2/hm2_7i90.0: IO Pin 025 (P2-03): IOPort
hm2/hm2_7i90.0: IO Pin 026 (P2-05): IOPort
hm2/hm2_7i90.0: IO Pin 027 (P2-07): IOPort
hm2/hm2_7i90.0: IO Pin 028 (P2-09): IOPort
hm2/hm2_7i90.0: IO Pin 029 (P2-11): IOPort
hm2/hm2_7i90.0: IO Pin 030 (P2-13): IOPort
hm2/hm2_7i90.0: IO Pin 031 (P2-15): IOPort
hm2/hm2_7i90.0: IO Pin 032 (P2-17): IOPort
hm2/hm2_7i90.0: IO Pin 033 (P2-19): IOPort
hm2/hm2_7i90.0: IO Pin 034 (P2-21): IOPort
hm2/hm2_7i90.0: IO Pin 035 (P2-23): IOPort
hm2/hm2_7i90.0: IO Pin 036 (P2-25): IOPort
hm2/hm2_7i90.0: IO Pin 037 (P2-27): IOPort
hm2/hm2_7i90.0: IO Pin 038 (P2-29): IOPort
hm2/hm2_7i90.0: IO Pin 039 (P2-31): IOPort
hm2/hm2_7i90.0: IO Pin 040 (P2-33): IOPort
hm2/hm2_7i90.0: IO Pin 041 (P2-35): IOPort
hm2/hm2_7i90.0: IO Pin 042 (P2-37): IOPort
hm2/hm2_7i90.0: IO Pin 043 (P2-39): IOPort
hm2/hm2_7i90.0: IO Pin 044 (P2-41): IOPort
hm2/hm2_7i90.0: IO Pin 045 (P2-43): IOPort
hm2/hm2_7i90.0: IO Pin 046 (P2-45): IOPort
hm2/hm2_7i90.0: IO Pin 047 (P2-47): IOPort
hm2/hm2_7i90.0: IO Pin 048 (P3-01): IOPort
hm2/hm2_7i90.0: IO Pin 049 (P3-03): IOPort
hm2/hm2_7i90.0: IO Pin 050 (P3-05): IOPort
hm2/hm2_7i90.0: IO Pin 051 (P3-07): IOPort
hm2/hm2_7i90.0: IO Pin 052 (P3-09): IOPort
hm2/hm2_7i90.0: IO Pin 053 (P3-11): IOPort
hm2/hm2_7i90.0: IO Pin 054 (P3-13): IOPort
hm2/hm2_7i90.0: IO Pin 055 (P3-15): IOPort
hm2/hm2_7i90.0: IO Pin 056 (P3-17): IOPort
hm2/hm2_7i90.0: IO Pin 057 (P3-19): IOPort
hm2/hm2_7i90.0: IO Pin 058 (P3-21): IOPort
hm2/hm2_7i90.0: IO Pin 059 (P3-23): IOPort
hm2/hm2_7i90.0: IO Pin 060 (P3-25): IOPort
hm2/hm2_7i90.0: IO Pin 061 (P3-27): IOPort
hm2/hm2_7i90.0: IO Pin 062 (P3-29): IOPort
hm2/hm2_7i90.0: IO Pin 063 (P3-31): IOPort
hm2/hm2_7i90.0: IO Pin 064 (P3-33): IOPort
hm2/hm2_7i90.0: IO Pin 065 (P3-35): IOPort
hm2/hm2_7i90.0: IO Pin 066 (P3-37): IOPort
hm2/hm2_7i90.0: IO Pin 067 (P3-39): IOPort
hm2/hm2_7i90.0: IO Pin 068 (P3-41): IOPort
hm2/hm2_7i90.0: IO Pin 069 (P3-43): IOPort
hm2/hm2_7i90.0: IO Pin 070 (P3-45): IOPort
hm2/hm2_7i90.0: IO Pin 071 (P3-47): IOPort
hm2/hm2_7i90.0: registered
Currency exchange rates from FloatRates (USD base) on 2018-10-20
3070 units, 109