valueIsInRangeOf
Short summary
This assertion method checks if the current value is inside a limit
Attention:
limits are included: valueIsInRangeOf(t#3ms,t#3ms ,t#3ms) is a true assertion
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| lowerLimit | TIME | lower limit for the current value | input |
| currentValue | TIME | current value to check | input |
| upperLimit | TIME | upper limit for the current value | input |
| message | AssertMessage | message if the assertion is false | input |
Code
Declaration
METHOD valueIsInRangeOf
VAR_INPUT
(* lower limit for the current value *)
lowerLimit :TIME;
(* current value to check *)
currentValue :TIME;
(* upper limit for the current value *)
upperLimit :TIME;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR