Hal Standalone. some trouble..

More
14 Sep 2019 16:44 #145143 by cmorley
You need to make a dummy component first.
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
The following user(s) said Thank You: dab77

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

More
14 Sep 2019 20:31 #145172 by dab77
Thanks, that made hal.set_p() work.

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

More
19 Sep 2019 08:03 #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 or Create an account to join the conversation.

More
19 Sep 2019 08:41 #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 or Create an account to join the conversation.

More
19 Sep 2019 08:44 #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 or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum