M7LATR_E.PDF

(340 KB) Pobierz
Writing Loadable Drivers
Preface, Table of Contents
SIMATIC
Part 1: User Information
1
Programming Loadable Drivers
System Software for M7-300/400
Writing Loadable Drivers
Part 2: Reference Information
2
Function Calls
Manual
Data Structures and Error Codes
3
Appendix
Index
Part of M7-SYS RT V4.0
Edition 1, April 1998
153814109.005.png 153814109.006.png
Chapter
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 hard-
ware 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/400Writing Loadable Drivers
Part of M7-SYS RT V4.0
Index-2
Siemens Aktiengesellschaft
SIMATIC
153814109.007.png 153814109.008.png 153814109.001.png
Preface
Purpose of the Manual
This manual supports you in writing your own loadable drivers for the M7-300/400
automation system. It describes the structure and operating principle of loadable
drivers under M7 RMOS32 and the methods used to program them.
The manual is intended both as a user manual and as a reference document for
the necessary function calls and data structures.
Audience
This manual is aimed at system programmers who develop loadable drivers for
hardware components of the M7-300/400 automation system.
You will need to be familiar with the M7-SYS RT system software, the STEP 7
standard software, and the programming language C. You should also be familiar
with the hardware for which you intend to program a driver.
Validity of the Manual
This manual is valid for the M7-SYS RT system software, version V4.0.
Documentation Required
The following manuals contain additional information about the M7-SYS RT system
software and the development of application programs for SIMATIC M7-300/400
automation systems, and are available from your regional Siemens office.
System Software for M7-300/400Writing Loadable Drivers
Part of M7-SYS RT V4.0
i
153814109.002.png
Preface
Documentation Package System Software for M7-300/400
Order No. 6ES7802-0FA14-8BA0
Manual
General
Contents
Contents Relating to
Loadable Drivers
Installation and
Operation,
User Manual
Installation and operation
of M7–300/400
automation computers
Loading of drivers
Program Design,
Programming Manual
Design and development
of C programs.
Communication with
loadable drivers from the
user program
System and Standard
Functions, Reference
Manual
Detailed information on
programming with
M7–SYS RT
Function calls and data
structures for
communication with
loadable drivers
Manual and Online Help
This manual is only available in electronic format as part of the M7-SYS RT system
software V4.0. The reference section of the manual, which describes the function calls
and data structures, is also available in the online help file M7RLDRVB.HLP in the
S7BIN directory of STEP 7. You can include this file in the search range of the
OpenHelp function of the Borland IDE for context–sensitive support during
programming. The procedure used to include the file is the same as for the other help
files of M7-SYS RT and M7 ProC/C++.
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 or
the online help, 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.
Literature References /.../
References to other manuals are shown using the part number of the literature
between slashes /.../. Using these numbers you can find out the exact title of the
manual from the literature list at the end of this manual.
SIMATIC Training Center
Siemens also offers a number of training courses to introduce you to the SIMATIC S7
and M7 automation systems. Please contact your regional training center or the
central training center in Nuremberg, Germany for details:
D-90327 Nuremberg, Tel. (+49) (911) 895 3154.
ii
System Software for M7-300/400Writing Loadable Drivers
Part of M7-SYS RT V4.0
153814109.003.png
Preface
SIMATIC Customer Support Hotline
Contactable worldwide round the clock:
Nuremberg
Johnson City
Singapore
Simatic Basic Hotline
Nuremberg
SIMATIC BASIC Hotline
Johnson City
SIMATIC BASIC Hotline
Local time: Mo.-Fr. 8:00 to 18:00
Phone:
+49 (911) 895-7000
Local time: Mo.-Fr. 8:00 to 17:00
Phone:
+1 423 461-2522
Fax:
+49 (911) 895-7002
Fax:
+1 423 461-2231
E-Mail:
simatic.support@
nbgm.siemens.de
E-Mail:
simatic.hotline@
sea.siemens.com
SIMATIC Premium Hotline
(Calls billed, only with
SIMATIC Card)
Time:
Mo.-Fr. 0:00 to 24:00
Singapore
SIMATIC BASIC Hotline
Local time: Mo.-Fr. 8:30 to 17:30
Phone:
+65 740-7000
Phone:
+49 (911) 895-7777
Fax:
+65 740-7001
Fax:
+49 (911) 895-7001
E-Mail:
simatic@
singnet.com.sg
System Software for M7-300/400Writing Loadable Drivers
Part of M7-SYS RT V4.0
iii
153814109.004.png
Zgłoś jeśli naruszono regulamin