On 03/05/2018 10:06 AM, Gene Heskett wrote:
You lost me on this one.  What is the curve definition?  Speaking of
HAL, is the placement order in the main HAL file for something like
this going to bite me if it's put in too early or late in the
declarations? I remember Gene having issues with some of his HAL code
by coding something in too early or too late in the file.

That was in the addf order Mark, the only place in a halfile where order
is important. There, for most uses, you want the order to be such that
even in a 10 module chain, the calculations "fall thru" so that the
results are ready at the end of the servo threads individual cycle. So
you wind up with a halfile that starts with the loadrt or loaduser
statements, then a list of addf's, followed by the sets's, setp's,
net's, and other rules that tie all the logic together. Order is not
important, so I tend to group that stuff into functions as much as
possible so its easier to read and follow what its doing. One can also
instantiate a slower thread, which I've done with the jog wheel stuff in
the pi driving the Sheldon lathe.

There are of course creative exceptions to that rule.

And I had forgotten about the offset module, which replaces the sum2's
I mentioned with a single module to do the same thing.

Okay, gotcha.  Making more and more sense to me now as the dusty cobwebs are being swept away.


Thanks again for your help Andy.

Mark


Thanks Gene.

Mark

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to