And, Or, And Exclusive Or Instructions Example; Example Of The Logical Operation Instructions For Simatic Lad, Stl, And Fbd - Siemens SIMATIC S7-200 System Manual

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

Advertisement

And, Or, and Exclusive Or Instructions Example

I4.0
I4.0
EN
AC1
IN1
AC0
IN2
And Word
AC1
0001 1111 0110 1101
AC0
1101 0011 1110 0110
AC0
0001 0011 0110 0100
Figure 9-37
S7-200 Programmable Controller System Manual
A5E00066097-02
LAD
WAND_W
EN
ENO
AC1
IN1
OUT
AC0
AC0
IN2
WOR_W
EN
ENO
AC1
IN1
OUT
VW100
VW100
IN2
WXOR_W
EN
ENO
AC1
IN1
OUT
AC0
AC0
IN2
WAND_W
ENO
OUT
AC0
AC1
VW100
AC1
AND
VW100
equals
VW100
Example of the Logical Operation Instructions for SIMATIC LAD, STL, and
FBD
LD
I4.0
ANDW
AC1, AC0
ORW
AC1, VW100
XORW
AC1, AC0
FBD
WOR_W
EN
ENO
IN1
OUT
VW100
AC1
IN2
AC0
Application
Or Word
0001 1111 0110 1101
AC1
OR
1101 0011 1010 0000
AC0
equals
1101 1111 1110 1101
AC0
SIMATIC Instructions
STL
WXOR_W
EN
ENO
IN1
OUT
AC0
IN2
Exclusive Or Word
0001 1111 0110 1101
XOR
0001 0011 0110 0100
equals
0000 1100 0000 1001
9-117

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents