On Wed, Apr 11, 2007 at 09:00:20PM -0600, d06 wrote:
> 
> My machine uses stepgen (type > 1), and a parallel port.
> I would like to stop driving them (zero the port) when EMC exits.
> 
> 
> I found a reference to [HAL]SHUTDOWN ...
> I must have seen this on one of the IRC archives, however it is not in
> any of these files:
>   EMC2_Developer_Manual.pdf
>   EMC2_Integrator_Manual.pdf
>   EMC2_User_Manual.pdf
>   HAL_Documentation.pdf
>   HAL_User_Manual.pdf

Hi d06, we talked about this briefly on IRC and several ideas came to
mind.

Hook axis.N.amp-enable-out to a pin and do the disabling in hardware
(I use this to turn my choppers on/off).  But if you have 3 motors
and are doing winding activation, you've used all 12 outputs on your
port so this isn't going to work.

Use "and2" blocks to gate the stepgen outputs to the parallel port
with axis.N.amp-enable-out as the gate signal.  This is a little messy
but has the advantage of allowing you to turn the outputs on and off
while EMC is running (using estop and machine on/off).  I don't know
whether you want that or not.

Lastly I looked and found that we do have [HAL]SHUTDOWN support like
you found in the archives.  I think it was put in to solve someone's
problem and promptly forgotten.  It obviously didn't make it into the
docs; thanks for checking that and letting us know so we can fix it.

In your shutdown hal file you'll just need something like

unlinkp parport.0.pin-XX-out
setp parport.0.pin-XX-out 0

for each pin.

Regards,
Chris


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to