axis.n.in-position does not work in mdi/auto

More
31 Oct 2011 15:16 #14469 by andypugh
strykerg wrote:

addf near.0 base-thread

(sice i need this to be fast i would add it to the base thread...)


Nothing with floating point can go in the base thread. This needs to go in the servo thread. (the velocity pin will only change in the servo thread anyway).

Make sure you add the "near" function earlier than the stepgen functions, so that the drive turns back on before the pulses start.

Please Log in or Create an account to join the conversation.

More
31 Oct 2011 16:31 #14470 by strykerg
oh ok i get it. so the actual movement is calculated in the servo thread anyway. so the pin's change should be as fast as the first step.o

in about 2-3 hours i will be at home and try it out. i will let you know.

thanks four your great help for now.

Please Log in or Create an account to join the conversation.

More
31 Oct 2011 21:11 #14474 by Rick G
The near works for me in a similar set up.

The man page Andy pointed to has the info on setting it up.
You can set one input to 0 and use that to compare to the hal pin.

Rick G

Please Log in or Create an account to join the conversation.

More
31 Oct 2011 21:23 #14475 by strykerg
hi guys,

thanks both for all your help.

everything worked as it should and i had no problems at all.

i am finally starting to understand how things work with hal and I am seeing how powerful and flexible emc2 is.


thanks again for all your help

best regards

Please Log in or Create an account to join the conversation.

More
01 Nov 2011 10:22 #14479 by Rick G
Great, glad to hear you are up and running.

Rick G

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum