On Wednesday 22 July 2020 10:55:47 Jon Elson wrote:

> On 07/22/2020 01:17 AM, Gene Heskett wrote:
> > Greetings all;
> >
> > The launch of linuxcnc on the pi is without any motor power until
> > the F2 button is pushed.  So at launch time I get messages about the
> > z drive being tripped.
> >
> > So I need a 1 or 2 second delay before that bit is sent on thru, but
> > instant transmission once timed out, giving the driver a chance to
> > get all its stuff in one sock from the powerup enabled by the F2
> > key. I want to block any noise during the powerup surge.
>
> OK, so your drives indicate fault status when disabled?

No, it is not specifically disabled, in fact thats not even wired up in 
the drivers since the default is on. But the new 3 phase driver does 
have a fault output, and it is apparently closed during power up 
initialization.

I've assumed this output is similar to the others and I have its minus 
terminal grounded, and am watching its plus terminal with gpio.0061.in 
which will report true except when its tripped, or for a few 
milliseconds at powering up.

They are powred down by removing the electrical power src if linuxcnc 
isn't running, and then its running, the electrical power is only 
activated when f1 is released and f2 is enabled.  That is controlled by 
BIG SSR's driven by motion.motion-enabled. 

So I'm thinking a oneshot, started by motion.motion-enabled, generating a 
true to an or2 for long enough to cover this power up burp.  That 
oneshot and the or2 would have to be above it in the addf order, but 
below motion, so it would be effective when the message module and the 
rest it it looks.  That does sound like it would work.  I'll try it.

I made that work but lost the message, probably by removeing the signal, 
but now I have 2 more messages advising me I must be in joint mode or 
disabled before I can unhome, but it unhomes both axis's anyway!  And 
its all delayed until the next keypress because halui only runs when it 
feels like it.  Can that be fixed somehow? Never mind, a typu. Fixing 
that apparently got rid of the other 2 messages. And I have discovered 
that the motor shutdown allows it to bounce back 15 or 20 thou from the 
chuck jaw I am running into for testing.

So this problem can be marked as solved. See what the freezer has for 
dinner makeins next.  And since I can't eat chicken, take all the canned 
stuff with chicken up to the next door neighbors.  I bought it to feed 
the missus but shes now in a good sam home 50+ miles east of here.
> Yes, a lot of older drives (Copley, Westamp,
> Servo Dynamics) do this.  I made up a module with an
> optocoupler, a CMOS NAND gate and
> some RC delays to do this.  The servo amps usually take a 5
> V ENABLE/.  When the ENABLE/
> is high, the circuit closes the E-stop loop by turning the
> optocoupler on.  When ENABLE/ goes
> low, it continues to do this for about a second, then allows
> the servo amp's FAULT output to control the opto.
>
> Jon
>
>
> _______________________________________________
> 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 <http://geneslinuxbox.net:6309/gene>


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

Reply via email to