Siemens Simatic S7-200 System Manual page 288

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

Advertisement

Instruction Set
Logic Stack Operations
Figure 10-46 illustrates the operation of the And Load and Or Load instructions.
AND the top two stack values
Before
iv0
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
Figure 10-46
Figure 10-47 illustrates the operation of the Logic Push, Logic Read, and Logic Pop
instructions.
Logic Push
Before
iv0
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
Figure 10-47
10-100
ALD
After
S0
S0 = iv0 AND iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
x
Note: x means the value is unknown (it may be either a 0 or a 1).
And Load and Or Load Instructions
LPS
Logic Read
After
Before
iv0
iv0
iv0
iv1
iv1
iv2
iv2
iv3
iv3
iv4
iv4
iv5
iv5
iv6
iv6
iv7
iv7
iv8
Note: x means the value is unknown (it may be either a 0 or a 1).
Upon the LPS execution, iv8 is lost.
Logic Push, Logic Read, and Logic Pop Instructions
OLD
OR the top two stack values
Before
After
iv0
S0
iv1
iv2
iv2
iv3
iv3
iv4
iv4
iv5
iv5
iv6
iv6
iv7
iv7
iv8
iv8
x
LRD
Logic Pop
After
Before
iv1
iv0
iv1
iv1
iv2
iv2
iv3
iv3
iv4
iv4
iv5
iv5
iv6
iv6
iv7
iv7
iv8
iv8
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
S0 = iv0 OR iv1
LPP
After
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
x

Advertisement

Table of Contents
loading

Table of Contents