WHB04B-6 Manual Pulse Coder
13 Aug 2019 00:20 #142010
by denovich
Replied by denovich on topic WHB04B-6 Manual Pulse Coder
I didn't see it until I grep'd through it... but I do see those values listed as parameters. Must be different than a pin, since I can't seem to read them directly. I'll go have a look at the docs and see what I can find.
I am also working on getting smalla's driver working too. After some tweaking I have jogging & buttons working. The display is not...
I am also working on getting smalla's driver working too. After some tweaking I have jogging & buttons working. The display is not...
Please Log in or Create an account to join the conversation.
13 Aug 2019 00:20 - 13 Aug 2019 00:29 #142011
by PCW
Replied by PCW on topic WHB04B-6 Manual Pulse Coder
These are parameters, not pins so toward the end of your list:
27 float RW 0 stepgen.0.maxvel
27 float RW 2780 stepgen.0.position-scale
You can make the list a lot smaller with:
halcmd show all stepgen
27 float RW 0 stepgen.0.maxvel
27 float RW 2780 stepgen.0.position-scale
You can make the list a lot smaller with:
halcmd show all stepgen
Last edit: 13 Aug 2019 00:29 by PCW.
Please Log in or Create an account to join the conversation.
13 Aug 2019 17:25 #142050
by denovich
Replied by denovich on topic WHB04B-6 Manual Pulse Coder
MachineKit seems to employ a component for accessing these parameters as pins: HAL_PRU_GENERIC
www.machinekit.io/docs/man/man9/hal_pru_generic/
Again, I don't see a LinuxCNC equivalent...
But I think it is a moot point (at least as far as I'm concerned)...
I've managed to beat smalla's code into submission and have a working display and jogging in the master branch. Still some cleanup to do, but I can now see the light at the end of the tunnel.
www.machinekit.io/docs/man/man9/hal_pru_generic/
Again, I don't see a LinuxCNC equivalent...
But I think it is a moot point (at least as far as I'm concerned)...
I've managed to beat smalla's code into submission and have a working display and jogging in the master branch. Still some cleanup to do, but I can now see the light at the end of the tunnel.
Please Log in or Create an account to join the conversation.
13 Aug 2019 22:17 #142086
by andypugh
Replied by andypugh on topic WHB04B-6 Manual Pulse Coder
hal_pru_generic is an alternative to stepgen, in much the same way as the Mesa (hm2_5i25.0.stepgen.nn...) and Pico stepgens are, They all may or may not make the step timing a pin or a parameter, it is a decision made by the original programmer.
Historically parameters existed as they used less HAL memory than a pin.
Historically parameters existed as they used less HAL memory than a pin.
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds