WHB04B-6 Manual Pulse Coder

More
12 Jul 2017 14:04 #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 or Create an account to join the conversation.

More
12 Jul 2017 14:37 #95733 by nebelnoir
Okay, I'll try in a week

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

More
04 Aug 2017 11:00 #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.
The following user(s) said Thank You: Alex.Shamilich

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

More
08 Aug 2017 15:07 - 08 Aug 2017 15:07 #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.
Last edit: 08 Aug 2017 15:07 by andypugh.

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

More
22 Mar 2018 21:15 #107737 by ctbenergy
There is a machinekit userspace component for the WHB04B-6 from Dipl.-Ing. Raoul Rubien https://github.com/rubienr/machinekit

With some changes, this userspace component is also running under LinuxCNC.
If anyone is interested, see https://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
12 Aug 2019 17:36 #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
12 Aug 2019 18:24 #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
12 Aug 2019 19:48 #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
12 Aug 2019 20:15 #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
12 Aug 2019 22:56 #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
Attachments:

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

Time to create page: 0.202 seconds
Powered by Kunena Forum