Hal Standalone. some trouble..

More
7 years 1 month ago #145143 by cmorley
You need to make a dummy component first.
Code:
import hal hal.component("dummy") hal.set_p("stepgen.0.maxaccel", "22")

The dummy component makes the module create a shared memory path to HAL.

Chris

Please Log in to join the conversation.

More
7 years 1 month ago #145172 by dab77
Thanks, that made hal.set_p() work.

Please Log in to join the conversation.

More
7 years 1 month ago #145563 by dab77
Do you have any suggestion on how to make stepgen decelerate if, in position mode, I have to stop in the middle of a movement?

Please Log in to join the conversation.

More
7 years 1 month ago #145566 by cmorley
Would simple_tp be helpful?
linuxcnc.org/docs/2.8/html/man/man9/simple_tp.9.html
It's a single joint jogging component - same as linuxcnc uses.

Please Log in to join the conversation.

More
7 years 1 month ago #145567 by cmorley
You could also look at the axis test used in stepconf.
Though I think it stops immediately if you stop in the middle of a jog.

Chris

Please Log in to join the conversation.

Time to create page: 0.042 seconds
Powered by Kunena Forum