Siemens SIMATIC PCS7 Manual page 219

Process control system batch flexible, automating batch processes
Hide thumbs Also See for SIMATIC PCS7:
Table of Contents

Advertisement

9.2.3
Importing user-specific adaption routines
Requirements
Create a DLL
project
Create your adap-
tion routine(s)
Batch flexible , Manual
C79000-G7076-C650-02
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
Note
The name of the adaption routine must not exceed 8 characters!
Project planning with BATCH flexible
–1
(y)
9-9

Advertisement

Table of Contents
loading

Table of Contents