2 lt, 3 le, 4 ge – Lenze DDS v2.3 User Manual

Page 281: 5 eq, 6 ne, Drive plc developer studio

Advertising
background image

Drive PLC Developer Studio

IEC 61131-3 Operators

12-11

l

DDS EN 2.3

12.5.2

LT

Less than

A Boolean operator with the result TRUE if the first operand is less than the second operand.

Examples
IL

ST

FBD

LD

20

LT

30

ST

Var1

(* Var1 = TRUE *)

Var1 := 20 < 30;

12.5.3

LE

Less than or equal to

A Boolean operator with the result TRUE if the first operand is less than or equal to the second
operand.

Examples
IL

ST

FBD

LD

20

LE

30

ST

Var1

(* Var1 = TRUE *)

Var1 := 20 <= 30;

12.5.4

GE

Greater than or equal to

A Boolean operator with the result TRUE if the first operand is greater than or equal to the second
operand.

Examples
IL

ST

FBD

LD

60

GE

40

ST

Var1

(* Var1 = TRUE *)

Var1 := 60 >= 40;

12.5.5

EQ

Equal to

A Boolean operator with the result TRUE if the operands are equal to each other.

Examples
IL

ST

FBD

LD

40

EQ

40

ST

Var1

(* Var1 = TRUE *)

Var1 := 40 = 40;

12.5.6

NE

Not equal to

A Boolean operator with the result TRUE if the operands are not equal to each other.

Examples
IL

ST

FBD

LD

40

NE

40

ST

Var1

(* Var1 = FALSE *)

Var1 := 40 <> 40;

Show/Hide Bookmarks

Advertising