WHB04B-6 Manual Pulse Coder

More
9 years 3 months ago #95731 by smalla
Replied by smalla on topic WHB04B-6 Manual Pulse Coder
There is a very similar MPG named PHB04B
PHB04B is called programmable.

And the doc say the display is four rows, 11+16+16+16 chars can be used.

If anyone gets the 4th row display something, please explain how to do that.

Please Log in to join the conversation.

More
9 years 3 months ago #95733 by nebelnoir
Okay, I'll try in a week

Please Log in to join the conversation.

More
9 years 2 months ago #97000 by smalla
Replied by smalla on topic WHB04B-6 Manual Pulse Coder
It seems You are working too hard, and dont have time :)

Meanwhile I have completed coding of the driver. There are still work to be done, but for basic movements it seems OK.

Needs some testing though:
please clone this repo and build the whb04b driver
github.com/smalla/linuxcnc
from the src dir run this command to load the necessary config files:
../scripts/linuxcnc ../configs/sim/axis/whb04b/whb04b-6.ini

it would be nice if someone is pointed me in the right direction on how this can be included in the mainline linuxcnc repository. Im not a coder, this is my first job done, so be patient.

Please Log in to join the conversation.

More
9 years 2 months ago #97177 by andypugh

smalla wrote: it would be nice if someone is pointed me in the right direction on how this can be included in the mainline linuxcnc repository. Im not a coder, this is my first job done, so be patient.


Some ways to contribute are described here:
linuxcnc.org/docs/2.7/html/code/contributing-to-linuxcnc.html

You should just be able to submit a pull-request to the LinuxCNC github.

Please Log in to join the conversation.

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 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 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 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 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 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 to join the conversation.

Time to create page: 0.201 seconds
Powered by Kunena Forum