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

Page 470

Advertising
background image

L-force | PLC Designer

IEC Operators and additional norm extending functions

468

DMS 3.2 EN 02/2011 TD29



9.3.3

XOR

PLC Designer IEC operator: Bitwise XOR of bit operands. The operands should be of the
type BOOL, BYTE, WORD or DWORD.

Note!

Regard the behaviour of the XOR function in extended form, that means if there are
more than 2 inputs. The inputs will be checked in pairs and the particular results
will then be compared again in pairs (this complies with the standard, but may not
be expected by the user).

Example in IL:

Var1 :BYTE;
LD 2#1001_0011
XOR 2#1000_1010
ST Var1 (* Result is 2#0001_1001 *)

Example in ST:

Var1 := 2#1001_0011 XOR 2#1000_1010

Example in FBD:

9.3.4

NOT

PLC Designer IEC operator: Bitwise NOT of a bit operand. The operand should be of the
type BOOL, BYTE, WORD or DWORD.

Example in IL:

Var1 :BYTE;

LD 2#1001_0011

NOT

ST Var1 (* Result is 2#0110_1100 *)

Advertising