 |
ALPHA-VISION® AbvSpu: Generating AbvSpu-Database
|
Generating AbvSpu-Database
SUMMARY
The Database keeps the process parameters necessary for the PLC-Program
'AbvSpu' to run, mainly properties of the MPs and PVs.
CONTENTS
- Introduction
- Generating the AbvSpu-Database
- Setup of the AbvSpu-Database
Introduction
The AbvSpu.awl program connects to the Operater Station, it is the same on
all AbvSpu-Stations (PLCs) and processes the information of the Database.
The Database is customized for any PLC, it keeps the process parameters
necessary for the S-7 Program ‘AbvSpu’ to run. Mainly concerned are the
relevant properties of MPs and PVs.

The Database is generated by "Generating AbvSpu-Database".
Generating the AbvSpu-Database
WARNING
To avoid a conflict of Block-Numbers between AbvSpu and any S7-Program the
Block-Numbers 100 to 199 must not used by any S-7 Program.
Preconditions for generating the Database
It’s assumed that a complete VisuNT-Project is on hand e.g. created by
an import.
An import does not provide all information needed, some of the tables or
table entries might be empty.
To create the Spu-Database successfully pay attention to the following points:
- For Stations
The AbvSpu-Database is created for AbvSpu Stations only.
For those Stations properties must be amended.
(see: properties of AbvSpu Stations)
- For Transmitter/analog Measuring Points
For several types of input signals (PIW/POW/Data block) a Transmitter must
be created in the TransmitterList and than defined in the field
“Transmitter” of accordant analog MP.
Generating the AbvSpu-Database
On pressing the button

"Generating AbvSpu-Database" an automatic Object Number generation is
accomplished. After that a dialog window, listing all AbvSpu Stations, is
opened. Via buttons single Stations or all of them may be selected.
For any selected Station the according S7-Files are created.
"OK" generates the S7-Source files
- AbvSpuDB_stationsname.awl
- AbvSpuDB_stationsname.sdf
for the selected Station(s).
Moreover the section "[aagrp]" is created in the "vision2000.ini" file.
Into that section 2 DataObjects (usually PVs located on different PLCs) are
written for any Audible Alarm Group (1 to 7). These Objects are set to 1 on
an upcoming alarm, so that on the rising edge the horn of the according S-7
is sound. Via a ‘Horn Stop’ button the horn can be switched off again.
How to create Audible Alarm Groups is described in:
AudibleAlarmGroups.
Succession of generating AbvSpu Database
The succession of the generation is displayed in the ‘Output window’.
The same information are written to the log file "GenAbvSpu.log" in the
"AbvSpu-Database" folder, the messages are self-explanatory.
When generating the AbvSpu Database the relevant properties of the Data Objects
are validated. Any discrepancy is pointed out by a WARNING: - ERROR: - message.
The Data Object causing the warning/error is not taken into the AbvSpu-Database.
The generated S7 files are written as "AbvSpuDB_Stationsname.awl" and
"AbvSpuDB_Stationsname.sdf" to the subfolder "AbvSpu-Database" of the
project folder.
Setup of the AbvSpu-Database
The AbvSpu Database consists of the STL-Source file <station.awl>
and the Symbolic-file <station.sdf>.
Data Blocks of the STL-Source file
| Data Blocks |
Meaning |
| DB 104 |
auxiliary-DB |
| DB 105 |
auxiliary-DB |
| DB 120 |
state change bMPs |
| DB 121 |
state change aMPs |
| DB 122 |
value change bMPs |
| DB 123 |
value change aMPs |
| DB 124 |
Limit change aMPs |
| DB 125 |
value change PVs |
| DB 126 |
String change PVs |
| DB 128 |
Parameter change MPs |
| DB 129 |
Fade in/out MPs |
| DB 135 |
Communication: Receive-DB 1 |
| DB 136 |
Communication: Receive-DB 2 |
| DB 170 |
1st Assignment-DB PVs |
| DB 171 ... 179 |
further Assignment-DB PVs (on demand) |
| DB 180 |
Pointer list bMPs |
| DB 181 |
Pointer list aMPs |
| DB 182 |
1st Parameter-DB bMPs |
| DB 183 |
2nd Parameter-DB bMPs (on demand) |
| DB 184 |
1st Parameter-DB aMPs |
| DB 185 |
2nd Parameter-DB aMPs (on demand) |
| DB 186 |
3rd Parameter-DB aMPs (on demand) |
| DB 187 |
4th Parameter-DB aMPs (on demand) |
| DB 188 |
Scaling parameter |
| DB 189 |
Dynamic Limits |
| DB 194 |
Object number-DB |
| DB 195 |
Configuration parameter |
| DB 197 |
Automatically generation of data blocks |
| DB 198 |
Initialisation of DBs |
| DB 199 |
define Initial Values |
| FC 185 |
Blocking logic |
The symbolic file contains the symbolic identifier for the DBs of the
STL-Source file as well as those Data Objects having a Process Connection
addressing a S7-Hardware address.
The following table shows an exemplary entry for each case.
| Symbol |
Address |
Data type |
Comment |
| spuDB_Hlp1 |
DB 104 |
DB 104 |
AbvSpu-AuxDB_1 |
| bMP_S71_E1_0 |
E 1.0 |
BOOL |
Input 1.0 |