Re: [Emc-users] nother Q for Peter

2022-04-19 Thread gene heskett
On Tuesday, 19 April 2022 12:54:44 EDT andy pugh wrote:
> On Tue, 19 Apr 2022 at 17:28, gene heskett  
wrote:
> > Can I access it raw as the hex value?
> 
> Yes, but why?
> 
> >  volts doesn't really represent what
> > 
> > I need to work with
> 
> What do you need to work with?
> 
A pwmgen in the 5i25 will be used to throttle the compressors to regulate 
the pressure and quiet the compressors which are already 70 db quieter 
than the shop compressor. 5 of them in parallel, draws about 4 amps from 
a 12 volt supply. The pwmgen will be toggling one side of a bts-7960 seat 
motor controller at around 4 kilohertz where I can't hear it. This 
voltage will control the W in the pwmgen.

> > How would I go about determining the resistor value to feed that
> > input
> > from nominally 42.3 volts to just bring it to full scale?
> 
> Why not use a divider network?
> 
Thanks Andy.
> --
> 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


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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-19 Thread Peter C. Wallace

On Tue, 19 Apr 2022, gene heskett wrote:


Date: Tue, 19 Apr 2022 16:00:39 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] nother Q for Peter

On Tuesday, 19 April 2022 12:46:20 EDT Peter C. Wallace wrote:

On Tue, 19 Apr 2022, gene heskett wrote:

Date: Tue, 19 Apr 2022 12:24:26 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"



To: "Enhanced Machine Controller (EMC)"
 Subject: Re: [Emc-users] nother Q
for Peter

On Tuesday, 19 April 2022 07:59:12 EDT andy pugh wrote:
On Tue, 19 Apr 2022 at 03:51, gene heskett 


wrote:

So by default. a bit is .142578125 volts.  Hummm. Seems odd. I
would
have expected $00 to $FF as output.


It does on the FPGA and the interface, but the driver converts to
floating point for convenience and then the default scaling is to
volts.

Can I access it raw as the hex value? volts doesn't really represent
what I need to work with. Although I assume the fp in volts does
increment by the value of 1 bit change, so that can be worked around.


You can scale as you wish with the scalemax parameter


How would I go about determining the resistor value to feed that input
from nominally 42.3 volts to just bring it to full scale? My
additional connections would "sink" it from there.


You would need about 3K to get 36V into the 20K input impedance with a
42V source


Ouch. That is going to need a power transistor on a heat sink to pull
that down to 4 volts. Thats around 15 mils. And a 1 Watt R.


I have a small voltage applied to that input, but a halmeter is only
reading a flicker of random noise at about 1 second intervals, zero
the rest of the time. Thats likely a clue I'm doing something wrong,
but what?


Is the input relative to field power ground? (the field I/O section
section is galvanically isolated from the 5V parts of the 7I76)


I'll have to check that. I thought it was. Did, According to my ohmmeter,
it is a common ground.



I did get the flood button to appear in the axis gui, which is what I
will use to enable the mister air seperately from the mister pump, and
will interlock the pump so air has to be flowing before the pump can be
started. 'Twould be nice if I could relabel that radio button from
flood to air, can it be?


I did just find the pwmgen's pins, which despite the fact that they
steal the 7i76's stepgen-4 pins, are addressed in the 5i25 as
pwmgen.00.etc. No mention of that in the 7i76 docs I assume because
the pwmgens are actually in the 5i25.  Is pwmgen.01 then the same
pins on the 5i25's p2?



You can use mesaflash to determine the 7I76 pins:


Or as I found, enable the device in the loadrt line and read the cards
signon output as you exec linuxcnc -l.

However, pwmgen.00.'s outputs do show up on the DIR4+- and
STEP4+-. terminals of the 7i76. But see 5i25man.pdf for data about it.


sudo mesaflash --device 5i25 --dbname1 7i76 --readhmid


(this needs mesaflash 3.4.2)


Not available for buster, it has 3.4.0-rc1 or similar.


You can get the latest here:

https://github.com/LinuxCNC/mesaflash

(scroll to bottom of page for build instructions)





Thank you 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, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis





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



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



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


Re: [Emc-users] nother Q for Peter

2022-04-19 Thread gene heskett
On Tuesday, 19 April 2022 12:54:44 EDT andy pugh wrote:
> On Tue, 19 Apr 2022 at 17:28, gene heskett  
wrote:
> > Can I access it raw as the hex value?
> 
> Yes, but why?
> 
> >  volts doesn't really represent what
> > 
> > I need to work with
> 
> What do you need to work with?
> 
> > How would I go about determining the resistor value to feed that
> > input
> > from nominally 42.3 volts to just bring it to full scale?
> 
> Why not use a divider network?

Thats only part of it Andy. There will be a transistors collector tied to 
the 36 volt point, pulling it down according the the amplified, inverted 
output of a MAP, which is a 5 volt device with a very puny output. 100 
microamps max. A very old tech called a long tailed pair, useing the base 
voltage of the right hand transistor to zero out the first 15 psia out of 
the MAP by holding the left emmitter above cutoff.  Not interested in the 
non-existant vacuum, only the boost the compressors are giving. 2-4 psi 
will run the mister, or with the liquid pump turned off, will help clear 
away the sawdust from making the screw. Hopefully without blowing it all 
over the place.

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


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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-19 Thread gene heskett
On Tuesday, 19 April 2022 12:46:20 EDT Peter C. Wallace wrote:
> On Tue, 19 Apr 2022, gene heskett wrote:
> > Date: Tue, 19 Apr 2022 12:24:26 -0400
> > From: gene heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: "Enhanced Machine Controller (EMC)"
> >  Subject: Re: [Emc-users] nother Q
> > for Peter
> > 
> > On Tuesday, 19 April 2022 07:59:12 EDT andy pugh wrote:
> > On Tue, 19 Apr 2022 at 03:51, gene heskett 
> 
> wrote:
> > > So by default. a bit is .142578125 volts.  Hummm. Seems odd. I
> > > would
> > > have expected $00 to $FF as output.
> > 
> > It does on the FPGA and the interface, but the driver converts to
> > floating point for convenience and then the default scaling is to
> > volts.
> >
> >Can I access it raw as the hex value? volts doesn't really represent
> >what I need to work with. Although I assume the fp in volts does
> >increment by the value of 1 bit change, so that can be worked around.
> 
> You can scale as you wish with the scalemax parameter
> 
> >How would I go about determining the resistor value to feed that input
> >from nominally 42.3 volts to just bring it to full scale? My
> >additional connections would "sink" it from there.
> 
> You would need about 3K to get 36V into the 20K input impedance with a
> 42V source
> 
> >I have a small voltage applied to that input, but a halmeter is only
> >reading a flicker of random noise at about 1 second intervals, zero
> >the rest of the time. Thats likely a clue I'm doing something wrong,
> >but what?
> 
> Is the input relative to field power ground? (the field I/O section
> section is galvanically isolated from the 5V parts of the 7I76)
> 
> 
> 
> I did get the flood button to appear in the axis gui, which is what I
> will use to anable the mister air seperately from the mister pump, and
> will interlock the pump so air has to be flowing before the pump can be
> started. 'Twould be nice if I could relabel that radio button from
> flood to air, can it be?
> 
> >I did just find the pwmgen's pins, which despite the fact that they
> >steal the 7i76's stepgen-4 pins, are addressed in the 5i25 as
> >pwmgen.00.etc. No mention of that in the 7i76 docs I assume because
> >the pwmgens are actually in the 5i25.  Is pwmgen.01 then the same
> >pins on the 5i25's p2?
> You can use mesaflash to determine the 7I76 pins:
> 
> sudo mesaflash --device 5i25 --dbname1 7i76 --readhmid
> 
> 
> (this needs mesaflash 3.4.2)
> 
> >Cheers, Gene Heskett.

Repost reply. thank you Peter!
 
>--
> >
> >"There are four boxes to be used in defense of liberty:
> > soap, ballot, jury, and ammo. Please use in that order."
> >
> >-Ed Howdershelt (Author, 1940)
> >If we desire respect for the law, we must first make the law
> >respectable.>
> > - Louis D. Brandeis
> 
> Peter Wallace
> Mesa Electronics
> 
> 
> 
> ___
> 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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-19 Thread gene heskett
On Tuesday, 19 April 2022 12:46:20 EDT Peter C. Wallace wrote:
> On Tue, 19 Apr 2022, gene heskett wrote:
> > Date: Tue, 19 Apr 2022 12:24:26 -0400
> > From: gene heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: "Enhanced Machine Controller (EMC)"
> >  Subject: Re: [Emc-users] nother Q
> > for Peter
> > 
> > On Tuesday, 19 April 2022 07:59:12 EDT andy pugh wrote:
> > On Tue, 19 Apr 2022 at 03:51, gene heskett 
> 
> wrote:
> > > So by default. a bit is .142578125 volts.  Hummm. Seems odd. I
> > > would
> > > have expected $00 to $FF as output.
> > 
> > It does on the FPGA and the interface, but the driver converts to
> > floating point for convenience and then the default scaling is to
> > volts.
> >
> >Can I access it raw as the hex value? volts doesn't really represent
> >what I need to work with. Although I assume the fp in volts does
> >increment by the value of 1 bit change, so that can be worked around.
> 
> You can scale as you wish with the scalemax parameter
> 
> >How would I go about determining the resistor value to feed that input
> >from nominally 42.3 volts to just bring it to full scale? My
> >additional connections would "sink" it from there.
> 
> You would need about 3K to get 36V into the 20K input impedance with a
> 42V source
> 
Ouch. That is going to need a power transistor on a heat sink to pull 
that down to 4 volts. Thats around 15 mils. And a 1 Watt R.

> >I have a small voltage applied to that input, but a halmeter is only
> >reading a flicker of random noise at about 1 second intervals, zero
> >the rest of the time. Thats likely a clue I'm doing something wrong,
> >but what?
> 
> Is the input relative to field power ground? (the field I/O section
> section is galvanically isolated from the 5V parts of the 7I76)

I'll have to check that. I thought it was. Did, According to my ohmmeter, 
it is a common ground.
> 
> 
> I did get the flood button to appear in the axis gui, which is what I
> will use to enable the mister air seperately from the mister pump, and
> will interlock the pump so air has to be flowing before the pump can be
> started. 'Twould be nice if I could relabel that radio button from
> flood to air, can it be?
> 
> >I did just find the pwmgen's pins, which despite the fact that they
> >steal the 7i76's stepgen-4 pins, are addressed in the 5i25 as
> >pwmgen.00.etc. No mention of that in the 7i76 docs I assume because
> >the pwmgens are actually in the 5i25.  Is pwmgen.01 then the same
> >pins on the 5i25's p2?

> You can use mesaflash to determine the 7I76 pins:

Or as I found, enable the device in the loadrt line and read the cards 
signon output as you exec linuxcnc -l.

However, pwmgen.00.'s outputs do show up on the DIR4+- and
STEP4+-. terminals of the 7i76. But see 5i25man.pdf for data about it.
 
> sudo mesaflash --device 5i25 --dbname1 7i76 --readhmid
> 
> 
> (this needs mesaflash 3.4.2)

Not available for buster, it has 3.4.0-rc1 or similar.

Thank you 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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-19 Thread andy pugh
On Tue, 19 Apr 2022 at 17:28, gene heskett  wrote:

> Can I access it raw as the hex value?

Yes, but why?

>  volts doesn't really represent what
> I need to work with

What do you need to work with?

> How would I go about determining the resistor value to feed that input
> from nominally 42.3 volts to just bring it to full scale?

Why not use a divider network?

-- 
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] nother Q for Peter

2022-04-19 Thread Peter C. Wallace

On Tue, 19 Apr 2022, gene heskett wrote:


Date: Tue, 19 Apr 2022 12:24:26 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] nother Q for Peter

On Tuesday, 19 April 2022 07:59:12 EDT andy pugh wrote:
On Tue, 19 Apr 2022 at 03:51, gene heskett  

wrote:

> So by default. a bit is .142578125 volts.  Hummm. Seems odd. I would
> have expected $00 to $FF as output.

It does on the FPGA and the interface, but the driver converts to
floating point for convenience and then the default scaling is to
volts.


Can I access it raw as the hex value? volts doesn't really represent what 
I need to work with. Although I assume the fp in volts does increment by 
the value of 1 bit change, so that can be worked around.


You can scale as you wish with the scalemax parameter


How would I go about determining the resistor value to feed that input 
from nominally 42.3 volts to just bring it to full scale? My additional 
connections would "sink" it from there.


You would need about 3K to get 36V into the 20K input impedance with a 42V 
source


I have a small voltage applied to that input, but a halmeter is only 
reading a flicker of random noise at about 1 second intervals, zero the 
rest of the time. Thats likely a clue I'm doing something wrong, but 
what?


Is the input relative to field power ground? (the field I/O section
section is galvanically isolated from the 5V parts of the 7I76)



I did get the flood button to appear in the axis gui, which is what I 
will use to anable the mister air seperately from the mister pump, and 
will interlock the pump so air has to be flowing before the pump can be 
started. 'Twould be nice if I could relabel that radio button from flood 
to air, can it be?


I did just find the pwmgen's pins, which despite the fact that they steal 
the 7i76's stepgen-4 pins, are addressed in the 5i25 as pwmgen.00.etc. No 
mention of that in the 7i76 docs I assume because the pwmgens are 
actually in the 5i25.  Is pwmgen.01 then the same pins on the 5i25's p2?


You can use mesaflash to determine the 7I76 pins:

sudo mesaflash --device 5i25 --dbname1 7i76 --readhmid


(this needs mesaflash 3.4.2)


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, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis


Peter Wallace
Mesa Electronics



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


Re: [Emc-users] nother Q for Peter

2022-04-19 Thread gene heskett
On Tuesday, 19 April 2022 07:59:12 EDT andy pugh wrote:
> On Tue, 19 Apr 2022 at 03:51, gene heskett  
wrote:
> > So by default. a bit is .142578125 volts.  Hummm. Seems odd. I would
> > have expected $00 to $FF as output.
> 
> It does on the FPGA and the interface, but the driver converts to
> floating point for convenience and then the default scaling is to
> volts.

Can I access it raw as the hex value? volts doesn't really represent what 
I need to work with. Although I assume the fp in volts does increment by 
the value of 1 bit change, so that can be worked around.

How would I go about determining the resistor value to feed that input 
from nominally 42.3 volts to just bring it to full scale? My additional 
connections would "sink" it from there.

I have a small voltage applied to that input, but a halmeter is only 
reading a flicker of random noise at about 1 second intervals, zero the 
rest of the time. Thats likely a clue I'm doing something wrong, but 
what?

I did get the flood button to appear in the axis gui, which is what I 
will use to anable the mister air seperately from the mister pump, and 
will interlock the pump so air has to be flowing before the pump can be 
started. 'Twould be nice if I could relabel that radio button from flood 
to air, can it be?

I did just find the pwmgen's pins, which despite the fact that they steal 
the 7i76's stepgen-4 pins, are addressed in the 5i25 as pwmgen.00.etc. No 
mention of that in the 7i76 docs I assume because the pwmgens are 
actually in the 5i25.  Is pwmgen.01 then the same pins on the 5i25's p2?

And I can "setp hm2_5i25.0.pwmgen.00.scale" and "value" parameters, but 
no output pins show up? Should they not be the 5i25's GPIO-8 and GPIO-9 
which then show up as dir4+- and step4+- on TB3 of the 7i76? setting 
num_pwmgens=2 makes it so, so that question is answered.

Confusing, this having a documentation wall between the parent board and 
the daughter board.

Thank you Andy. Stay well please.
> --
> 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


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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-19 Thread andy pugh
On Tue, 19 Apr 2022 at 03:51, gene heskett  wrote:

> So by default. a bit is .142578125 volts.  Hummm. Seems odd. I would have
> expected $00 to $FF as output.

It does on the FPGA and the interface, but the driver converts to
floating point for convenience and then the default scaling is to
volts.

-- 
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] nother Q for Peter

2022-04-18 Thread gene heskett
On Monday, 18 April 2022 19:08:21 EDT Peter C. Wallace wrote:
> > this line?
> > 
> > loadrt hm2_pci config="num_pwmgens=1 num_stepgens=4 num_encoders=1
> > sserial_port_0=1xxx"
> 
> Yes, the sserial_port_0=1xxx line sets the 7I76 field I/O section
> (port 0 channel 0) into mode 1 which includes the analog inputs.
> 
> The analog inputs default to reading volts but can be rescaled
> by changing the corresponding "scalemax" parameters
> 
So by default. a bit is .142578125 volts.  Hummm. Seems odd. I would have 
expected $00 to $FF as output. So I'll have to install this box, and 
actually hook it up to see what I get.

I've found some old vfets I used as charge pump detectors, and bought 
enough to make a dozen of them. But the ink on the epoxy to220 bodies has 
gone away so they are now unidentifiable. I am able to determine the gate 
leg, but can't tell src from drain.

Those two legs read 2+ megs to each other, either polarity. Those I have, 
the tip-120's are a week away.

I wondered if the 3d printer state was such that I could make pcb's on it 
but some online checking convinced me its not quite a daily driver tech 
yet.  So back to learning pcb-rnd and exporting gcode. I was familiar 
with eagle, a decade ago, but it was sold and destroyed.

For vfets in plastic to220 cases, whats the pin order with the gate on 
the left? Anybody know which is src and which is drain?

Thanks Peter, take care & stay well, both of you.
 
> Peter Wallace
> Mesa Electronics
> 
> 
> 
> ___
> 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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-18 Thread Peter C. Wallace






this line?

loadrt hm2_pci config="num_pwmgens=1 num_stepgens=4 num_encoders=1
sserial_port_0=1xxx"


Yes, the sserial_port_0=1xxx line sets the 7I76 field I/O section
(port 0 channel 0) into mode 1 which includes the analog inputs.

The analog inputs default to reading volts but can be rescaled
by changing the corresponding "scalemax" parameters



Peter Wallace
Mesa Electronics



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


Re: [Emc-users] nother Q for Peter

2022-04-18 Thread gene heskett
On Monday, 18 April 2022 18:19:06 EDT Peter C. Wallace wrote:
> On Mon, 18 Apr 2022, gene heskett wrote:
> > Date: Mon, 18 Apr 2022 18:11:54 -0400
> > From: gene heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: "Enhanced Machine Controller (EMC)"
> >  Subject: Re: [Emc-users] nother Q
> > for Peter
> > 
> > On Monday, 18 April 2022 17:33:48 EDT Peter C. Wallace wrote:
> >> On Mon, 18 Apr 2022, gene heskett wrote:
> >>> Date: Mon, 18 Apr 2022 16:37:48 -0400
> >>> From: gene heskett 
> >>> Reply-To: "Enhanced Machine Controller (EMC)"
> >>> 
> >>> 
> >>> 
> >>> To: "Enhanced Machine Controller (EMC)"
> >>>  Subject: Re: [Emc-users] nother Q
> >>> for Peter
> >>> 
> >>> On Monday, 18 April 2022 13:49:36 EDT gene heskett wrote:
> >>>> On Monday, 18 April 2022 10:38:10 EDT Peter C. Wallace wrote:
> >>>>> On Mon, 18 Apr 2022, gene heskett wrote:
> >>>>>> Date: Mon, 18 Apr 2022 04:19:27 -0400
> >>>>>> From: gene heskett 
> >>>>>> Reply-To: "Enhanced Machine Controller (EMC)"
> >>>>>> 
> >>>>>> 
> >>>>>> 
> >>>>>> To: "Enhanced Machine Controller (EMC)"
> >>>>>>  Subject: [Emc-users] nother Q
> >>>>>> for
> >>>>>> Peter
> >>>>>> 
> >>>>>> Greetings;
> >>>>>> 
> >>>>>> How does the A/D on a 7i76D handle overvoltage? I'm considering
> >>>>>> a
> >>>>>> long
> >>>>>> tailed vfet pair with a 22k pullup to 42 volts. Does it just
> >>>>>> goto
> >>>>>> full
> >>>>>> scale at an $FF output, or will that blow something?
> >>>>> 
> >>>>> Full scale (inputs will take up to 100V indefinitely)
> >>>>> but adjacent inputs  may read incorrectly if more than about
> >>>>> 50V is suppled (due to current injection into parasitic
> >>>>> transistors related to the input ESD diodes of the CPU)
> >>>> 
> >>>> Excellent news Peter, I'm off to the races then.
> >>> 
> >>> But the starting gate won't open. I've re-read 7i76man.pdf several
> >>> times w/o the method of actually getting the digital value from one
> >>> of the 4 ports it works for. I have something tied to port-0, but I
> >>> think that may be a leftover from before I used the hy-485 module
> >>> to
> >>> drive the spindle, so it looks like I should figure on using
> >>> port-1.
> >>> 
> >>> How does reading an A/D derived digital value from port-1 get done
> >>> in
> >>> the hal file?
> >>> 
> >>> Thank you.
> >>> 
> >>> 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, 1940)
> >>> If we desire respect for the law, we must first make the law
> >>> respectable. - Louis D. Brandeis
> >> 
> >> The pins are:
> >> 
> >> hm2_5i25.0.7i76.0.0.analogin0
> >> hm2_5i25.0.7i76.0.0.analogin1
> >> hm2_5i25.0.7i76.0.0.analogin2
> >> hm2_5i25.0.7i76.0.0.analogin3
> >> 
> >> 
> >> You need to set the 7I76 in a mode that enables the analog inputs
> >> (modes 1 or 2)
> > 
> > That sounds like it should be a setp, but it doesn't jump off of page
> > 31 at me. Looking at the analogin0, I'm seeing a flash of noise at
> > about 1 second intervals which I assume is the update rate.  And I
> > don't currently have any setp's that seem to address the 7i76. Do I
> > need to dl a fresh copy of the 7i76man.pdf?  I've had this one for
> > 3, maybe 4 years.
> The analog update rate is the servo thread rate (the aquisition rate is
> about 50 KHz)

That will help. Its currently running the servo thread at 2 kilohertz.

> If you have a analogin0 pin you are have already setup a mode that
> includes analog input
> 
> (the mode setup is done in the sserial_port_0=NNN line in the
> driver command line)

this line?

loadrt hm2_pci config="num_pwmgens=1 num_stepgens=4 num_encoders=1 
sserial_port_0=1xxx"

I am useing 0-3 stepgens. pwmgen0 purportedly steals stepgen4's pins, 
ahh, base number 0. my mistake. pwmgen0 uses stepgen4's pins according to 
what I have deciphered. But I was using 4 stepgens. Now XYZB. And it 
appears the pwmgen0 was also replaced by the hy-vfd so I can use it for 
this without adding another pwmgen1. I don't think I've anything wired to 
those two pins now.

Gotta get my head around this hal file better. Been too long since I 
configured it. And oldtimers seems to be the thing now.

Thanks Peter.
 
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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-18 Thread Peter C. Wallace

On Mon, 18 Apr 2022, gene heskett wrote:


Date: Mon, 18 Apr 2022 18:11:54 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] nother Q for Peter

On Monday, 18 April 2022 17:33:48 EDT Peter C. Wallace wrote:

On Mon, 18 Apr 2022, gene heskett wrote:

Date: Mon, 18 Apr 2022 16:37:48 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"



To: "Enhanced Machine Controller (EMC)"
 Subject: Re: [Emc-users] nother Q
for Peter

On Monday, 18 April 2022 13:49:36 EDT gene heskett wrote:

On Monday, 18 April 2022 10:38:10 EDT Peter C. Wallace wrote:

On Mon, 18 Apr 2022, gene heskett wrote:

Date: Mon, 18 Apr 2022 04:19:27 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"



To: "Enhanced Machine Controller (EMC)"
 Subject: [Emc-users] nother Q
for
Peter

Greetings;

How does the A/D on a 7i76D handle overvoltage? I'm considering a
long
tailed vfet pair with a 22k pullup to 42 volts. Does it just goto
full
scale at an $FF output, or will that blow something?


Full scale (inputs will take up to 100V indefinitely)
but adjacent inputs  may read incorrectly if more than about
50V is suppled (due to current injection into parasitic
transistors related to the input ESD diodes of the CPU)


Excellent news Peter, I'm off to the races then.


But the starting gate won't open. I've re-read 7i76man.pdf several
times w/o the method of actually getting the digital value from one
of the 4 ports it works for. I have something tied to port-0, but I
think that may be a leftover from before I used the hy-485 module to
drive the spindle, so it looks like I should figure on using port-1.

How does reading an A/D derived digital value from port-1 get done in
the hal file?

Thank you.

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, 1940)
If we desire respect for the law, we must first make the law
respectable. - Louis D. Brandeis


The pins are:

hm2_5i25.0.7i76.0.0.analogin0
hm2_5i25.0.7i76.0.0.analogin1
hm2_5i25.0.7i76.0.0.analogin2
hm2_5i25.0.7i76.0.0.analogin3


You need to set the 7I76 in a mode that enables the analog inputs
(modes 1 or 2)


That sounds like it should be a setp, but it doesn't jump off of page 31
at me. Looking at the analogin0, I'm seeing a flash of noise at about 1
second intervals which I assume is the update rate.  And I don't
currently have any setp's that seem to address the 7i76. Do I need to dl
a fresh copy of the 7i76man.pdf?  I've had this one for 3, maybe 4 years.


The analog update rate is the servo thread rate (the aquisition rate is about 50 
KHz)


If you have a analogin0 pin you are have already setup a mode that 
includes analog input


(the mode setup is done in the sserial_port_0=NNN line in the driver command 
line)







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


Peter Wallace
Mesa Electronics



___
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, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis





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



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



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


Re: [Emc-users] nother Q for Peter

2022-04-18 Thread gene heskett
On Monday, 18 April 2022 17:33:48 EDT Peter C. Wallace wrote:
> On Mon, 18 Apr 2022, gene heskett wrote:
> > Date: Mon, 18 Apr 2022 16:37:48 -0400
> > From: gene heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: "Enhanced Machine Controller (EMC)"
> >  Subject: Re: [Emc-users] nother Q
> > for Peter
> > 
> > On Monday, 18 April 2022 13:49:36 EDT gene heskett wrote:
> >> On Monday, 18 April 2022 10:38:10 EDT Peter C. Wallace wrote:
> >>> On Mon, 18 Apr 2022, gene heskett wrote:
> >>>> Date: Mon, 18 Apr 2022 04:19:27 -0400
> >>>> From: gene heskett 
> >>>> Reply-To: "Enhanced Machine Controller (EMC)"
> >>>> 
> >>>> 
> >>>> 
> >>>> To: "Enhanced Machine Controller (EMC)"
> >>>>  Subject: [Emc-users] nother Q
> >>>> for
> >>>> Peter
> >>>> 
> >>>> Greetings;
> >>>> 
> >>>> How does the A/D on a 7i76D handle overvoltage? I'm considering a
> >>>> long
> >>>> tailed vfet pair with a 22k pullup to 42 volts. Does it just goto
> >>>> full
> >>>> scale at an $FF output, or will that blow something?
> >>> 
> >>> Full scale (inputs will take up to 100V indefinitely)
> >>> but adjacent inputs  may read incorrectly if more than about
> >>> 50V is suppled (due to current injection into parasitic
> >>> transistors related to the input ESD diodes of the CPU)
> >> 
> >> Excellent news Peter, I'm off to the races then.
> > 
> > But the starting gate won't open. I've re-read 7i76man.pdf several
> > times w/o the method of actually getting the digital value from one
> > of the 4 ports it works for. I have something tied to port-0, but I
> > think that may be a leftover from before I used the hy-485 module to
> > drive the spindle, so it looks like I should figure on using port-1.
> > 
> > How does reading an A/D derived digital value from port-1 get done in
> > the hal file?
> > 
> > Thank you.
> > 
> > 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, 1940)
> > If we desire respect for the law, we must first make the law
> > respectable. - Louis D. Brandeis
> 
> The pins are:
> 
> hm2_5i25.0.7i76.0.0.analogin0
> hm2_5i25.0.7i76.0.0.analogin1
> hm2_5i25.0.7i76.0.0.analogin2
> hm2_5i25.0.7i76.0.0.analogin3
> 
> 
> You need to set the 7I76 in a mode that enables the analog inputs
> (modes 1 or 2)
> 
That sounds like it should be a setp, but it doesn't jump off of page 31 
at me. Looking at the analogin0, I'm seeing a flash of noise at about 1 
second intervals which I assume is the update rate.  And I don't 
currently have any setp's that seem to address the 7i76. Do I need to dl 
a fresh copy of the 7i76man.pdf?  I've had this one for 3, maybe 4 years.

> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> Peter Wallace
> Mesa Electronics
> 
> 
> 
> ___
> 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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-18 Thread Peter C. Wallace

On Mon, 18 Apr 2022, gene heskett wrote:


Date: Mon, 18 Apr 2022 16:37:48 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] nother Q for Peter

On Monday, 18 April 2022 13:49:36 EDT gene heskett wrote:

On Monday, 18 April 2022 10:38:10 EDT Peter C. Wallace wrote:

On Mon, 18 Apr 2022, gene heskett wrote:

Date: Mon, 18 Apr 2022 04:19:27 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"



To: "Enhanced Machine Controller (EMC)"
 Subject: [Emc-users] nother Q for
Peter

Greetings;

How does the A/D on a 7i76D handle overvoltage? I'm considering a
long
tailed vfet pair with a 22k pullup to 42 volts. Does it just goto
full
scale at an $FF output, or will that blow something?


Full scale (inputs will take up to 100V indefinitely)
but adjacent inputs  may read incorrectly if more than about
50V is suppled (due to current injection into parasitic
transistors related to the input ESD diodes of the CPU)


Excellent news Peter, I'm off to the races then.


But the starting gate won't open. I've re-read 7i76man.pdf several times
w/o the method of actually getting the digital value from one of the 4
ports it works for. I have something tied to port-0, but I think that may
be a leftover from before I used the hy-485 module to drive the spindle,
so it looks like I should figure on using port-1.

How does reading an A/D derived digital value from port-1 get done in the
hal file?

Thank you.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis



The pins are:

hm2_5i25.0.7i76.0.0.analogin0
hm2_5i25.0.7i76.0.0.analogin1
hm2_5i25.0.7i76.0.0.analogin2
hm2_5i25.0.7i76.0.0.analogin3


You need to set the 7I76 in a mode that enables the analog inputs 
(modes 1 or 2)








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



Peter Wallace
Mesa Electronics



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


Re: [Emc-users] nother Q for Peter

2022-04-18 Thread gene heskett
On Monday, 18 April 2022 13:49:36 EDT gene heskett wrote:
> On Monday, 18 April 2022 10:38:10 EDT Peter C. Wallace wrote:
> > On Mon, 18 Apr 2022, gene heskett wrote:
> > > Date: Mon, 18 Apr 2022 04:19:27 -0400
> > > From: gene heskett 
> > > Reply-To: "Enhanced Machine Controller (EMC)"
> > > 
> > > 
> > > 
> > > To: "Enhanced Machine Controller (EMC)"
> > >  Subject: [Emc-users] nother Q for
> > > Peter
> > > 
> > > Greetings;
> > > 
> > > How does the A/D on a 7i76D handle overvoltage? I'm considering a
> > > long
> > > tailed vfet pair with a 22k pullup to 42 volts. Does it just goto
> > > full
> > > scale at an $FF output, or will that blow something?
> > 
> > Full scale (inputs will take up to 100V indefinitely)
> > but adjacent inputs  may read incorrectly if more than about
> > 50V is suppled (due to current injection into parasitic
> > transistors related to the input ESD diodes of the CPU)
> 
> Excellent news Peter, I'm off to the races then.

But the starting gate won't open. I've re-read 7i76man.pdf several times 
w/o the method of actually getting the digital value from one of the 4 
ports it works for. I have something tied to port-0, but I think that may 
be a leftover from before I used the hy-485 module to drive the spindle, 
so it looks like I should figure on using port-1.

How does reading an A/D derived digital value from port-1 get done in the 
hal file?

Thank you.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-18 Thread gene heskett
On Monday, 18 April 2022 10:38:10 EDT Peter C. Wallace wrote:
> On Mon, 18 Apr 2022, gene heskett wrote:
> > Date: Mon, 18 Apr 2022 04:19:27 -0400
> > From: gene heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > 
> > 
> > To: "Enhanced Machine Controller (EMC)"
> >  Subject: [Emc-users] nother Q for
> > Peter
> > 
> > Greetings;
> > 
> > How does the A/D on a 7i76D handle overvoltage? I'm considering a
> > long
> > tailed vfet pair with a 22k pullup to 42 volts. Does it just goto
> > full
> > scale at an $FF output, or will that blow something?
> 
> Full scale (inputs will take up to 100V indefinitely)
> but adjacent inputs  may read incorrectly if more than about
> 50V is suppled (due to current injection into parasitic
> transistors related to the input ESD diodes of the CPU)
 
Excellent news Peter, I'm off to the races then. I think there's current 
gain enough in a TIP-120 60 volt darlington to make my idea work. $2.95 a 
10 pack from MPJA.com. With a long-tailed pair, useing the right one for 
a threshold adjuster, so it turns down a pwmgen starting at around 16 
psia, it ought to work just dandy.

What value R to 42 volts would be full scale, effectively limiting it to 
36 and change (full scale) at the input? In that manner the ESD diodes 
should disappear.  Dead accurate isn't required, just decent 
repeatability.

Thank you, stay well, both of you.

> > 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, 1940)
> > If we desire respect for the law, we must first make the law
> > respectable. - Louis D. Brandeis
> > 
> > 
> > 
> > 
> > 
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> Peter Wallace
> Mesa Electronics
> 
> (\__/)
> (='.'=) This is Bunny. Copy and paste bunny into your
> (")_(") signature to help him gain world domination.
> 
> 
> 
> ___
> 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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis





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


Re: [Emc-users] nother Q for Peter

2022-04-18 Thread Peter C. Wallace

On Mon, 18 Apr 2022, gene heskett wrote:


Date: Mon, 18 Apr 2022 04:19:27 -0400
From: gene heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: [Emc-users] nother Q for Peter

Greetings;

How does the A/D on a 7i76D handle overvoltage? I'm considering a long
tailed vfet pair with a 22k pullup to 42 volts. Does it just goto full
scale at an $FF output, or will that blow something?



Full scale (inputs will take up to 100V indefinitely)
but adjacent inputs  may read incorrectly if more than about
50V is suppled (due to current injection into parasitic
transistors related to the input ESD diodes of the CPU)





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, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis





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



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



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