Logic Stack Instructions - Siemens Simatic S7-200 System Manual

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

Advertisement

10.11 Logic Stack Instructions

And Load
S
T
ALD
L
212
214
Or Load
S
T
OLD
L
212
214
Logic Push
S
T
LPS
L
212
214
Logic Read
S
T
LRD
L
212
214
Logic Pop
S
T
LPP
L
212
214
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
The And Load instruction combines the values in the first and
second levels of the stack using a logical And operation. The
result is loaded in the top of stack. After the ALD is executed,
the stack depth is decreased by one.
215
216
Operands:
The Or Load instruction combines the values in the first and
second levels of the stack, using a logical Or operation. The
result is loaded in the top of stack. After the OLD is executed,
the stack depth is decreased by one.
215
216
Operands:
The Logic Push instruction duplicates the top value on the
stack and pushes this value onto the stack. The bottom of the
stack is pushed off and lost.
Operands:
215
216
The Logic Read instruction copies the second stack value to
the top of stack. The stack is not pushed or popped, but the old
top of stack value is destroyed by the copy.
Operands:
215
216
The Logic Pop instruction pops one value off of the stack. The
second stack value becomes the new top of stack value.
Operands:
215
216
none
none
none
none
none
Instruction Set
10-99

Advertisement

Table of Contents
loading

Table of Contents