d06 wrote:
> 
> Chris Radek wrote:
>>
>> 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.
>>
> 
> I tried both this:
>   [HAL]
>   HALFILE = stepper_core.hal
>   HALFILE = stepper_pinout.hal
>   SHUTDOWN = stepper_shutdown.hal
> 
> and this:
>   [HAL]
>   HALFILE = stepper_core.hal
>   HALFILE = stepper_pinout.hal
>   HALSHUTDOWN = stepper_shutdown.hal
> 
> Accoring to emc stepper_shutdown.hal never runs...
> 
> 
> What version of emc recognizes [HAL]SHUTDOWN ?

I did some digging.  [HAL]SHUTDOWN was added February 17 to the
development branch.  We released 2.1.0 on January 21.  Although
there have been later 2.1.X releases (latest was 2.1.4 on March
14), we never backported [HAL]SHUTDOWN to the 2.1.X branch.

So its not in any released version right now.

In general, we only do bugfixes in the released version, not new
features, in an effort to avoid accidentally introducing bugs into
the release.  Perhaps this should be considered a "fix" for issues
like yours, rather than a new feature. If so, we could backport it
to the 2.1 branch and it would be in release 2.1.5 when that comes
out.

Until then, you can either get a CVS checkout of the latest
version (if you are adventurous) or use one of the other approaches
that Chris mentioned.

Regards,

John Kasunich


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