XHC-HB04 wireless MPG pendant HAL module

More
02 Oct 2013 01:05 #39462 by rmagnus
I dont know what to do next. I am a newbie.

I appreciate your help very much! Thank you

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

More
02 Oct 2013 01:07 - 02 Oct 2013 01:10 #39463 by cncbasher
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
xhc-hb04.hal:23: Pin 'axis.3.jog-enable' does not exist

check this line in xhc-hb04.hal line 23 has this pin been renamed or commented out perhaps
or in your main hal file look for any problems with axis.3.jog-enable

also any references to POC FMS LEN DIA COMMENT , either a typo or commented out line etc
Last edit: 02 Oct 2013 01:10 by cncbasher.

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

More
02 Oct 2013 01:10 #39465 by andypugh
The clues are nearly always in this part:

Debug file information:

In this case

xhc-hb04.hal:23: Pin 'axis.3.jog-enable' does not exist


It looks like the xhc-hb04.hal file is configured for a 4 axis machine (axes 0, 1, 2, 3) and you probably only have 3 axes.
Comment-out line 23 (using a # character at the beginning of the line) and any other line that mentions axis.3
The following user(s) said Thank You: rmagnus

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

More
02 Oct 2013 03:44 #39469 by rmagnus
Indeed I dont have a 4th axis.

So I commented all the refernces and then I got this error:
xhc-ho04:47 Pin 'alui.mdi-command-06' does not exist
So I commented out these lines:
# X=0, Y=0, Z=0
# net x0 halui.mdi-command-06 xhc-hb04.button-x0
#net y0 halui.mdi-command-07 xhc-hb04.button-y0
#net z0 halui.mdi-command-08 xhc-hb04.button-z0
#net origin halui.mdi-command-09 xhc-hb04.button-goto-zero

which I am afraid are useful.

And then got this error:
custom_postgui.hal:7 pin 'halui.jog-speed' is connected to a signal2063

sorry to bother you again.... ama I getting close?

Thanks

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

More
02 Oct 2013 03:50 #39470 by andypugh

xhc-ho04:47 Pin 'alui.mdi-command-06' does not exist

"alui" or 'halui" ? ie, is it just a typo, or does the halui command not exist?

# X=0, Y=0, Z=0
# net x0 halui.mdi-command-06 xhc-hb04.button-x0
#net y0 halui.mdi-command-07 xhc-hb04.button-y0
#net z0 halui.mdi-command-08 xhc-hb04.button-z0
#net origin halui.mdi-command-09 xhc-hb04.button-goto-zero
which I am afraid are useful.

Those refer to G-code commands in the INI file. See MDI_COMMAND here:
www.linuxcnc.org/docs/html/config/ini_co..._sub_halui_section_a

[/quote]custom_postgui.hal:7 pin 'halui.jog-speed' is connected to a signal[/quote]
Yes, in this case almost certainly related to the joystick that you plugged back in already trying to control jog-speed.

Do you intend to keep both the pendant and the joystick? That might be a bit tricky (who wins if they both want to jog at the same time?)

Is the joystick HAL file separate, or mixed up with the main machine hal? If it is a separate file, just comment it out in the INI file.
The following user(s) said Thank You: rmagnus

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

More
02 Oct 2013 04:27 #39471 by rmagnus
It was my mistake I wrote alui but in fact it is Halui, sorry

I will check MDI_COMMAND

You are helping me A LOT. I hardly unterstand all what we have done and I did not know where to look for, THANK YOU

I do not want the pendant and joystick at the same time.

I will look for the place to comment and get back to you.

THANK YOU VERY MUCH

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

More
02 Oct 2013 09:03 #39472 by rmagnus
SUCCESS!!!

It is finally working!!!!!

THANK YOU ALL!!!!!!

Tomorrow I will test in detail, but today I got to jog and change the jogging speed.

The display shows WC and different coordinates than the computer screen, I imagine it is world coordinates.

I felt like a complete idiot today understanding very little. And I have used computers for 30 years! But never linux.

I would like to learn more about linux and linuxcnc so I am more proficient in cases like this.

Can you guys recommend me where to read?

I imagine I have to learn about HAL and Linuxcnc more. And about installing devices in Linux.

I used Unix 30 years ago a lot, but today I was fighting even with sudo and folders.

Anyway, I will go to sleep today happy. Thanks again guys!

Best regards

Rodolfo

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

More
02 Oct 2013 16:01 #39476 by andypugh

I would like to learn more about linux and linuxcnc so I am more proficient in cases like this.
Can you guys recommend me where to read?


You have already started to learn more. Pretty much all of what I know I learned either from making the mistake myself, or by researching the problem someone else was having (here or on the mailing list or IRC) from a position of slightly more information.

One document well worth reading, though, is:
linuxcnc.org/docs/html/hal/intro.html
linuxcnc.org/docs/html/hal/basic_hal.html
And then the "Realtime components and kernel modules" section here:
linuxcnc.org/docs/html/
The following user(s) said Thank You: rmagnus

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

More
02 Oct 2013 23:46 #39488 by rmagnus
Hello all

The pendant is working but the section for touchoff for x y and z gives me an error at line 47 of zhc-hb04.hal
saying that pin halui.mdi-command-06 does not exist, so I have no tochoff capability from the pendant.

here are the rows that I have to comment out in order to use the pendant:
# X=0, Y=0, Z=0
net x0 halui.mdi-command-06 xhc-hb04.button-x0
net y0 halui.mdi-command-07 xhc-hb04.button-y0
net z0 halui.mdi-command-08 xhc-hb04.button-z0
net origin halui.mdi-command-09 xhc-hb04.button-goto-zero

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

More
02 Oct 2013 23:58 #39489 by cncbasher
in your INI file you should have the following entrys

[HALUI]
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=G10 L20 P1 X0
MDI_COMMAND=G10 L20 P1 Y0
MDI_COMMAND=G10 L20 P1 Z0
MDI_COMMAND=G0 X0 Y0 Z0

the last 4 being the important ones , which are in order of buttons x ,y ,z goto zero
i.e command 6 through to 9 ( these in order are 0,1,2,3,4,5,6,7,8,9 )
which can be confusing starting at 0

then uncomment the rows in your xhc hal file
The following user(s) said Thank You: rmagnus

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

Time to create page: 0.190 seconds
Powered by Kunena Forum