Specifications

IEC 1131-3 Instructions
10-26
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
10.7 IEC Logic Instructions
There are no non-standard IEC Logic instructions.
And, Or, Exclusive Or
The And function ANDs the corresponding bits of IN1
and IN2 and loads the result into OUT.
The Or function ORs the corresponding bits of IN1 with
IN2 and loads the result into OUT.
The Exclusive Or (XOR) function XORs the
corresponding bits of IN1 with IN2 and loads the result
into OUT.
The input and output data types can vary, but must be of
the same type.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
These instructions affect the following Special Memory
bits: SM1.0 (zero)
Inputs/Outputs Operands Data Types
IN1, IN2 VB, IB, QB, MB, SB, SMB, LB, VW, IW, QW, MW, SW, SMW,
AIW, T, C, LW, VD, ID, QD, MD, SD, SMD, LD, HC, AC,
Constant, *VD, *AC, *LD
BYTE, WORD
DWORD
OUT VB, IB, QB, MB, SB, SMB, LB, VW, IW, QW, MW, SW, SMW,
T, C, LW, VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *AC, *LD
BYTE, WORD
DWORD
L
A
D
F
B
D
AND
EN
IN1
IN2
OUT
OR
EN
IN1
IN2
OUT
XOR
EN
IN1
IN2
OUT
ENO
ENO
ENO
222 224
333
221