Skip to main content

valueIsMin

Short summary​

This assertion method checks if the current value is greater than or equal to the minimum value

Parameters​

NameTypeCommentKind
currentValueLTIMEcurrent value to checkinput
minimumValueLTIMElower limit for the current valueinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD valueIsMin
VAR_INPUT
(* current value to check *)
currentValue :LTIME;
(* lower limit for the current value *)
minimumValue :LTIME;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR

Implementation​

IF (currentValue < minimumValue) THEN
THIS^.assertionWasWrong(
message := message,
additionalText := THIS^.getDebugInfo('valueIsMin')
);
END_IF