psng probe screen beginner questions

More
05 Jul 2022 14:24 #246651 by Jonathan_H
psng probe screen beginner questions was created by Jonathan_H
Hi,

I have a tool length plunge switch thingy for detecting the tool length, and a contact plate for workpiece height measurement.

I managed to set up the psng probe screen and have tested I can make them work, though currently only one at a time since both those functions operate off a single signal so I can only connect one to the pin at a time.

So I have a couple of newbie questions.

Firstly how do I combine two inputs from my mesa 7i76 into a single probe signal (it's an OR obviously, but I'm coming to this project after most things were already set up so I have yet to delve into HAL)? Also how do I get a custom pin option to show up in mesa config wizard?

And how do I tell the probe screen what the thickness of my touch plate is? At the moment zero is set as though the plate was inifinitely small I think, whereas it is actually 19mm.

regards

Jonathan

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

More
07 Jul 2022 10:52 #246795 by andypugh
Replied by andypugh on topic psng probe screen beginner questions
The config wizards do not know how to combine two inputs, you would need t do that yourself.
You are correct that it would be done in HAL, using the "or2" function.
You can add this in a custom,hal file, or decide that the time has come to abandon the wizard and take ownership of the config files.
If using custom.hal then you will first need to unlink the probe input. (delsig or unlinkp, depending on if you can re-use the signal.)

The exact details will depend on what your current HAL file looks like, the signal names etc.
delsig probe-in
loadrt or2
addf or2.0 servo-thread
net probe-in [HM2]BOARD.input.00-not => or2.0.in0
net setter-in  [HM2]BOARD.input.01-not => or2.0.in1
net setter-or-probe or2.0.out => motion.probe-input


There appear to be boxes in the interface to set block height and setter height.
(I don't have the screen installed, this is from looking at the code)

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

More
07 Jul 2022 11:04 #246796 by Jonathan_H
Replied by Jonathan_H on topic psng probe screen beginner questions
Hi Andy,

Thanks for the pointers on HAL

I think at some point I'm going to have to abandon the wizard, it already seems to generate very odd results if I've edited the generated files in the interim so is nearing the point where it is more hindrance than help.

When I orignally saw the probe screen I thought I'd just type the block height into the box and be done, but that doesn't seem to be how it works, unless I'm missing a trick, which I probably am.

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

More
07 Jul 2022 11:38 #246797 by andypugh
Replied by andypugh on topic psng probe screen beginner questions
Sometimes it helps to click + then - in Gtk spinboxes, to get the setting to stick.
Though this is not usually necessary. If the setting doesn't get saved then it might be worth trying that.

Also, it looks like there is a checkbox to enable tool measurement?
And it's probably the setter height than needs to be used.

github.com/linuxcnc-probe-screen/probe-s..._measurement.py#L120

Maybe some clues from reading the code?

Have you found these docs?
vers.by/en/blog/useful-articles/probe-screen

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

Time to create page: 0.065 seconds
Powered by Kunena Forum