Selecting The Mode Of Operation For The Cpu - Siemens Simatic S7-200 System Manual

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

Advertisement

6.6

Selecting the Mode of Operation for the CPU

The S7-200 CPU has two modes of operation:
STOP: The CPU is not executing the program. You can download a program or configure
the CPU when the CPU is in STOP mode.
RUN: The CPU is running the program. When the CPU is in RUN mode, you cannot
download a program or configure the CPU.
The status LED on the front of the CPU indicates the current mode of operation. You must
place the CPU in the STOP mode to load the program into program memory.
Changing the Operating Mode with the Mode Switch
You can use the mode switch (located under the access door of the CPU module) to select
the operating mode for the CPU manually:
Setting the mode switch to STOP mode stops the execution of the program.
Setting the mode switch to RUN mode starts the execution of the program.
Setting the mode switch to TERM (terminal) mode does not change the CPU operating
mode, but it does allow the programming software (STEP 7-Micro/WIN) to change the
CPU operating mode.
If a power cycle occurs when the mode switch is set to either STOP or TERM, the CPU goes
automatically to STOP mode when power is restored. If a power cycle occurs when the
mode switch is set to RUN, the CPU goes to RUN mode when power is restored.
Changing the Operating Mode with STEP 7-Micro/WIN
As shown in Figure 6-9, you can use STEP 7-Micro/WIN to change the operating mode of
the CPU. To enable the software to change the operating mode, you must set the mode
switch on the CPU to either TERM or RUN.
Project Edit View CPU Debug Tools Setup Window Help
Figure 6-9
Changing the Operating Mode from the Program
You can insert the STOP instruction in your program to change the CPU to STOP mode. This
allows you to halt the execution of your program based on the program logic. For more
information about the STOP instruction, see Chapter 10.
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
Basic Concepts for Programming an S7-200 CPU
RUN mode
Using STEP 7-Micro/WIN to Change the Operating Mode of the CPU
STOP mode
6-13

Advertisement

Table of Contents
loading

Table of Contents