- Posts: 230
- Thank you received: 0
WHB04B-6 wheel does not run
4 years 6 months ago #240869
by RoberCNC
WHB04B-6 wheel does not run was created by RoberCNC
Hello community.
I'm trying to implement an MPG WHB04B-6 on a machine, I've followed some well-known tutorials as well as the documentation about it, I'll tell you... loading and configuring the receiver ok, testing via terminal ok too, but once the file is created .hal of the MPG with its respective call in the INI, the first thing that has caught my attention is that a lot of signal errors have been appearing that are already linked when starting the machine.
To make some first tests and see that the steering wheel works I have been deactivating lines with "#" to be able to turn on the machine. Once I get it, I open the HAL configuration and test the buttons and others, everything is fine, I press, they work, the homming makes the machine start home, start starts the program, the axis and step selectors do what is expected, etc. but when turning the wheel doesn't move or do anything.
I attach the .hal file of the wheel to see if you can help me, I don't know if the error comes from one of the lines that gave me an error is the one that links the machine.is-on signals.
I'm trying to implement an MPG WHB04B-6 on a machine, I've followed some well-known tutorials as well as the documentation about it, I'll tell you... loading and configuring the receiver ok, testing via terminal ok too, but once the file is created .hal of the MPG with its respective call in the INI, the first thing that has caught my attention is that a lot of signal errors have been appearing that are already linked when starting the machine.
To make some first tests and see that the steering wheel works I have been deactivating lines with "#" to be able to turn on the machine. Once I get it, I open the HAL configuration and test the buttons and others, everything is fine, I press, they work, the homming makes the machine start home, start starts the program, the axis and step selectors do what is expected, etc. but when turning the wheel doesn't move or do anything.
I attach the .hal file of the wheel to see if you can help me, I don't know if the error comes from one of the lines that gave me an error is the one that links the machine.is-on signals.
Please Log in to join the conversation.
4 years 6 months ago #240912
by RoberCNC
Replied by RoberCNC on topic WHB04B-6 wheel does not run
Could it be because none of the jog signals and pins are actually linked to anything on the machine? jog-scale, jog-counts, jog-enable and jog-vel-mode appear in the MPG file but I've been looking around and can't find anything in the .hal file.
I don't know what it should really link with, in the HAL configuration they appear but referred to joint not axis.
Some help?
Thx.
I don't know what it should really link with, in the HAL configuration they appear but referred to joint not axis.
Some help?
Thx.
Please Log in to join the conversation.
4 years 6 months ago #240917
by chris@cnc
Replied by chris@cnc on topic WHB04B-6 wheel does not run
Yes, your axis select signal is disabled or going into the dark.
Here is an example of my working config. But this config will not be working for you. So do not copy it. Take a look till line 102 and compare where your count, select and scale data goes. I guess if your config written by pncconf are only small changes necessary.
And run linuxcnc in terminal. You can see some issues direct and open second terminal and type
Plug in your driver stick. You will see direct message log from kernel or driver errors
Code:
# "selected axis" signals
#####net pdnt.axis.X.select whb.halui.axis.x.select halui.axis.x.select
#####net pdnt.axis.y.select whb.halui.axis.y.select halui.axis.y.select
#####net pdnt.axis.Z.select whb.halui.axis.z.select halui.axis.z.select
#####net pdnt.axis.A.select whb.halui.axis.a.select halui.axis.a.select
net pdnt.axis.X.select whb.halui.axis.x.select
net pdnt.axis.y.select whb.halui.axis.y.select
net pdnt.axis.Z.select whb.halui.axis.z.select
net pdnt.axis.A.select whb.halui.axis.a.select
And run linuxcnc in terminal. You can see some issues direct and open second terminal and type
Code:
sudo tail -f /var/log/messages
Please Log in to join the conversation.
4 years 6 months ago #240921
by RoberCNC
Replied by RoberCNC on topic WHB04B-6 wheel does not run
Thank you very much Chris.
I will look at it carefully. A priori, everything seems very different from the documentation file and somewhat complicated , I see that you even have a mux. What I will look at are the posts you have attached (great idea, I'm writing it down). Nothing conflicts with the HAL file? I see that you have lines that I had to comment out, such as halui.machine.is-on and the like.
I will look at it carefully. A priori, everything seems very different from the documentation file and somewhat complicated , I see that you even have a mux. What I will look at are the posts you have attached (great idea, I'm writing it down). Nothing conflicts with the HAL file? I see that you have lines that I had to comment out, such as halui.machine.is-on and the like.
Please Log in to join the conversation.
4 years 6 months ago #240925
by chris@cnc
Replied by chris@cnc on topic WHB04B-6 wheel does not run
This line enable the Signal "halui.machine.is-on" your handwheel. If this low is your handwheel off and no counts goes out.
Same as "halui.machine.is-off". Usually is this Pin used in your first level *.hal and that the reason why you get trouble here. So disable this line in the other *.hal file or write "whb.halui.machine.is-on" at this place too.
Same as "halui.machine.is-off". Usually is this Pin used in your first level *.hal and that the reason why you get trouble here. So disable this line in the other *.hal file or write "whb.halui.machine.is-on" at this place too.
Code:
net machine.is-on halui.machine.is-on whb.halui.machine.is-on
Please Log in to join the conversation.
4 years 6 months ago #240928
by RoberCNC
Replied by RoberCNC on topic WHB04B-6 wheel does not run
The other *.hal the main you mean?
Please Log in to join the conversation.
4 years 6 months ago #240930
by chris@cnc
Replied by chris@cnc on topic WHB04B-6 wheel does not run
Yes, main file. I use 7 *.hal.
ini, io, axis, mpg, spindle, pyvcp, and post_gui. Not so easy to look all over but I like it short.
ini, io, axis, mpg, spindle, pyvcp, and post_gui. Not so easy to look all over but I like it short.
Please Log in to join the conversation.
4 years 6 months ago #240981
by RoberCNC
"tail: cannot open '/var/log/messages' for reading: No such file or directory
tail: no files remaining"On the other hand, reading the file that you have attached (thank you very much), as far as I can understand, everything related to wheel jogging is done through the ilowpass and mpgsteps pins that you have created, should I do the same?
As a detail and in case it is relevant, the machine in particular is a gantry type, with dual Y axis, joint1 and joint2, although I see that the jogging is aimed at the axis.
Thx.
Replied by RoberCNC on topic WHB04B-6 wheel does not run
What driver stick are you referring to? if I do that in the second terminal it returns this:And run linuxcnc in terminal. You can see some issues direct and open second terminal and typesudo tail -f /var/log/messagesPlug in your driver stick. You will see direct message log from kernel or driver errors
"tail: cannot open '/var/log/messages' for reading: No such file or directory
tail: no files remaining"On the other hand, reading the file that you have attached (thank you very much), as far as I can understand, everything related to wheel jogging is done through the ilowpass and mpgsteps pins that you have created, should I do the same?
As a detail and in case it is relevant, the machine in particular is a gantry type, with dual Y axis, joint1 and joint2, although I see that the jogging is aimed at the axis.
Thx.
Please Log in to join the conversation.
4 years 6 months ago #241004
by chris@cnc
Replied by chris@cnc on topic WHB04B-6 wheel does not run
I mean the WHB04 USB receiver. it gives a message in the syslog. otherwise look in the log directory. there must be a file that records this. The reason for mpgstep is that I only want 0.01-1mm steps. and at 1mm increments, ilowpass is very comfortable. the machine drives very softly. I don't know how it feels with stepper motors. and it's okay with the gantry. the step signal goes to the axis signal.
Please Log in to join the conversation.
4 years 6 months ago #241005
by RoberCNC
Replied by RoberCNC on topic WHB04B-6 wheel does not run
So that part would be worth it to me? steppers are no problem, it goes with servos. First I want to move the machine with the wheel, the rest and I will be occupying after.
Really the only thing I would need to know is how and with which I have to link the jog signals.
As you will have seen I am a complete ignorant in HAL, I am completely lost.
Really the only thing I would need to know is how and with which I have to link the jog signals.
As you will have seen I am a complete ignorant in HAL, I am completely lost.
Please Log in to join the conversation.
Time to create page: 0.220 seconds
