Making the Probe status visible on the GUI

More
20 Jul 2023 09:52 #275877 by rodw
But it will need to be in a postgui hal file
The following user(s) said Thank You: PedroSMS

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

More
20 Jul 2023 10:30 #275882 by PedroSMS
Thank you very much for that reply.

I think that's HAL type syntax - I'll find a file to try it out in...

Kind regards
Pedro

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

More
21 Jul 2023 04:22 #275928 by cmorley

Must be a new feature so I'll have to add it. Something like this

net probe-sig <= lcec.0.3.in-06
net probe-sig => motion.probe-input
net probe-sig => qtdragon.led-probe


Where lcec.0.3.in-06 is my EtherCAT input pin the probe is attached to. 
 

There are two LEDS - the one on the probe screen automatically follows the probe pin.
the one on the tool tab must be connected - I should probably change that too.
The following user(s) said Thank You: rodw

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

More
21 Jul 2023 04:28 #275930 by PedroSMS
With a little bit of reverse-engineering :-

My probe input was already assigned a net "probe-in"

The LED is named "hal_led_probe", therefore adding this line
net probe-in => qtdragon.hal_led_probe

To file "custom_postgui.hal" got it to WORK
 

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

More
11 Oct 2023 19:58 #282767 by theslawek
I'm trying the same, but getting this dreaded error:
custom_postgui.hal:4: Pin 'qtdragon.hal_led_probe' does not exist

In my machine.hal I have: net probe_in <= parport.0.pin-15-in-not
Using HAL_METER I can see the pin toggle when I touch my clip to the plate.

In my custom_postgui.hal I have: net probe-in => qtdragon.hal_led_probe

Running LinuxCNC 2.9 on a fresh Debian 12.2 install with linuxcnc_uspace package. I've googled and searched endlessly. Cannot find the solution.

Attaching all pertinent files. Thanks.
 

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

More
11 Oct 2023 20:15 #282770 by rodw
When you get a pin not found error, comment out the problem line in your hal file and run the gui again. When it opens. use halshow to check the pin names. Usually you have a spelling error. When I did this, I found this pin which I think is the one you need.
qtdragon.led-probe 
The following user(s) said Thank You: theslawek

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

More
12 Oct 2023 03:24 #282794 by theslawek
That did it! Thank you.

I had two problems. I was using probe_in instead of probe-in (underscore vs dash), and hal_led_probe instead of led-probe.

Now on to getting z probe height touchoff and tool length working. Nothing happens after homing, setting a tool, and pressing "TOUCH PLATE". I don't want to hijack this thread though.
The following user(s) said Thank You: rodw

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

Time to create page: 0.138 seconds
Powered by Kunena Forum