EasyManuals Logo

Siemens SIMATIC PCS7 User Manual

Siemens SIMATIC PCS7
286 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 #219 background imageLoading...
Page #219 background image
9-9
Batch
flexible
, Manual
C79000-G7076-C650-02
9.2.3 Importing user-specific adaption routines
You can make your own adaption routines for AF parameters. When you pa-
rametrize an AF they will be presented to you for selection in addition to the
standard adaption routines. Implementation of the user-specific adaption rou-
tines takes place in a DLL (Dynamic Link Libraries).
Note
For each adaption function you must also implement the inverse function.
An example of this is given below.
You will require a suitable C compiler with which you can create DLLs.
With your compiler create one DLL-project and give the DLL the name
’BFUSER.DLL’. If you have a Microsoft C compiler, your DLL project will
usually consist of:
Make file (for example, PROJECT.MAK)
Module definition file (for example, PROJECT.DEF)
Header file (for example, PROJECT.H)
Source code file (for example, PROJECT.C)
Create one or more adaption routines in the source code file with the follow-
ing calling convention:
BOOL RoutineName( float flNorm, float flMinOrMax,
float* pflValue, BOOL bInverse );
flNorm: Standard batch table Tabelle RZP_REZEPT.NORM_AN-
SATZ
flMinOrMax: Batch quantity from table RZP_REZEPT.MIN_AN-
SATZ/MAX_ANSATZ
pflValue: Value which should be adapted; when the routine is quit it is
overwritten by the adapted value
bInverse: FALSE: Adaption y=f(x), TRUE: inverse adaption x=f
–1
(y)
Note
The name of the adaption routine must not exceed 8 characters!
Requirements
Create a DLL
project
Create your adap-
tion routine(s)
Project planning with BATCH flexible

Table of Contents

Other manuals for Siemens SIMATIC PCS7

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC PCS7 and is the answer not in the manual?

Siemens SIMATIC PCS7 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC PCS7
CategoryControl Systems
LanguageEnglish

Related product manuals