Logic Operations - Siemens Simatic S7-200 System Manual

Programmable controller
Hide thumbs Also See for Simatic S7-200:
Table of Contents

Advertisement

Instruction Set

10.12 Logic Operations

And Byte, Or Byte, Exclusive Or Byte
L
WAND_B
A
EN
D
IN1
IN2 OUT
WOR_B
EN
IN1
IN2 OUT
WXOR_B
EN
IN1
IN2 OUT
S
ANDB
T
L
ORB
XORB
212
214
10-102
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.
Operands:
Note: When programming in LAD, if you specify IN1 to be the
same as OUT, you can reduce the amount of memory required.
These instructions affect the following Special Memory bits:
SM1.0 (zero)
IN1, OUT
IN1, OUT
IN1, OUT
215
216
IN1, IN2: VB, IB, QB, MB, SMB, AC, Constant,
*VD, *AC, SB
OUT:
VB, IB, QB, MB, SMB, AC,
*VD, *AC, SB
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02

Advertisement

Table of Contents
loading

Table of Contents