Specifications

SIMATIC Instructions
9-194
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Figure 9-76 illustrates the operation of the Logic Push, Logic Read, and Logic Pop
instructions.
LPS
Logic Push
iv0
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
Before
iv0
iv0
iv1
iv2
iv3
iv4
iv5
iv6
iv7
After
LRD
Logic Read
iv0
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
Before
iv1
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
After
iv0
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
Before
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
x
After
LPP
Logic Pop
Note: x means the value is unknown (it may be either a 0 or a 1).
Upon the LPS execution, iv8 is lost.
Figure 9-76 Logic Push, Logic Read, and Logic Pop Instructions
Figure 9-77 illustrates the operation of the Load Stack instructions.
LDS 3
Load Stack
iv0
iv1
iv2
iv3
iv4
iv5
iv6
iv7
iv8
Before
iv3
iv0
iv1
iv2
iv3
iv4
iv5
iv6
iv7
After
Figure 9-77 Load Stack Instructions
Logic Stack Example