Siemens v1.0 Service Manual Page 31

  • Download
  • Add to my manuals
  • Print
  • Page
    / 202
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 30
Simple example
2.4 Create program
STEP 7 Basic V10.5
Getting Started, 12/2009, A5E02651459-01
31
2.4 Create program
Introduction
With the PLC, the organization block "Main [OB1]" is automatically created in the project. In
the following section you create the user program in the organization block.
2.4.1 What are organization blocks?
User program
A user program can consist of one or several blocks. You will have to use at least one
organization block. The blocks include all functions that are necessary for processing your
specific automation task.
The program tasks include:
Processing process data, e.g. linking binary signals, reading in and evaluating analog
values, defining binary signals for output, and outputting analog values
Reaction to interrupts, for example, diagnostic error interrupt if the measuring range of an
analog expansion module is overshot
Error handling in normal program execution
Organization blocks
Organization blocks (OBs) form the interface between the operating system of the PLC and
the user program. They are called by the operating system and control the following
operations:
Startup behavior of the automation system
Cyclic program execution
Interrupt-driven program execution
Error handling
At least one program cycle OB must be present in an automation project. The program that
determines the behavior of the PLC is written in this program cycle OB. The operating
system calls the OB once in each cycle and thereby starts the execution of the program
contained in the OB. The cycle restarts after the end of each program execution.
The program execution of an organization block can be interrupted by calling other
organization blocks. During complex automatic tasks the program is structured and divided
into several blocks that are called in the program cycle OB and executed one after the other.
Page view 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 201 202

Comments to this Manuals

No comments