Skip to main content

valueIsInRangeOf

Short summary​

This assertion method checks if the current value is inside a limit

Attention: limits are included: valueIsInRangeOf(tod#3:0:0, tod#3:0:0, tod#3:0:0) is a true assertion

Parameters​

NameTypeCommentKind
lowerLimitTODlower limit for the current valueinput
currentValueTODcurrent value to checkinput
upperLimitTODupper limit for the current valueinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD valueIsInRangeOf
VAR_INPUT
(* lower limit for the current value *)
lowerLimit :TOD;
(* current value to check *)
currentValue :TOD;
(* upper limit for the current value *)
upperLimit :TOD;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR