Iec Logic Instructions; And, Or, Exclusive Or - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

10.8

IEC Logic Instructions

There are no non-standard IEC Logic instructions.

And, Or, Exclusive Or

L
A
EN
D
F
IN1
B
D
IN2
EN
IN1
IN2
EN
IN1
IN2
221
222
Inputs/Outputs
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
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
S7-200 Programmable Controller System Manual
A5E00066097-02
The And function ANDs the corresponding bits of IN1
and IN2 and loads the result into OUT.
AND
ENO
The Or function ORs the corresponding bits of IN1 with
IN2 and loads the result into OUT.
OUT
The Exclusive Or (XOR) function XORs the
corresponding bits of IN1 with IN2 and loads the result
into OUT.
OR
ENO
The input and output data types can vary, but must be of
OUT
the same type.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
XOR
These instructions affect the following Special Memory
ENO
bits: SM1.0 (zero)
OUT
224
226
Operands
IEC 1131-3 Instructions
Data Types
BYTE, WORD
DWORD
BYTE, WORD
DWORD
10-25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents