XHC-HB04 wireless MPG pendant HAL module
01 Feb 2015 12:45 #55541
by dgarrett
Replied by dgarrett on topic XHC-HB04 wireless MPG pendant HAL module
Excerpts from your ini file (comments follow):
This line is nonsensical, remove it:
This line is a stanza header, you should copy a complete stanza
from a working simulator configuration:
This line is also a stanza header, you should copy the complete stanza
from a working simulator configuration:
This line is also a stanza header but you included no entries. Again,
copy entries from a working simulator configuration is recommended:
Suggestions:
1) Experiment with one of the working simulator configurations until you understand
what the options do.
2) To modify an existing configuration, make sure that it is a _working_
configuration before you start. Make backup copies of any file you edit
or preferably copy a complete config directory and work on the copied directory.
Then follow the instructions in the README file.
3) When you want help and post a configuration, it will save a lot of time
for the folks trying to help if you post all files in the configuration
directory (use zip).
Notes:
a) The sim configs use a nine axis simulation to demonstrate use of the four
axis support provided by the xhc-hb04 device. For configurations with
fewer axes, you will need to modify 'four-item' lines like:for example for a three axis, xyz machine:
b) The sim configs use a halfile named xhc-hb04.tcl that loads
a helper component (pendant_util) and makes all hal connections.
For _simple_ configurations, no user added hal components or
connections are needed.
c) A number of halui.*, motion.*, and axis.N.* pins are used and
they must be available (e.g., not connected by previous halfiles).
[HAL]
HALUI = halui
HALFILE = EMCO_PC50_G540.hal
HALFILE = custom.hal
HALFILE = /usr/local/bin/xhc-hb04.hal
POSTGUI_HALFILE = custom_postgui.hal
HALFILE=xhc-hb04.tcl
HALFILE=monitor_xhc-hb04.tcl
[XHC-HB04_CONFIG]
[XHC-HB04_BUTTONS]
[HALUI]
This line is nonsensical, remove it:
HALFILE = /usr/local/bin/xhc-hb04.hal
This line is a stanza header, you should copy a complete stanza
from a working simulator configuration:
[XHC-HB04_CONFIG]
This line is also a stanza header, you should copy the complete stanza
from a working simulator configuration:
[XHC-HB04_BUTTONs]
This line is also a stanza header but you included no entries. Again,
copy entries from a working simulator configuration is recommended:
[HALUI]
Suggestions:
1) Experiment with one of the working simulator configurations until you understand
what the options do.
2) To modify an existing configuration, make sure that it is a _working_
configuration before you start. Make backup copies of any file you edit
or preferably copy a complete config directory and work on the copied directory.
Then follow the instructions in the README file.
3) When you want help and post a configuration, it will save a lot of time
for the folks trying to help if you post all files in the configuration
directory (use zip).
Notes:
a) The sim configs use a nine axis simulation to demonstrate use of the four
axis support provided by the xhc-hb04 device. For configurations with
fewer axes, you will need to modify 'four-item' lines like:
[XHC_HB04_CONFIG]
coords = x y z c
scales = 1 -1 1 1
[XHC_HB04_CONFIG]
coords = x y z
scales = 1 1 1
b) The sim configs use a halfile named xhc-hb04.tcl that loads
a helper component (pendant_util) and makes all hal connections.
For _simple_ configurations, no user added hal components or
connections are needed.
c) A number of halui.*, motion.*, and axis.N.* pins are used and
they must be available (e.g., not connected by previous halfiles).
Please Log in or Create an account to join the conversation.
01 Feb 2015 23:43 #55552
by emcocnc
Replied by emcocnc on topic XHC-HB04 wireless MPG pendant HAL module
The issue that I am having is that I have a 3 axis machine, but it is trying to pull up a 4th axis from the sim configurations.
So far, I had the simulator working, transferred the files needed to my working configuration directory. So at this point, what files should I edit to get rid of this axis 3 pin / 4th axis?
So far, I had the simulator working, transferred the files needed to my working configuration directory. So at this point, what files should I edit to get rid of this axis 3 pin / 4th axis?
Please Log in or Create an account to join the conversation.
01 Feb 2015 23:55 - 02 Feb 2015 03:41 #55553
by garulus
Replied by garulus on topic XHC-HB04 wireless MPG pendant HAL module
As I understand, you have to edit your ini file:
From:
[XHC_HB04_CONFIG]
coords = x y z c
scales = 1 -1 1 1
To:
[XHC_HB04_CONFIG]
coords = x y z
scales = 1 1 1
Bud I know, that I don’t know much about it.
If somebody still have patience .. please look at my files, and tell me what I’m doing wrong?
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.5
Machine configuration directory is '/home/cnc/linuxcnc/configs/TEST'
Machine configuration file is 'TEST.ini'
INIFILE=/home/cnc/linuxcnc/configs/TEST/TEST.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=4380
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
xhc-hb04: connection lost, cleaning up
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
xhc-hb04.tcl: !!! <halui.mdi-command-00> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.spindle.stop> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.home-all> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-01> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-02> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-03> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-06> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-07> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.estop.activate> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.program.step> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-10> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.spindle.start> target pin does not exist, continuing
Pin 'halui.program.is-idle' does not exist
while executing
"hal net pendant:is-idle <= halui.program.is-idle => pendant_util.is-idle"
("eval" body line 1)
invoked from within
"eval hal net $args"
(procedure "net" line 1)
invoked from within
"net pendant:is-idle <= halui.program.is-idle => pendant_util.is-idle"
(procedure "std_start_pause_button" line 5)
invoked from within
"std_start_pause_button"
(procedure "connect_pins" line 14)
invoked from within
"connect_pins "
(file "xhc-hb04.tcl" line 404)
invoked from within
"source $filename"
invoked from within
"set result [source $filename]"
(file "/usr/bin/haltcl" line 55)
4380
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 4103.626829] I-pipe: Domain RTAI registered.
[ 4103.626854] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 4103.626863] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 4103.627020] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 4103.627028] PIPELINE layers:
[ 4103.627036] fbdaae20 9ac15d93 RTAI 200
[ 4103.627043] c085cb20 0 Linux 100
[ 4103.680581] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 4103.681624] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 4103.681643] RTAI[sched]: hard timer type/freq = APIC/8312460(Hz); default timing: periodic; linear timed lists.
[ 4103.681655] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1596282000 hz.
[ 4103.681664] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 4103.683310] RTAI[usi]: enabled.
[ 4103.773119] RTAI[math]: loaded.
[ 4103.906714] config string '0x378 out'
[ 4107.370900] RTAI[math]: unloaded.
[ 4107.422608] SCHED releases registered named ALIEN RTGLBH
[ 4107.487109] RTAI[malloc]: unloaded.
[ 4107.584031] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 4107.590184] I-pipe: Domain RTAI unregistered.
[ 4107.590367] RTAI[hal]: unmounted.
From:
[XHC_HB04_CONFIG]
coords = x y z c
scales = 1 -1 1 1
To:
[XHC_HB04_CONFIG]
coords = x y z
scales = 1 1 1
Bud I know, that I don’t know much about it.
If somebody still have patience .. please look at my files, and tell me what I’m doing wrong?
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.5
Machine configuration directory is '/home/cnc/linuxcnc/configs/TEST'
Machine configuration file is 'TEST.ini'
INIFILE=/home/cnc/linuxcnc/configs/TEST/TEST.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=4380
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
xhc-hb04: connection lost, cleaning up
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
xhc-hb04.tcl: !!! <halui.mdi-command-00> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.spindle.stop> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.home-all> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-01> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-02> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-03> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-06> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-07> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.estop.activate> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.program.step> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.mdi-command-10> target pin does not exist, continuing
xhc-hb04.tcl: !!! <halui.spindle.start> target pin does not exist, continuing
Pin 'halui.program.is-idle' does not exist
while executing
"hal net pendant:is-idle <= halui.program.is-idle => pendant_util.is-idle"
("eval" body line 1)
invoked from within
"eval hal net $args"
(procedure "net" line 1)
invoked from within
"net pendant:is-idle <= halui.program.is-idle => pendant_util.is-idle"
(procedure "std_start_pause_button" line 5)
invoked from within
"std_start_pause_button"
(procedure "connect_pins" line 14)
invoked from within
"connect_pins "
(file "xhc-hb04.tcl" line 404)
invoked from within
"source $filename"
invoked from within
"set result [source $filename]"
(file "/usr/bin/haltcl" line 55)
4380
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 4103.626829] I-pipe: Domain RTAI registered.
[ 4103.626854] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 4103.626863] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 4103.627020] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 4103.627028] PIPELINE layers:
[ 4103.627036] fbdaae20 9ac15d93 RTAI 200
[ 4103.627043] c085cb20 0 Linux 100
[ 4103.680581] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 4103.681624] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 4103.681643] RTAI[sched]: hard timer type/freq = APIC/8312460(Hz); default timing: periodic; linear timed lists.
[ 4103.681655] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1596282000 hz.
[ 4103.681664] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 4103.683310] RTAI[usi]: enabled.
[ 4103.773119] RTAI[math]: loaded.
[ 4103.906714] config string '0x378 out'
[ 4107.370900] RTAI[math]: unloaded.
[ 4107.422608] SCHED releases registered named ALIEN RTGLBH
[ 4107.487109] RTAI[malloc]: unloaded.
[ 4107.584031] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 4107.590184] I-pipe: Domain RTAI unregistered.
[ 4107.590367] RTAI[hal]: unmounted.
Last edit: 02 Feb 2015 03:41 by garulus. Reason: zip reloaded
Please Log in or Create an account to join the conversation.
02 Feb 2015 00:26 #55554
by ArcEye
Replied by ArcEye on topic XHC-HB04 wireless MPG pendant HAL module
The zip is corrupt, unrecognised format
Please Log in or Create an account to join the conversation.
02 Feb 2015 03:42 #55564
by garulus
Replied by garulus on topic XHC-HB04 wireless MPG pendant HAL module
sorry zip reloaded
Please Log in or Create an account to join the conversation.
02 Feb 2015 05:22 #55569
by dgarrett
Replied by dgarrett on topic XHC-HB04 wireless MPG pendant HAL module
Lines like this:indicate that you are trying to use halui pins but halui is not loaded.
In your file TEST.ini, you omitted the item that loads halui:Ref: www.linuxcnc.org/docs/2.6/html/gui/halui.html
Debug file information:
xhc-hb04.tcl: !!! <halui.mdi-command-00> target pin does not exist, continuing
...
Pin 'halui.program.is-idle' does not exist
...
In your file TEST.ini, you omitted the item that loads halui:
[HAL]
HALUI = halui
...
The following user(s) said Thank You: garulus
Please Log in or Create an account to join the conversation.
04 Mar 2015 00:49 #56429
by Robban
Replied by Robban on topic XHC-HB04 wireless MPG pendant HAL module
Having trouble!
The demo works but when i transfer the config i get this error!
The demo works but when i transfer the config i get this error!
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.7
Machine configuration directory is '/home/robban/linuxcnc/configs/CNC-Svarv_XHC'
Machine configuration file is 'CNC-Svarv_XHC.ini'
INIFILE=/home/robban/linuxcnc/configs/CNC-Svarv_XHC/CNC-Svarv_XHC.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Cleaning up old LinuxCNC...
Shutting down and cleaning up LinuxCNC...
Waiting for other session to finish exiting... Ok
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=12687
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
xhc-hb04: connection lost, cleaning up
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
.
HAL: ERROR: thread 'servo-thread' not found
addf failed
while executing
"hal addf pendant_util servo-thread"
("eval" body line 1)
invoked from within
"eval hal addf $args"
(procedure "addf" line 1)
invoked from within
"addf pendant_util $::XHC_HB04_CONFIG(threadname)"
(file "xhc-hb04.tcl" line 406)
invoked from within
"source $filename"
invoked from within
"set result [source $filename]"
(file "/usr/bin/haltcl" line 55)
12687
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
[ 0.000000] [000031ab] libusbx: error [do_close] Device handle closed while transfer was still being processed, but the device is still connected as far as we know
[ 0.000102] [000031ab] libusbx: warning [do_close] A cancellation for an in-flight transfer hasn't completed but closing the device handle
Please Log in or Create an account to join the conversation.
04 Mar 2015 01:02 - 04 Mar 2015 01:04 #56431
by dgarrett
Replied by dgarrett on topic XHC-HB04 wireless MPG pendant HAL module
please zip the entire config directory (/home/robban/linuxcnc/configs/CNC-Svarv_XHC)
and post
At first guess, your threadname is not the same as in your ini file from the README
and post
At first guess, your threadname is not the same as in your ini file from the README
Optional configuration ini file items and the defaults values are:
[XHC_HB04_CONFIG]
layout = 2 (1: 16 buttons | 2: 18 buttons)
coords = x y z a (4 max)
coefs = 1 1 1 1 (filter coefs 0 < coef < 1)
scales = 1 1 1 1 (plus/minus factors)
threadname = servo-thread
require_pendant = yes (yes | no)
jogmode = normal (normal | vnormal | plus-minus)
sequence = 1 (1|2|3|4|5)
Last edit: 04 Mar 2015 01:04 by dgarrett.
Please Log in or Create an account to join the conversation.
04 Mar 2015 06:33 #56444
by Robban
Replied by Robban on topic XHC-HB04 wireless MPG pendant HAL module
I put the "threadname = servo-thread" in the ini file but got the same error then i changed to "threadname = servo-threadd" and got the same error again but with the new threadname so i removed it.
Here is the zip!
Its a Lathe!
Here is the zip!
Its a Lathe!
Please Log in or Create an account to join the conversation.
04 Mar 2015 07:05 - 04 Mar 2015 07:18 #56445
by dgarrett
Replied by dgarrett on topic XHC-HB04 wireless MPG pendant HAL module
In the inifile [HAL] stanza, try placing these lines:so that they are last in the stanza -- e.g., after the other HALFILE= items
also , your ini file named CNC-Svarv_XHC.ini
specifies HALFILE = CNC-Svarv.hal
but there is no file with that name in the zipped directory,
there is one named CNC-Svarv_XHC.hal
so your edits are probably not finished
HALFILE = xhc-hb04.tcl
HALFILE = monitor_xhc-hb04.tcl
also , your ini file named CNC-Svarv_XHC.ini
specifies HALFILE = CNC-Svarv.hal
but there is no file with that name in the zipped directory,
there is one named CNC-Svarv_XHC.hal
so your edits are probably not finished
Last edit: 04 Mar 2015 07:18 by dgarrett.
Please Log in or Create an account to join the conversation.
Time to create page: 0.193 seconds