[CMP_DA] Compare date

Function block CMP_DA compares two values of data type Date.

CMP_DA compares two values of data type Date and provides the logical results for In1 greater than In2, In1 greater than or equal to In2, In1 equals In2, In1 less than or equal to In2 and In1 less than In2 to the outputs.

CMP_DA provides the time difference between the values at In1 and In2 at output [DDay]. The result of the time difference is limited to the range of the data type at the output.

Pins

Input

Description

Data type

Default value
Value range

In1In2

Input 1Input 2

Date

01.01.1990

 

Output

Description

Data type

Default value
Value range

Gt

In1 greater than In2

Boolean

0

0 - In1 is less than or equal to In2.
1 - In1 is greater than In2.

Ge

In1 greater or equal to In2

Boolean

0

0 - In1 is less than In2.
1 - In1 is greater than or equal to In2.

Eq

In1 equals In2

Boolean

0

0 - In1 is not equal to In2.
1 - In1 is equal to In2.

Le

In1 less than or equal to In2

Boolean

0

0 - In1 is greater than In2.
1 - In1 is less than or equal to In2.

Lt

In1 less than In2

Boolean

0

0 - In1 is greater than or equal to In2.
1 - In1 is less than In2.

DDay

Delta in days

Integer

0