Dear all,

I have a Sherline mill with steppers and no encoders (ie. open loop)
I am using a probe, and I patched emc2 so that, if the probe trips when in
non probe move, emc2 estops, and saves my $120 probe from my fat fingers :)

BUT at each estop, I was loosing steps which I felt was not acceptable. I
found that in stepgen, when !enable, the component abruptly stop sending
pulses; so I patched stepgen so that an estop respect maxaccel constraints;
that worked very well and solved my problem.

Some time ago, I told about that on #emc, but some people there suggested
that when driving a 5 ton machine, an estop MUST stop the system ASAP, and
anything else is simply not acceptable; which makes sense. So I kept using
my patch, and did not published it.

Then, last weekend, I upgraded to 2.1.3 from the CVS; stepgen has changed,
so I had to redo the patch in another way. But in the meantime, I digged
into HAL (absolutely superb design !!!) and I thought of an acceptable
solution:

- Create a HAL bit parameter named "smooth_estop" with a default value of 0
- Change the tests "if(!enable)" to "if(!enable %% !smooth_estop)... else
stop smoothly"

PROS:
- This does not change the behaviour of any .ini or .hal script
- This does not change the timing when enabled, and just add a single test
when estopped
- This allows openloop steppers to ALWAYS keep a valid position; I did some
tests, and on my sherline, going from full speed (480 mm/mn) to 0 takes
about 0.08 mm, which I think is acceptable.
- For activating the mod, there is a single line to add to the .hal file.

CONS:
I have not found any :)

Before doing this patch and submitting it, I would like to get opinions from
the list...

Cheers and many thanks for the hard work done in this tremendous software,
and help on #emc

Michel





-------------------------------------------------------------------------
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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to