Hello everyone, I need help editing my post again.
The following problem, the Datron PP has already integrated the touch function. However, the problem is that the machine issues an error as soon as you have a tool change after probing.
In other words, after the last probing cycle, the button simply does not fold up.
Datron has solved this in their PP in such a way that the flip-up command is in there before every Tool Change.
The Command for Fold Up the Probe is:
T3d 0, 0, 1, 15, 17, 10, 10, 10, 10, 10, 10
Attached is a code as an example where I also describe where I need the code. ("sample problem"). I have also attached our PP.
Thanks for Helping and Geetings from Germany
Udo
Anyone have any tips or hints?
I tried it with the following code example, but it didn't quite work.
If I only have One Probe Operation, the "T3D 0 ....." output is missing.
But if I have 2 Probe Operations, it works as expected.
var flagIsLabelOutputNeed = true;
if (isProbeOperation(currentSection) && isFirstSection()) {
writeln("");
flagIsLabelOutputNeed = false;
}
if (isProbeOperation(currentSection) && flagIsLabelOutputNeed) {
writeBlock("T3d 0, 0, 1, 15, 17, 10, 10, 10, 10, 10, 10;"); // disable probe
flagIsLabelOutputNeed = true;
}
Thanks and Regards from Germany
Hallo Udo,
Thanks for your feedback!
To solve the problem you describe, please add the following code at the end of the onSectionEnd() function:
if (isProbeOperation(currentSection) && (hasNextSection() && !isProbeOperation(getNextSection()))) {
writeBlock("T3d 0, 0, 1, 15, 17, 10, 10, 10, 10, 10, 10;"); // disable probe
}
Please let me know if that works as desired, I will then update the postprocessor on our library with this fix.
Thanks
Achim
Hello Achim,
Yes the code works like this. Was able to test it on the machine. (But it was only once).
But since you know something, I have one more question.
When probing, the zero point is always overwritten. However, we often only work on the Datron with the position memory or WCS 0.
If I now select WCS 0 in the Fusion Setup, it will also be used in the PP.
When touched, however, WCS 1 is always overwritten.
Is there a way to change this or which screw should I turn?
Thanks for testing, i´ll fix that in the library post.
Regarding your probing question, i think that is something we cannot change in general in the library post.
But if you like to change that in your post, have a look into the onCylceEnd() function.
There you could for example remove the check for workOffset != 0 and add your custom desired output for the "Position" command.
Can't find what you're looking for? Ask the community or share your knowledge.