Attention

IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.

GE

Returns TRUE if the first input is greater than or equal to the second.

IEC 61131-3

Section 2.5.1.5.4

Support

Supported

Signatures

#

Input (IN1)

Input (IN2)

Return Type

Support

1

SINT

SINT

BOOL

Supported

2

INT

INT

BOOL

Supported

3

DINT

DINT

BOOL

Supported

4

LINT

LINT

BOOL

Supported

5

USINT

USINT

BOOL

Supported

6

UINT

UINT

BOOL

Supported

7

UDINT

UDINT

BOOL

Supported

8

ULINT

ULINT

BOOL

Supported

9

REAL

REAL

BOOL

Supported

10

LREAL

LREAL

BOOL

Supported

Description

Returns TRUE if IN1 is greater than or equal to IN2, FALSE otherwise. GE(a, b) is the functional form of the >= operator: a >= b. Both forms are equivalent.

Example

result := GE(10, 5);    (* result = TRUE *)
result := 10 >= 5;      (* result = TRUE, operator form *)
result := 5 >= 5;       (* result = TRUE *)

See Also

  • GT — greater than

  • LE — less than or equal

  • EQ — equal