Data Export - Siemens SIMATIC PCS 7 Function Manual

Process control system, advanced process functions apf
Hide thumbs Also See for SIMATIC PCS 7:
Table of Contents

Advertisement

Archive management
8.2 C functions for export and backup
The following C functions are used as a template and copied and adapted by the APF
Engineering Tool:
● "FB_ARExportTrigger0.pas"
Triggers export of the data according to the specified method
● "FB_ARBackupTriggerEN0.pas"
Triggers data backup for the engineering/configuration data
● "FB_ARBackupTriggerRT0.pas"
Triggers data backup for runtime data
All C functions are adapted by the APF Engineering Tool for each archive group. For example,
archive group 3 is allocated the corresponding C functions "FB_ARExportTrigger3.pas" and
"FB_ARBackupTriggerRT3.pas". These functions are then executed at the intervals set for the
relevant archive group.
There is also a global C action "FB_DeleteMarkedRecordsTrigger.pas" which is executed
hourly and, if there is an MES system, deletes all data records marked as deleted from all
archives.
We recommend that you configure the individual functions using the APF Engineering Tool.
8.2.2

Data export

Two different methods are available for data export. Three flags are available in the archive
for these methods:
● REC_READ: Data record read from connected MES or similar system
● REC_EXPORTED: Data record exported by internal C export function to a csv file
● REC_FINISHED: Recording / changing data record by AS completed
Using the engineering tool, you also specify whether a connected MES system or similar
system exists and reads data records ("mes_used").
Each archive has a corresponding C function (template: "FB_ARExportTrigger0.pas") that is
time-triggered and has the following functionalities.
222
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA

Advertisement

Table of Contents
loading

Table of Contents