Hello Chaoticone,
I've tried to get the TouchOff module working but I'm not sure if have used it correctly.
What I did:
- edited the screen set wx4.set, at the "Offsets" page I changed the
clicked script for the "Set Z" button ("--Set Z button") in the way you can see in the attached file SetZButton.txt
- Added the following settings to machine.ini:
[ToffParams]
ToffProbeRate=100
ToffRetractDistance=2
ToffPrepDistance=15
ToffToolDiam=10
because I need it in the units of millimeters.
To get the function TouchOffZNeg0() in mcTouchOff.lua called from the screen set it needs to be prefixed with "mcTouchOff."
So I got the first move of my probe, but the fixture offsets weren't set.
To find the reason for that I reached the function Code(Gcode, ProbeActive) which I do not understand completely.
I'm sure it should execute "Gcode" and wait until movement is finished.
But what is the purpose of
if (ProbeActive ~= true) then
ProbeActive = false;
end
and how is the probe state after the movement (did the probe touch the workpiece?) returned?
At this point I stopped my activities full of self-doubts. When I did all right, when a lot of fixes are necessary to get the TouchOff module running.
Sure, this module is much better structed than the probing mod, and is definitely easier to maintain, but at the moment the probing module does the most things I need.
Steve