EasyManuals Logo
Home>Siemens>Controller>Simatic S7-200 CPU 210

Siemens Simatic S7-200 CPU 210 User Manual

Siemens Simatic S7-200 CPU 210
140 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #73 background imageLoading...
Page #73 background image
4-5
S7-200 Programmable Controller, CPU 210
C79000-G7076-C235-01
Organizing the Program
As shown in Figure 4-3, a program for the CPU 210 is structured into the following
organizational elements: the main program and an optional hardware interrupt routine.
S The main program stores the instructions that control your application. The instructions in
the main program are executed sequentially once per scan of the CPU. To terminate the
main program, use an Unconditional End coil in ladder or a main program end instruction
(MEND) in STL.
S The CPU 210 also allows one optional hardware interrupt routine. If you use the interrupt
routine in your program, the CPU executes these instructions on a specific hardware
event (the rising edge when I0.0 turns on). Place the interrupt routine after the end of
the main program (following the Unconditional End (MEND) instruction). Use a Return
From Interrupt (RETI) instruction to terminate the interrupt routine.
Section 4.6 provides an example of a program using an interrupt routine. The interrupt
routine is not executed as part of the normal scan cycle, but is executed when the
interrupt event occurs (which may be at any point in the scan cycle).
For additional information about designing and entering a program, see the sample
application in Chapter 3.
Main Program
.
.
.
MEND
Interrupt Routine (optional)
RETI
Main Program:
Executed once per scan
Interrupt Routine:
Executed on each occurrence of the
interrupt event
User Program
Figure 4-3 Program Structure for the CPU 210
Basic Concepts for Programming the CPU 210

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7-200 CPU 210 and is the answer not in the manual?

Siemens Simatic S7-200 CPU 210 Specifications

General IconGeneral
BrandSiemens
ModelSimatic S7-200 CPU 210
CategoryController
LanguageEnglish

Related product manuals