AssertIsGreaterThan

The AssertIsGreaterThan method can be used to check whether the passed value (fActual) is strictly greater than a threshold (fBorder). If this is not the case, a corresponding error message can be passed via the sMessage parameter.
Syntax
METHOD PUBLIC AssertIsGreaterThan
VAR_INPUT
fActual : LREAL;
fBorder : LREAL;
sMessage : STRING;
END_VAR
Inputs
|
Name |
Type |
Description |
|---|---|---|
|
fActual |
LREAL |
LREAL value to be compared with |
|
fBorder |
LREAL |
The threshold against which comparisons are made |
|
sMessage |
STRING(255) |
Error message to be passed |
Sample:
AssertIsGreaterThan(fActual:=<actual value>,fBorder:=<Border>,sMessage:='Error message to be displayed in the client!`');