Communication blocks
Function Blocks - FM 458-1 DP
2-23
Edition 12.2004
2.3.5 S7STAT S7 CPU operating state
S7STAT
RUN
BO
―
S7-CPU in RUN
STP
BO
―
S7-CPU in STOP
HLD
BO
―
S7-CPU in HOLD
ACT
W
―
actual operating state
OLD
W
―
previous operating state
The actual and previous S7-CPU operating states are displayed at the
outputs.
The actual and previous operating state of the S7-CPU is determined and
displayed at connectors ACT for the actual and OLD for the previous
operating state. Output RUN is set to TRUE if the S7-CPU is either in the
RUN or RUN-R state.
Output value
to ACT or OLD
Operating state
RUN
STP
HLD
0x0010 Stop
0
1 0
0x0020 Cold
start
0
0 0
0x0040 New
start
0
0 0
0x0080 Re-start
0
0 0
0x0100 RUN
1
0 0
0x0200 RUN-R
1
0 0
0x0400 Hold
0
0 1
NOTE
All other values are used for extended diagnostics.
RUN
S7-CPU in RUN
(Default: 0)
STP
S7-CPU in STOP
(Default: 0)
HLD
S7-CPU in HOLD
(Default: 0)
ACT
Actual operating state of the S7-CPU
(Default: 0x8000)
OLD
Previous operating state of the S7-CPU
(Default: 0x8000)
Please refer to the help for STEP7 for a more detailed description of the
operating states.
Symbol
Brief description
Mode of operation
I/O