Other Operations - Siemens SIMATIC S5-100U System Manual

Simatic s5 series cpu 100/102/103
Hide thumbs Also See for SIMATIC S5-100U:
Table of Contents

Advertisement

STEP 5 Operations
Example
Decrement the constant 1020
and store the result in flag word
FW28. Afterwards add the constant
256 to the result and store the sum in
flag word FW30.
8.3.4

Other Operations

Table 8-29 provides an overview of the remaining system operations.
Operation
Operand
TAK
STS
Processing the "STS" Operation
When the "STS" operation is executed, the programmable controller goes into the STOP mode
immediately. Program processing is terminated at this point. The STOP state can only be cancelled
manually (with the mode selector) or with the programmer function "PC START".
8-68
by 33
L
H
ADD
T
ADD
T
Table 8-29. The "TAK" and "STS" Operations
Swap accumulator contents
Swap the contents of ACCU 1 and ACCU 2 regardless of the
RLO. The RLO and the condition codes are not affected.
Stop immediately
The PLC goes into the STOP mode regardless of the RLO.
STL
The constant 1020
KH
1020
ACCU 1.
The constant -33
BF
-33
the ACCU contents.
The new ACCU contents (0FFF
FW
28
are stored in flag word FW28.
The constant 256
KF
256
the last result.
The new ACCU contents (10FF
FW
30
are stored in flag word FW30.
Meaning
S5-100U
Explanation
is loaded into
H
is added to
0D
)
H
is added to
0D
)
H
EWA 4NEB 812 6120-02b

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents