XHC-HB04 wireless MPG pendant HAL module

More
11 years 7 months ago #57123 by andypugh

mikaelbd wrote:

Code:
Pin 'axis.0.jog-scale' was already linked to signal 'selected-jog-incr'


Well, there is the problem.

Do you have more than one file trying to do "things" with the axis.0.jog-scale? It looks like some other HAL file is grabbing the pin before the XHC tries to.

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

More
11 years 7 months ago - 11 years 7 months ago #57131 by dgarrett
The xhc-hb04.tcl script is provided to make connections for pendant jogging
with the assumption that the hal pins required are not previously connected.

For normal and vnormal jogging, the xhc-hb04.tcl script connects to:
axis.N.jog-scale, axis.N.jog-enable, axis.N.jog-counts, axis.N.jog-vel-mode,
halui.max-velocity.value.

Similarly, a number of pins are required for spindle-override, feed-override
plus-minus jogging, and other functions handled by xhc-hb04.tcl.

The error you posted will occur if another [HAL]HALFILE has made connections
before calling xhc-hb04.tcl.

To see the pins used by xhc-hb04.tcl, start one of the working xhc-hb04 pendant
simulation configs and in a separate shell:
Code:
$ halcmd show sig pendant: >xhc_hb04_connections.txt
(example attatched)

From the signal name

already linked to signal 'selected-jog-incr' while executing

it looks like you are using a config created by stepconf or pncconf. If
you want to use the xhc-hb04 pendant alone (no other jogging mpg), there may be
a way to prevent stepconf (or pncconf) from connecting those pins or you can remove or
comment out [HAL]HALFILE= lines that connect those pins prior to xhc-hb04.tcl

If you want separate halfiles to share jog control pins in order to support
(perhaps multiplex) multiple mpg sources, you will not be able to use the
xhc-hb04.tcl script directly but can still use the xhc-hb04 component and wire
it up with whatever multiplexing arrangements you require with custom halfiles
that you create yourself.

There is a man page for the xhc-hb04 in 2.7 (and most items are the same for
2.6): www.linuxcnc.org/docs/2.7/html/man/man1/xhc-hb04.1.html

If you would make a zip file of your entire configuration directory and post
it you will assist folks in making suggestions.
Last edit: 11 years 7 months ago by dgarrett.

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

More
11 years 6 months ago #57453 by etnur
Hi Frederic ,
many thanks for your great job! :)

I also bought a XHC - HB04 .
It works fantastic, just as I had wished .
But I had a little problem. I can't start the Program with the start -pause button.

The following message appears : "Can't do that ( EMC_TASK_PLAN_RUN : 507) mdi_mode or manual_mode.


When I start the program by mouse then I can countinue use it with the pedant .
Only the first start does't work.
I've been searching for the error message, but I found no answer.
Can you help me ?

My EMC-Version is 2.6.3.

Many thanks from Frank!

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

More
11 years 6 months ago - 11 years 6 months ago #57458 by dgarrett
If you are using the xhc-hb04.tcl script from the 2.6 distribution
(in configs/sim/axis/xhc-hb04 directory) and are using std_start_pause feature,
this is a bug that was fixed and you may need to upgrade to a later LinuxCNC
version and use the amended script. Ref:

git.linuxcnc.org/gitweb?p=linuxcnc.git;a...dfdace6258be748c0a02

If you are not using that script (e.g., using instructions form
the outdated wiki), the same change is probably needed:
connect the halui.mode.auto pin to the
signal connected to the halui.program.run pin
Last edit: 11 years 6 months ago by dgarrett. Reason: correct pin names
The following user(s) said Thank You: etnur

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

More
11 years 6 months ago #57516 by etnur
Thank you dgarrett !
I have test the xhc-hb04.tcl but it does't run it shows the Error Window.

Here are the Errorlist.
I understand that axis.3 . is not available but in the INI are only 3 axis ( 0,1,2) listed . Where is the problem?
Code:
Pin 'axis.3.jog-scale' does not exist while executing "hal net pendant:jog-scale => axis.3.jog-scale" ("eval" body line 1) invoked from within "eval hal net $args" (procedure "net" line 1) invoked from within "net pendant:jog-scale => axis.$axno.jog-scale" (procedure "wheel_setup" line 61) invoked from within "wheel_setup $::XHC_HB04_CONFIG(jogmode)" (file "xhc-hb04.tcl" line 1222) invoked from within "source $filename" invoked from within "set result [source $filename]" (file "/usr/bin/haltcl" line 55) 5545

Here are the INI
Code:
[HAL] HALFILE = X-Quer-Positiv-Rechts.hal #HALFILE = xhc-hb04-V06.hal #POSTGUI_HALFILE = custom_postgui.hal HALUI = halui HALFILE = xhc-hb04.tcl [XHC-HB04_CONFIG] layout = 2 (required: 1|2 are supported) coords = x y z (any unique four of xyzabcuvw) coefs = 1 1 1 1 (optional, filter coefs, 0 < coef < 1, not usually reqd) scales = 1 1 1 1 (optional) threadname = servo-thread (optional) sequence = 1 (optional: 1|2) jogmode = normal (optional: normal|vnormal|plus-minus) require_pendant = yes (optional: yes|no) [XHC-HB04_BUTTONS] name = pin (connect button to hal pin) name = "" (no connect button) special cases: start-pause = std_start_pause (for usual behavior) step = xhc-hb04.stepsize-up (for usual behavior) # (see ini files for more exanples)


Hopefully I'm not too stupid to see the failure.
I hope you or anyone can help me.

Thank a Lot!!!
Frank

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

More
11 years 6 months ago #57522 by dgarrett
In the ini file;
[XHC-HB04_CONFIG] should be [XHC_HB04_CONFIG]
[XHC-HB04_BUTTONS] should be [XHC_HB04_BUTTONS]
(No hyphen) This mistake may exist in the directory README file and has
been recently fixed.
Ref: git.linuxcnc.org/gitweb?p=linuxcnc.git;a...da46194385e977725be4

The example sim config ini files include COMMENT lines that start with
a # character like:
Code:
# layout = 2 (required: 1|2 are supported)
However, your ini file has lines without the leading # character like
Code:
layout = 2 (required: 1|2 are supported)
The text in parentheses from the README comments should NOT be included on an active line, so this line should be:
Code:
layout = 2
Similar corrections are required on numerous lines in your ini file.
See the sim config ini files for working examples of all lines in
the [XHC_HB04_CONFIG] and [XHC_HB04_BUTTONS] stanzas.

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

Time to create page: 0.297 seconds
Powered by Kunena Forum