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

Page 468

Advertising
background image

L-force | PLC Designer

IEC Operators and additional norm extending functions

466

DMS 3.2 EN 02/2011 TD29



9.3

Bitstring Operators...

9.3.1

AND

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

Example in IL:

Var1 BYTE

LD 2#1001_0011

AND 2#1000_1010

ST Var1 (* Result is 2#1000_0010 *)

Example in ST:

var1 := 2#1001_0011 AND 2#1000_1010

Example in FBD:

Note!

If you have a program step in the SFC like the following

and if you use 68xxx generators, please note the following: The allocation of the
value of the second input variable at the AND operator module to variable z will not
be executed ! This is due to the optmized processing in the SFC in case of value
FALSE at the input variable.

Advertising