WHB04B-6 Manual Pulse Coder

More
8 years 7 months ago #107737 by ctbenergy
There is a machinekit userspace component for the WHB04B-6 from Dipl.-Ing. Raoul Rubien github.com/rubienr/machinekit

With some changes, this userspace component is also running under LinuxCNC.
If anyone is interested, see github.com/ctbenergy/linuxcnc/tree/2.7-feature-xhc-whb04b-6

I've compiled this userspace component under the 2.7 and master branch, but only tested a few basic functions under LinuxCNC 2.7 so far.

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

More
7 years 2 months ago #141973 by denovich
ctbenergy,

Could you share your xhc-whb04b-6.hal file? I have your code compiled under the master branch. Running xhc-whb04b-6 from the command line, I'm seeing all the communication to/from the extension and pendant and it looks good.

I just need help figuring out the pins in that hal file. The code in your repo looks to have pin names that are MachineKit related... stepgen.00.maxvel and stepgen.00.position_scale being particularly problematic. I think steptest.0.maxvel is possibly the linuxcnc equivalent... but I don't know about position_scale. It's not a parameter that I see exposed as a pin.

any help would be greatly appreciated.

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

More
7 years 2 months ago #141977 by PCW
Replied by PCW on topic WHB04B-6 Manual Pulse Coder
stepgen.NN.maxvel and stepgen.NN.position-scale are normal
LinuxCNC pins, exported by LinuxCNCs (and MachineKits)
stepgen component.

man stepgen

(in a terminal window)
for the stepgen manual page tha list all the stepgen pins and functions

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

More
7 years 2 months ago #141992 by denovich
I read the docs...
If I try to reference those pins, I get pin not found.

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

More
7 years 2 months ago #141997 by PCW
Replied by PCW on topic WHB04B-6 Manual Pulse Coder
You will not have those pins unless your configuration loads the stepgen
component.

To see what pins you have, start LinuxCNC with a working hal file
that at least loads the desired components, and issue this command
(from a terminal window)
halcmd show all > all.txt

Now you have a list of all pins,parameters, and signals

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

More
7 years 2 months ago #142006 by denovich
I have the stepgen component loaded... but no stepgen pins for maxvel and position-scale.
I also loaded the steptest component, which lets me read steptest.0.maxvel, but there is no position-scale equivalent that I see.

See attached output from: halcmd show all

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

Time to create page: 0.207 seconds
Powered by Kunena Forum