Hi,
I was thinking about the probe function wich you can set over xy distance.
The pythagoras formula is one option, like Rod has written.
Here i have a signal sample how you can trigger very simple over x and y distance.
The result will be no circular distance calculation but a rectangular distance calculation. In this way it is also possible to only measure at y axis or only at x axis distances. Most of time inox plates are bended over the short side.
Code:
.
Component for manipulate probe times over x and y distance.
Pin in bit probe-enable. "Connect to Gui button or G-code Macro signal";
Pin in bit probe-trigger "Triggers Arc-on signal at start";
Pin in float position-x. "Connect to x axis position";
Pin in float position-y "Connect to y axis position";
Param rw float Save-x-pos. "Saves the x axis position at probe-trigger signal";
Param rw float Save-y-pos. "Saves the y axis position at probe-trigger signal";
Param rw float Probe-distance "Probe distance value over x and y axis, can be separated"
Pin out bit. Probe-execute "probe-distance reached, enable probe Macro";
Anonther function is the auto restart function. To make and adapt this function would be also great !!
If you look at the plasma start procedure :
1. Probe on or off.
2. M3 and wait for arc-on signal to move, if time out trigger auto restart component.
3. If arc-on, then do your thing.
So now it looks like we are building the THC features in building blocks, user's can add building blocks to their needs.
It would also be easyer for others to upload new features to this forum, that features can be loaded and tested in minutes.
I have tested that problably a component.so file is enough to load directly without first the need to compiling the component.comp file.
But i think i have to test this over different disto's.