- Posts: 6803
- Thank you received: 0
Hal Standalone. some trouble..
7 years 1 month ago #145143
by cmorley
Replied by cmorley on topic Hal Standalone. some trouble..
You need to make a dummy component first.
The dummy component makes the module create a shared memory path to HAL.
Chris
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.
7 years 1 month ago #145172
by dab77
Replied by dab77 on topic Hal Standalone. some trouble..
Thanks, that made hal.set_p() work.
Please Log in to join the conversation.
7 years 1 month ago #145563
by dab77
Replied by dab77 on topic Hal Standalone. some trouble..
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.
7 years 1 month ago #145566
by cmorley
Replied by cmorley on topic Hal Standalone. some trouble..
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.
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.
7 years 1 month ago #145567
by cmorley
Replied by cmorley on topic Hal Standalone. some trouble..
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
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
