M7PHB_E.PDF

(1610 KB) Pobierz
M7-300/400, Program Design
Preface, T able of Contents
Product Overview
1
SIMATIC
Developing a Simple Program
2
Structure and Features of
M7 RMOS32
3
System Software for
M7–300/400
Program Design
RMOS API Function Calls
4
M7 API: General Information,
Events and Alarms
5
Programming Manual
Accessing Process I/Os
6
This manual is part of the documentation
package with the order number:
6ES7802–0FA14–8BA0
Working with S7 Objects
7
8
Communication
Loadable Drivers
9
Design and Development of a
User Program
10
Cycle and Reaction Times of the
M7-300/400
11
Glossary, Index
C79000-G7076-C851-02
153814137.007.png 153814137.008.png
Safety Guidelines
This manual contains notices which you should observe to ensure your own personal safety, as well as to
protect the product and connected equipment. These notices are highlighted in the manual by a warning
triangle and are marked as follows according to the level of danger:
!
Danger
indicates that death, severe personal injury or substantial property damage will result if proper precau-
tions are not taken.
!
Warning
indicates that death, severe personal injury or substantial property damage can result if proper precau-
tions are not taken.
!
Caution
indicates that minor personal injury or property damage can result if proper precautions are not taken.
Note
draws your attention to particularly important information on the product, handling the product, or to a
particular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are
defined as persons who are authorized to commission, to ground, and to tag circuits, equipment, and sys–
tems in accordance with established safety practices and standards.
Correct Usage
Note the following:
!
Warning
This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers which
have been approved or recommended by Siemens.
This product can only function correctly and safetly if it is transported, stored, set up and installed cor-
rectly, and operated and maintained as recommended.
Trademarks
are registered trademarks of SIEMENS AG.
Some of the other designations used in these documents are also registered trademarks; the owner’s
rights may be violated if they are used by third parties for their own purposes.
, SIMATIC HMI
and SIMATIC NET
Copyright Siemens AG 1998 All rights reserved
The reproduction, transmission or use of this document or its contents
is not permitted without express written authority. Offenders will be
liable for damages. All rights, including rights created by patent grant or
registration of a utility model or design, are reserved.
Disclaimer of Liability
We have checked the contents of this manual for agreement with the
hardware and software described. Since deviations cannot be precluded
entirely, we cannot guarantee full agreement. However, the data in this
manual are reviewed regularly and any necessary corrections included in
subsequent editions. Suggestions for improvement are welcomed.
Siemens AG
Automation and Drives Group
Industrial Automation Systems
P.O.Box 4848, D- 90327 Nuremberg
Siemens AG 1998
Technical data subject to change.
System Software for M7–300/400 Program Design
C79000-G7076-C851-02
Index-2
Siemens Aktiengesellschaft
C79000-G7076-C851-02
SIMATIC
153814137.009.png 153814137.010.png 153814137.001.png
Preface
This manual is designed to help you when writing C programs for the automation
computer family M7-300 and M7-400 under the operating system M7 RMOS32. It
provides you with key information about the features and the functions of M7
RMOS32. It contains information on:
The M7 RMOS32 hardware and software environment,
The structure and function of M7 RMOS32,
The function and services of the RMOS API,
The function and services of the M7 API,
Mechanisms for communicating with other S7 and M7 systems,
Design and development of user programs.
Audience
This manual is mainly intended for those writing C programs for the automation
computers M7-300 and M7-400.
Scope of this Manual
This manual is applicable to the automation computers M7-300 and M7-400 with
the system software M7-SYS RT V4.0.
System Software for M7–300/400 Program Design
C79000-G7076-C851-02
iii
153814137.002.png
Preface
What is New?
This manual provides the following new topics on changes and extensions of
functions supported by version V4.0 of the system software.
Topic
Chapter
Read and write floating point numbers
7.4
Communication using Configured Connections via PROFIBUS DP (with the IF
964-DP interface submodule) and via Industrial Ethernet (with the CP 1401
communication processor)
8.5
Socket Interface for TCP/IP communication
8.12
The RMOS API provides additional function calls for writing loadable drivers.
Information on the operating principle of loadable drivers under M7 RMOS32 and
the methods used to program them can be found in the electronic manual Writing
Loadable Drivers which is part of the M7-SYS RT system software (see below).
Scope of the Documentation Package
The system software for the automation computers M7-300 and M7-400 are
documented in several manuals which can be ordered separately from the
respective product. The available manuals are listed in the following table.
Manual
Contents
System software for M7-300 and M7-400
Installation and Operation
User Manual
Installation on operation of
automation computers M7–300/400.
System software for M7-300 and M7-400
Program Design
Programming manual
Design and development of C/C++
programs.
System software for M7-300 and M7-400
System and Standard Functions
Reference Manual
Detailed information on
programming under M7
RMOS32.
System software for M7-300 and M7-400
Writing Loadable Drivers
Electronic Manual M7LDRV1B.PDF
Design of loadable drivers under
M7
Feedback
We need your help to enable us to provide you and future M7-SYS RT users with
optimum documentation. If you have any questions or comments on this manual,
please fill in the remarks form at the end of the manual and return it to the address
shown on the form. We would be grateful if you could also take the time to answer the
questions giving your personal opinion of the manual.
iv
System Software for M7–300/400 Program Design
C79000-G7076-C851-02
RMOS32, programming and
reference manual.
153814137.003.png 153814137.004.png 153814137.005.png
Preface
How to Use this Manual
This manual contains a guide to the key points of program design, program
development and program testing.
Product Overview
Chapter 1 gives you an overview of the system environment in which you develop
and run your M7 RMOS32 programs. It also describes the technical environment
within which an M7 computer can be used to solve automation assignments.
Developing a simple program for the M7
Please read chapter 2 to get an idea of the steps that are necessary to develop a
user program. The procedure to be followed is illustrated with a simple example
program.
Structure and features of M7 RMOS32
Chapter 3 talks about the system structure and functions of M7 RMOS32. It
describes each of the separate components of M7 RMOS32 (M7 RMOS32 kernel,
M7 servers) and the interfaces and communication mechanisms between the
various components.
RMOS API function calls
Chapter 4 describes the features of the M7 RMOS32 kernel and discusses the
functions which the RMOS subsystem provides for task control and task
communication. This chapter also provides information and instructions on using
the RMOS function calls in your C user program and how you program the calls.
M7 API function calls
Chapters 5 , 6 a nd 7 sh ow you how to access process I/Os using the M7 API
function calls provided by the integrated M7 servers. They also contain information
on P bus communication with other modules, alarm processing, treatment of time
events, working with S7 objects, and describe the services of the operating mode
server and the free cycle server.
Communication
Chapter 8 i nforms you about the various communication mechanisms which the
M7 automation computer provides for communicating with other automation
systems via configured and non-configured connections.
Loadable Drivers
Chapter 9 describes how to implement programs using loadable drivers.
Design and development of a user program
Chapter 10 u ses an example to illustrate how to implement an automation
assignment in separate tasks of a C user program for an M7/S7-CPU and for an
M7 FM.
System Software for M7–300/400 Program Design
C79000-G7076-C851-02
v
153814137.006.png
Zgłoś jeśli naruszono regulamin