// Pos yerine Vacuum kontrolu olabilir
IF ABS(outActPos - inSetPos) <= inTolerance THEN
outInPosition := TRUE;
ELSE
outInPosition := FALSE;
END_IF
IF (outActPos >= (inSetPos - inSlowPos)) AND (outActPos <= (inSetPos + inSlowPos)) THEN
outInSlowPos := TRUE;
ELSE
outInSlowPos := FALSE;
END_IF
IF outActPos < (inSetPos - inTolerance) THEN
outBeloweActPos := TRUE;
ELSE
outBeloweActPos := FALSE;
END_IF
IF outActPos > (inSetPos + inTolerance) THEN
outAboveActPos := TRUE;
ELSE
outAboveActPos := FALSE;
END_IF