SIMATIC Instructions
9-114
S7-200 Programmable Controller System Manual
A5E00066097-02
9.11 SIMATIC Logical Operations Instructions
And Byte, Or Byte, Exclusive Or Byte
The And Byte instruction ANDs the corresponding bits of
two input bytes and loads the result (OUT) in a byte.
The Or Byte instruction ORs the corresponding bits of
two input bytes and loads the result (OUT) in a
byte.
The Exclusive Or Byte instruction XORs the
corresponding bits of two input bytes and loads the result
(OUT) in a byte.
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, AC, Constant, *VD, *AC, *LD BYTE
OUT VB, IB, QB, MB,SB, SMB, LB, AC, *VD, *AC, *LD BYTE
L
A
D
S
T
L
ANDB IN1, OUT
WAND_B
EN
IN1
IN2
OUT
WOR_B
EN
IN1
IN2
OUT
WXOR_B
EN
IN1
IN2
OUT
ORB IN1, OUT
XORB IN1, OUT
F
B
D
ENO
ENO
ENO
222 224
✓✓✓
221 226
✓