Page 1 of 1

After toolchange jump to the start of the g-code

PostPosted: Sat Jan 26, 2019 3:52 pm
by medicusdkfz
Today I had another disturbing experience with UCCNC: After I had integrated the switch-off and switch-on command lines for the handwheel XHC HB04 into all zeroing macros of Gerry's Screen 2017 and the automatic zeroing of X/Y/Z with my touch plate worked super and error-free, I had another problem. If there are several toolpaths with tool changes, UCCNC sometimes jumps back to the beginning of the G code after the 2nd or 3rd tool change! Of course, this is not very fine if a narrower milling cutter was previously clamped... You can imagine the rest... I don't know if it's connected to the handwheel XHC HB04 again...

Best regards,
Pierre

Re: After toolchange jump to the start of the g-code

PostPosted: Sat Jan 26, 2019 4:26 pm
by ger21
Create a test program with multiple tool changes, but no cutting, and test it with and without the pendant plugin enabled.

Re: After toolchange jump to the start of the g-code

PostPosted: Sun Jan 27, 2019 8:46 am
by Robertspark
How long have you had the xhc-hb04?

Re: After toolchange jump to the start of the g-code

PostPosted: Sun Jan 27, 2019 12:38 pm
by ger21
I think he's had it before he got my screenset.

There seems to possibly be issues with probing with both the XHC and UCR201 plugins?

Re: After toolchange jump to the start of the g-code

PostPosted: Sun Jan 27, 2019 2:56 pm
by Robertspark
I ask because the XHC-HB04 uses a membrane.... and looking at the image below there is a rewind button next to the pause/ start
Image

Is it possible that the XHC-HB04 is issuing some sort of a spurious command?

Is there any way to log or monitor the signals comming from a specific USB device?

Its been a while since I played with the plugin for the shuttle express / pro, but I used a c# application to find out what each of the buttons did..... basically I created a program the output the hex on each button press and then used those button presses via a uccnc plugin to act as an MPG for uccnc.

I have an XHC-HB04 and if I knew what I was testing i'd give it a go, but I'd suggest it was probably first worth checking that there was nothing spurious being sent from the XHC-HB04 because of a faulty membrane keypad..... worth a check I guess.

I'll try to find the programme I used to trace the button codes for the shuttle pro / express so at least that item is rulled out?

You should be able to use this application to find out the VID and PID which you can then use for the application to log / display the messages recieved from the device.
http://www.nirsoft.net/utils/usb_devices_view.html

Re: After toolchange jump to the start of the g-code

PostPosted: Sun Jan 27, 2019 3:12 pm
by Robertspark
Here you go, a USB sniffer.... just enter the device PID and VID

https://drive.google.com/drive/folders/ ... sp=sharing

You can find these through that app I posted in the last thread or go through the device manager, just plug in and unplug the device and it should show up as a newly added device added to the list and then just get the PID (product id) and the VID (vendor id) of the device.

This is not my app, it was something I used and was obtained from here:
https://www.codeproject.com/Articles/18 ... nent-for-C

Re: After toolchange jump to the start of the g-code

PostPosted: Sun Jan 27, 2019 5:36 pm
by medicusdkfz
Hi Rob,

I have my wireless XHC HB04 since several years... But I lost some router bits in the past and rouined several workpieces. Now I ordered a new handwheel from UCCNC-shop and hope, that the problems are a thing of the past!

Kindly regards,
Pierre