XHC-HB04 wireless MPG pendant HAL module
06 Oct 2013 16:51 #39593
by cncbasher
Replied by cncbasher on topic XHC-HB04 wireless MPG pendant HAL module
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
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.
06 Oct 2013 18:16 #39595
by ArcEye
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
Replied by ArcEye on topic XHC-HB04 wireless MPG pendant HAL module
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.
06 Oct 2013 19:02 #39596
by andypugh
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)
Replied by andypugh on topic XHC-HB04 wireless MPG pendant HAL module
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.
07 Oct 2013 01:04 #39598
by rmagnus
Replied by rmagnus on topic XHC-HB04 wireless MPG pendant HAL module
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
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
Please Log in or Create an account to join the conversation.
07 Oct 2013 01:24 #39599
by rmagnus
Replied by rmagnus on topic XHC-HB04 wireless MPG pendant HAL module
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
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.
07 Oct 2013 01:25 #39600
by rmagnus
Replied by rmagnus on topic XHC-HB04 wireless MPG pendant HAL module
here is the configs folder as it is now.
everything seems to work except the =0 button
thanks in advance!
Rodolfo
everything seems to work except the =0 button
thanks in advance!
Rodolfo
Please Log in or Create an account to join the conversation.
08 Oct 2013 03:36 #39624
by f1oat
Replied by f1oat on topic XHC-HB04 wireless MPG pendant HAL module
Try to remove the following lines that are no longer useful
Also, to have the "=0" key working, you should have selected one axis with the rotary switch on the MPG.
Frederic.
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.
08 Oct 2013 03:41 #39626
by f1oat
Replied by f1oat on topic XHC-HB04 wireless MPG pendant HAL module
I think the following additional lines are necessary in Comet.hal after line #28 :
Frederic.
addf and2.5 base-thread
addf and2.6 base-thread
addf and2.7 base-thread
The following user(s) said Thank You: rmagnus
Please Log in or Create an account to join the conversation.
09 Oct 2013 03:25 #39660
by rmagnus
Replied by rmagnus on topic XHC-HB04 wireless MPG pendant HAL module
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
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.
09 Oct 2013 19:50 #39690
by andypugh
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.
Replied by andypugh on topic XHC-HB04 wireless MPG pendant HAL module
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