XHC-HB04 wireless MPG pendant HAL module

More
06 Oct 2013 16:51 #39593 by cncbasher
you appear to have more than one problem

Unrecognized line skipped: POC FMS LEN DIAM COMMENT
xhc-hb04.hal:52: Pin 'and2.0.in0' was already linked to signal 'switches-y1'

the first line may just be a comment or relates to a tool table entry with a missing ; perhaps
the second is saying in effect you already have switches-y1 linked to a pin , before this entry , so perhaps a duplicate entry .

can you archive your complete linuxcnc config folder and attach , it may be quicker to chase down the culprit
The following user(s) said Thank You: rmagnus

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

More
06 Oct 2013 18:16 #39595 by ArcEye

Unrecognized line skipped: POC FMS LEN DIAM COMMENT


Normally this comes up when using an old tool table from a previous version of Linuxcnc
They used to have the headings on the first line as to what each column was for
The following user(s) said Thank You: rmagnus

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

More
06 Oct 2013 19:02 #39596 by andypugh

insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/and2.ko': -1 File exists


What this means is that your config already contains some "and2" functions.
So, the second "loadrt" is trying to load the same module again, but with more instances, and that isn't allowed.
You need to find the first place that there is a "loadrt and2 count=" and increase the count numbers. Then all your new HAL code needs to use the correct names for them.
(ie, probably and2.3, and2.4 and and2.5, as and2.0 is clearly already in use somewhere else)
The following user(s) said Thank You: rmagnus

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

More
07 Oct 2013 01:04 #39598 by rmagnus
Good idea! Here I attach the folder.

I THANK YOU ALL for all the help!

I feel I am getting close to have my pendant working and I am learning a lot!

Have a great weekend!

Sincerely

Rodolfo
Attachments:

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

More
07 Oct 2013 01:24 #39599 by rmagnus
found the and used at Comet.hal file so I changed it from count=5 to count=8 and did the following changes to the xhc.hb04.hal file

net zero xhc-hb04.button-zero => and2.5.in0 and2.6.in0 and2.7.in0
net jog-x and2.5.in1
net jog-y and2.6.in1
net jog-z and2.7.in1

net x0 halui.mdi-command-06 <= and2.5.out
net y0 halui.mdi-command-07 <= and2.6.out
net z0 halui.mdi-command-08 <= and2.7.out


My systemn does not give me any errors but the =0 just does not work :(


just in case here is a tar file as it is now.....

THANK YOU
Rodolfo
I changed as follows

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

More
07 Oct 2013 01:25 #39600 by rmagnus
here is the configs folder as it is now.
everything seems to work except the =0 button

thanks in advance!
Rodolfo
Attachments:

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

More
08 Oct 2013 03:36 #39624 by f1oat
Try to remove the following lines that are no longer useful
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

Also, to have the "=0" key working, you should have selected one axis with the rotary switch on the MPG.
Frederic.
The following user(s) said Thank You: rmagnus

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

More
08 Oct 2013 03:41 #39626 by f1oat
I think the following additional lines are necessary in Comet.hal after line #28 :
addf and2.5 base-thread  
addf and2.6 base-thread 
addf and2.7 base-thread 
Frederic.
The following user(s) said Thank You: rmagnus

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

More
09 Oct 2013 03:25 #39660 by rmagnus
success!!!!

now my =0 button works perfect!

When I press it and have an axis selected it moves the starting point for that axis.

Is it possible to redraw the display automatically like when pressing the touch off button ai tyhe axis screen so the toolpaths that show the job to be routed are moved when I hit =0?

Right now only the xyz thingy with red green and blue arrows moves and the live plot reflects that it effectively was moved, but the toolpath of the job does not move when using the =0 button.

THANK YOU AGAIN!

Sincerely

Rodolfo

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

More
09 Oct 2013 19:50 #39690 by andypugh

Is it possible to redraw the display automatically like when pressing the touch off button ai tyhe axis screen so the toolpaths that show the job to be routed are moved when I hit =0?


It might be possible to force a refresh by reloading the G-code file using axis-remote...

www.linuxcnc.org/docs/html/man/man1/axis-remote.1.html

If that does work, then you could create a custom M-code file then link that to your button.

It isn't what I would call an _elegant_ solution.

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

Time to create page: 0.150 seconds
Powered by Kunena Forum