nimius83: Have the very same issue right now!
I want to set the Output signal and wait for the acknowledgment (both PROFINET signals). What happens is that the application keeps on waiting, although the acknowledgement signal is already there. The worst thing is that it happens sporadically without any pattern! This drives me really crazy
Here is the code snippet:
Even stranger is that with a little pause between the two the whole thing runs smoothly every time!
output.setBooleanValue(true);
ThreadUtils.millisleep(100);
conditionObserver.waitFor(acknowledgment);
It almost looks like the waitFor wait for the rising Edge of the Condition rather than the condition value itself, which cannot be.
nimius83: Have the KUKA Support said anything about the reason, why this happens or why should you use positionHold() instead of waitFor()?
Does anybody have an idea how to debug such thing or how to find out what is going on?