On Thu, 24 Jan 2019, Gene Heskett wrote:
Date: Thu, 24 Jan 2019 14:25:25 -0500
From: Gene Heskett <ghesk...@shentel.net>
Reply-To: "Enhanced Machine Controller (EMC)"
<emc-users@lists.sourceforge.net>
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] PCW, spindle enable for pico pwm-servo,
needs 12 volts.
On Thursday 24 January 2019 10:48:14 Peter C. Wallace wrote:
On Thu, 24 Jan 2019, Gene Heskett wrote:
Date: Thu, 24 Jan 2019 02:33:54 -0500
From: Gene Heskett <ghesk...@shentel.net>
Reply-To: "Enhanced Machine Controller (EMC)"
<emc-users@lists.sourceforge.net>
To: emc-users@lists.sourceforge.net
Subject: [Emc-users] PCW, spindle enable for pico pwm-servo, needs
12 volts.
On my G0704, which has the OEM motor I'm abusing, I've been studying
up on how to get a 12 volt enable signal, which currently is a
sparkfun contraption driven by a std bob signal.
But with the 7i76d, can I feed 12 volts into the pin a vfd's 12
volts would normally drive, ground the Spindle- terminal, and get
the 12 volts for spindle enable from the Spindle Enable+? Page 18
seems to indicate I could source a few ma that way. I'll be using a
different pin for the pwm signal that amplifier needs, probably the
pwm will show u on step or dir 4, on tb3?
The ENA+ and ENA- are just a (normally open) switch (OPTOcoupler
transistor) so can be use as such making sure you dont exceed the
current rating (50 mA) and obey the polarity
Obviously this is a bridge not crossed yet. And in investigating
where the pwm might show up, there isn't such a critter in the 5i25
as programmed for the 7i76d! Looks like I will have to load a
software pwmgen and feed it out of a gpio on the 5i25's p2? Why is
this not an error?:
Standard 7I76 firmware does not have a PWM generator, there is
firmware tha replaces stepgen-04 with a PWM gen, if a 5V PWM signal is
OK
On checking dmsg, there is a pwmgen available on p2 of the 5i25 with a
firmware in it now:
1067582.985192] hm2/hm2_5i25.0: IO Pin 025 (P2-05): PWMGen #0, pin
Out0 (PWM or Up) (Output)
[1067582.985196] hm2/hm2_5i25.0: IO Pin 026 (P2-06): PWMGen #0, pin
Not-Enable (Output)
[1067582.985200] hm2/hm2_5i25.0: IO Pin 027 (P2-07): PWMGen #0, pin
Out1 (Dir or Down) (Output)
Which does NOT appear in the halmeter menu's. Probably because its not
hooked to anything ATM.
So I'll use that. I assume the 7i76d has no knowledge of that unless I
cross couple the ENA's in .hal.
Makeing a duplicate of this box to run this 6040 with, the 7i76 spindle
outputs will I assume drive that VFD. Just needs another wire in the
cable.
http://freeby.mesanet.com/5i25_7i76_1px2d.bit
Got it, in case thats not whats in the 5i25 now in the G0704's computer.
If you use this firmware you will have a PWMgen on the stepgen 04 outputs on
the 7I76D
This is _MUCH_ safer to use than the 5I25 pins directly
The 5I25 direct I/O pins can be easily damaged by ground bumping that
exceeds the -0.5V limit of the input protection diodes
Just touching a 5I25 pin to frame ground (with >0.5V of non current limited AC
or HF noise) can damage the input clamp diodes on the FPGA or bus switch
(positive voltages up to 7V are OK, its the -0.5V thats the issue)
loadrt hm2_pci config="num_encoders=1 num_pwmgens=1 num_stepgens=4"
I'll sort it, but tis a surprise that no pwmgen shows in the
halmeter menu. Or is it there, and completely gobbled up by the
builtin spinx1 in the 7i76d? Ack the 2 pass output yes its there.
Must figure out how to access its raw output... For the pico amp the
analog out on tb4-2 that would feed a vfd's analog input is not
usable. Looks like I'll need a software pwmgen feeding a gpio on p2,
And feed both pwmgens? Hummm.
Advice needed Peter. I don't think I'm seeing the whole picture.
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)
Genes Web page <http://geneslinuxbox.net:6309/gene>
_______________________________________________
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)
Genes Web page <http://geneslinuxbox.net:6309/gene>
_______________________________________________
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