L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 483

Advertising
background image

L-force | PLC Designer

IEC Operators and additional norm extending functions



DMS 3.2 EN 02/2011 TD29

481

9.6.5

EQ

PLC Designer IEC operator: Equal to

A Boolean operator that returns the value TRUE when the operands are equal. The
operands can be BOOL, BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT,
REAL, LREAL, TIME, DATE, TIME_OF_DAY, DATE_AND_TIME and STRING.

Example in IL:

LD 40

EQ 40

ST Var1 (* Result is TRUE *)

Example in ST:

VAR1 := 40 = 40;

Example in FBD:

9.6.6

NE

PLC Designer IEC operator: Not equal to

A Boolean operator that returns that value TRUE when the operands are not equal.
The operands can be BOOL, BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT,
UDINT, REAL, LREAL, TIME, DATE, TIME_OF_DAY, DATE_AND_TIME and STRING.

Example in IL:

LD 40

NE 40

ST Var1 (* Result is FALSE *)

Example in ST:

VAR1 := 40 <> 40;

Advertising