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 <ghesk...@shentel.net>
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> >     <emc-users@lists.sourceforge.net>
> > 
> > To: "Enhanced Machine Controller (EMC)"
> > <emc-users@lists.sourceforge.net> 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 <ghesk...@shentel.net>
> >>> Reply-To: "Enhanced Machine Controller (EMC)"
> >>> 
> >>>     <emc-users@lists.sourceforge.net>
> >>> 
> >>> To: "Enhanced Machine Controller (EMC)"
> >>> <emc-users@lists.sourceforge.net> 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 <ghesk...@shentel.net>
> >>>>>> Reply-To: "Enhanced Machine Controller (EMC)"
> >>>>>> 
> >>>>>>     <emc-users@lists.sourceforge.net>
> >>>>>> 
> >>>>>> To: "Enhanced Machine Controller (EMC)"
> >>>>>> <emc-users@lists.sourceforge.net> 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=NNNXXXX 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

Reply via email to