AssertIsLessThan

AssertIsLessThan 1:

The AssertIsLessThan method can be used to check whether the passed value (fActual) is strictly less than a threshold (fBorder). If this is not the case, a corresponding error message can be passed via the sMessage parameter.

Syntax

METHOD PUBLIC AssertIsLessThan
VAR_INPUT
    fActual : LREAL;
    fBorder : LREAL;
    sMessage : STRING;
END_VAR

AssertIsLessThan 2: 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:


AssertIsLessThan(fActual:=actual value,fBorder:=border,sMessage:='Error message to be displayed in the client!'));