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

L-force | PLC Designer
IEC Operators and additional norm extending functions
DMS 3.2 EN 02/2011 TD29
467
9.3.2
OR
PLC Designer IEC operator: Bitwise OR of bit operands. The operands should be of the
type BOOL, BYTE, WORD or DWORD.
Example in IL:
var1 :BYTE;
LD 2#1001_0011
OR 2#1000_1010
ST var1 (* Result is 2#1001_1011 *)
Example in ST:
Var1 := 2#1001_0011 OR 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 OR operator module to variable z will not
be executed ! This is due to the optimized processing in the SFC in case of value
FALSE at the input variable.
Advertising