XHC-HB04 wireless MPG pendant HAL module

More
13 years 3 weeks ago #39624 by f1oat
Try to remove the following lines that are no longer useful
Code:
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
13 years 3 weeks ago #39626 by f1oat
I think the following additional lines are necessary in Comet.hal after line #28 :
Code:
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
13 years 3 weeks ago #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
13 years 3 weeks ago #39690 by andypugh

rmagnus wrote: 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.

More
13 years 3 weeks ago #39760 by tommy
After switching to ja3 I'm having similar problem as it was described few posts back .. .
Code:
$ make g++ -I/usr/include/linuxcnc -DVERSION=V05 xhc-hb04.cc -o xhc-hb04 -lusb-1.0 -lm -llinuxcnchal -llinuxcncini xhc-hb04.cc:34:26: error: linuxcnc/hal.h: No such file or directory xhc-hb04.cc:35:22: error: inifile.hh: No such file or directory xhc-hb04.cc:61: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type xhc-hb04.cc:61: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:62: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type xhc-hb04.cc:62: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:64: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type xhc-hb04.cc:64: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:65: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type xhc-hb04.cc:65: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:67: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:67: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:69: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:69: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:70: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:70: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:71: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:71: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:72: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:72: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:73: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:73: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:74: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:74: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:75: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type xhc-hb04.cc:75: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:76: error: ISO C++ forbids declaration of ‘hal_s32_t’ with no type xhc-hb04.cc:76: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:78: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type xhc-hb04.cc:78: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:79: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type xhc-hb04.cc:79: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:80: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type xhc-hb04.cc:80: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:81: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:81: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:82: error: ISO C++ forbids declaration of ‘hal_bit_t’ with no type xhc-hb04.cc:82: error: expected ‘;’ before ‘*’ token xhc-hb04.cc:93: error: ‘hal_s32_t’ does not name a type xhc-hb04.cc: In function ‘const char* iniFind(FILE*, const char*, const char*)’: xhc-hb04.cc:109: error: ‘IniFile’ was not declared in this scope xhc-hb04.cc:109: error: expected ‘;’ before ‘f’ xhc-hb04.cc:111: error: ‘f’ was not declared in this scope xhc-hb04.cc: In function ‘void xhc_display_encode(xhc_t*, unsigned char*, int)’: xhc-hb04.cc:147: error: ‘struct xhc_hal_t’ has no member named ‘a_wc’ xhc-hb04.cc:148: error: ‘struct xhc_hal_t’ has no member named ‘x_wc’ xhc-hb04.cc:149: error: ‘struct xhc_hal_t’ has no member named ‘y_wc’ xhc-hb04.cc:150: error: ‘struct xhc_hal_t’ has no member named ‘z_wc’ xhc-hb04.cc:151: error: ‘struct xhc_hal_t’ has no member named ‘a_mc’ xhc-hb04.cc:152: error: ‘struct xhc_hal_t’ has no member named ‘x_mc’ xhc-hb04.cc:153: error: ‘struct xhc_hal_t’ has no member named ‘y_mc’ xhc-hb04.cc:154: error: ‘struct xhc_hal_t’ has no member named ‘z_mc’ xhc-hb04.cc:155: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’ xhc-hb04.cc:156: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’ xhc-hb04.cc:157: error: ‘struct xhc_hal_t’ has no member named ‘feedrate’ xhc-hb04.cc:158: error: ‘struct xhc_hal_t’ has no member named ‘spindle_rps’ xhc-hb04.cc: In function ‘void linuxcnc_simu(xhc_hal_t*)’: xhc-hb04.cc:211: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc:212: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc:212: error: ‘struct xhc_hal_t’ has no member named ‘jog_scale’ xhc-hb04.cc:213: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_x’ xhc-hb04.cc:214: error: ‘struct xhc_hal_t’ has no member named ‘x_mc’ xhc-hb04.cc:215: error: ‘struct xhc_hal_t’ has no member named ‘x_wc’ xhc-hb04.cc:218: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_y’ xhc-hb04.cc:219: error: ‘struct xhc_hal_t’ has no member named ‘y_mc’ xhc-hb04.cc:220: error: ‘struct xhc_hal_t’ has no member named ‘y_wc’ xhc-hb04.cc:223: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_z’ xhc-hb04.cc:224: error: ‘struct xhc_hal_t’ has no member named ‘z_mc’ xhc-hb04.cc:225: error: ‘struct xhc_hal_t’ has no member named ‘z_wc’ xhc-hb04.cc:228: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_a’ xhc-hb04.cc:229: error: ‘struct xhc_hal_t’ has no member named ‘a_mc’ xhc-hb04.cc:230: error: ‘struct xhc_hal_t’ has no member named ‘a_wc’ xhc-hb04.cc:233: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_spindle’ xhc-hb04.cc:234: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’ xhc-hb04.cc:234: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc:235: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’ xhc-hb04.cc:235: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’ xhc-hb04.cc:236: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’ xhc-hb04.cc:236: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’ xhc-hb04.cc:237: error: ‘struct xhc_hal_t’ has no member named ‘spindle_rps’ xhc-hb04.cc:237: error: ‘struct xhc_hal_t’ has no member named ‘spindle_override’ xhc-hb04.cc:240: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_feedrate’ xhc-hb04.cc:241: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’ xhc-hb04.cc:241: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc:242: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’ xhc-hb04.cc:242: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’ xhc-hb04.cc:243: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’ xhc-hb04.cc:243: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’ xhc-hb04.cc:244: error: ‘struct xhc_hal_t’ has no member named ‘feedrate’ xhc-hb04.cc:244: error: ‘struct xhc_hal_t’ has no member named ‘feedrate_override’ xhc-hb04.cc:247: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc: In function ‘void compute_velocity(xhc_t*)’: xhc-hb04.cc:261: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc:261: error: ‘struct xhc_t’ has no member named ‘last_jog_counts’ xhc-hb04.cc:261: error: ‘struct xhc_hal_t’ has no member named ‘jog_scale’ xhc-hb04.cc:262: error: ‘struct xhc_hal_t’ has no member named ‘jog_max_velocity’ xhc-hb04.cc:262: error: ‘struct xhc_hal_t’ has no member named ‘jog_scale’ xhc-hb04.cc:266: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’ xhc-hb04.cc:266: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’ xhc-hb04.cc:267: error: ‘struct xhc_hal_t’ has no member named ‘jog_increment’ xhc-hb04.cc:268: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_x’ xhc-hb04.cc:268: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_x’ xhc-hb04.cc:269: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_x’ xhc-hb04.cc:269: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_x’ xhc-hb04.cc:270: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_y’ xhc-hb04.cc:270: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_y’ xhc-hb04.cc:271: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_y’ xhc-hb04.cc:271: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_y’ xhc-hb04.cc:272: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_z’ xhc-hb04.cc:272: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_z’ xhc-hb04.cc:273: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_z’ xhc-hb04.cc:273: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_z’ xhc-hb04.cc:274: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_a’ xhc-hb04.cc:274: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_a’ xhc-hb04.cc:275: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_a’ xhc-hb04.cc:275: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_a’ xhc-hb04.cc:276: error: ‘struct xhc_t’ has no member named ‘last_jog_counts’ xhc-hb04.cc:276: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc:280: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’ xhc-hb04.cc:280: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’ xhc-hb04.cc:282: error: ‘struct xhc_hal_t’ has no member named ‘jog_velocity’ xhc-hb04.cc:283: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_x’ xhc-hb04.cc:284: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_x’ xhc-hb04.cc:285: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_y’ xhc-hb04.cc:286: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_y’ xhc-hb04.cc:287: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_z’ xhc-hb04.cc:288: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_z’ xhc-hb04.cc:289: error: ‘struct xhc_hal_t’ has no member named ‘jog_plus_a’ xhc-hb04.cc:290: error: ‘struct xhc_hal_t’ has no member named ‘jog_minus_a’ xhc-hb04.cc: In function ‘void cb_response_in(libusb_transfer*)’: xhc-hb04.cc:309: error: ‘struct xhc_hal_t’ has no member named ‘jog_scale’ xhc-hb04.cc:310: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc:311: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts_neg’ xhc-hb04.cc:311: error: ‘struct xhc_hal_t’ has no member named ‘jog_counts’ xhc-hb04.cc:313: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_x’ xhc-hb04.cc:314: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_y’ xhc-hb04.cc:315: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_z’ xhc-hb04.cc:316: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_a’ xhc-hb04.cc:317: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_feedrate’ xhc-hb04.cc:318: error: ‘struct xhc_hal_t’ has no member named ‘jog_enable_spindle’ xhc-hb04.cc:321: error: ‘struct xhc_hal_t’ has no member named ‘button_pin’ xhc-hb04.cc:322: error: ‘struct xhc_hal_t’ has no member named ‘button_pin’ xhc-hb04.cc:323: error: ‘struct xhc_hal_t’ has no member named ‘button_pin’ xhc-hb04.cc: At global scope: xhc-hb04.cc:349: error: ‘hal_pin_dir_t’ was not declared in this scope xhc-hb04.cc:349: error: ‘hal_float_t’ was not declared in this scope xhc-hb04.cc:349: error: ‘data_ptr_addr’ was not declared in this scope xhc-hb04.cc:349: error: expected primary-expression before ‘int’ xhc-hb04.cc:349: error: expected primary-expression before ‘const’ xhc-hb04.cc:349: error: expected primary-expression before ‘...’ token xhc-hb04.cc:349: error: initializer expression list treated as compound expression xhc-hb04.cc:350: error: expected ‘,’ or ‘;’ before ‘{’ token make: *** [xhc-hb04] Error 1

Running $ sudo apt-get install linuxcnc-dev

returns
Code:
$ sudo apt-get install linuxcnc-dev Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: linuxcnc Recommended packages: hostmot2-firmware The following NEW packages will be installed: linuxcnc-dev The following packages will be upgraded: linuxcnc 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 5,801kB of archives. After this operation, 2,023kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! linuxcnc linuxcnc-dev Install these packages without verification [y/N]? y Err http://buildbot.linuxcnc.org/ lucid/scratch-rt linuxcnc 1:2.6.0~pre~ssi.fanuc.biss.dpll~c451127 404 Not Found Err http://buildbot.linuxcnc.org/ lucid/scratch-rt linuxcnc-dev 1:2.6.0~pre~ssi.fanuc.biss.dpll~c451127 404 Not Found Failed to fetch http://buildbot.linuxcnc.org/dists/lucid/scratch-rt/binary-i386/linuxcnc_2.6.0~pre~ssi.fanuc.biss.dpll~c451127_i386.deb 404 Not Found Failed to fetch http://buildbot.linuxcnc.org/dists/lucid/scratch-rt/binary-i386/linuxcnc-dev_2.6.0~pre~ssi.fanuc.biss.dpll~c451127_i386.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

And didn't find clear solution for this...

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

More
13 years 3 weeks ago - 13 years 3 weeks ago #39762 by andypugh

tommy wrote: After switching to ja3 I'm having similar problem as it was described few posts back .. .

Code:
$ make g++ -I/usr/include/linuxcnc -DVERSION=V05 xhc-hb04.cc -o xhc-hb04 -lusb-1.0 -lm -llinuxcnchal -llinuxcncini xhc-hb04.cc:34:26: error: linuxcnc/hal.h: No such file or directory xhc-hb04.cc:35:22: error: inifile.hh: No such file or directory xhc-hb04.cc:61: error: ISO C++ forbids declaration of ‘hal_float_t’ with no type

All the errors stem from the missing library files.

Running $ sudo apt-get install linuxcnc-dev

Which should be fixed by that.

Install these packages without verification [y/N]? y
Err buildbot.linuxcnc.org/ lucid/scratch-rt linuxcnc 1:2.6.0~pre~ssi.fanuc.biss.dpll~c451127

You are somehow trying to pick up the wrong branch. That is a "private" development branch, and not based on JA3 either.

The message on the mailing list says how to choose the correct branch:
thread.gmane.org/gmane.linux.distributio...er/46874/focus=46897
Last edit: 13 years 3 weeks ago by andypugh.

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

Time to create page: 0.196 seconds
Powered by Kunena Forum