Sunteți pe pagina 1din 19

SQL data structure

EMH CONTROL CENTER (MS SQL)

Stand: 19.12.2014
CONTROLCENTER-SQLdatastruktur-PHB-E-0.10

The contents published in this manual are protected by copyright. Translation, reprinting,
duplication or storage in data processing systems requires the express approval of EMH.
All trademarks and product names found in this manual belong to EMH metering GmbH
& Co. KG or the respective title holders.
EMH is certified according to DIN EN ISO 9001:2008 and constantly endeavours to
improve its products.
We reserve the right to add to, modify, or remove the content of this manual and the
technical specifications without advance notice.
The description of the product specification in this manual does not constitute any part of
a contract.
2015 EMH metering GmbH & Co. KG. All rights reserved.

If you have any questions or suggestions, contact us at:


EMH metering
GmbH & Co. KG

Neu-Galliner Weg 1
19258 Gallin
GERMANY
Tel.:

+49 38851 326-0

Fax:

+49 38851 326-1129

E-mail:

info@emh-metering.com

Web:

www.emh-metering.com

Technical support:
Tel.:

+49 38851 326-1930

E-mail:

support@emh-metering.com

SQL data structure EMH CONTROL CENTER

Contents

EMH metering

1
1.1
1.2
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.2.10
1.2.11
1.2.12
1.2.13
1.2.14
1.3
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.4
1.5

EMH CONTROL CENTER database tables ..................................................... 4


The database tables ........................................................................................... 4
Configuration tables............................................................................................ 4
conf_Aufgaben ................................................................................................... 4
conf_Einstellungen ............................................................................................. 4
conf_Excelexport ................................................................................................ 4
conf_Excelregister .............................................................................................. 5
conf_Jobs ........................................................................................................... 5
conf_Kunde ........................................................................................................ 5
conf_Lokalmodem .............................................................................................. 6
conf_MBUSfilter.................................................................................................. 6
conf_Msconsexport ............................................................................................ 6
conf_Portliste ...................................................................................................... 6
conf_Textexport .................................................................................................. 6
conf_Version ...................................................................................................... 6
conf_Zaehler ...................................................................................................... 7
conf_Zaehlerregister........................................................................................... 8
Values read out by the meter ............................................................................. 8
data_lg................................................................................................................ 8
data_lp_d............................................................................................................ 8
data_lp_k ............................................................................................................ 9
data_reg ........................................................................................................... 10
data_reg_all ...................................................................................................... 10
importfiles ......................................................................................................... 11
logbuch ............................................................................................................. 11
Data base structure (biliing data) ...................................................................... 12
Data base structure (load profile) ..................................................................... 13

2
2.1
2.2
2.3
2.4
2.5
2.6
2.7

Example data .................................................................................................. 14


Example for conf_Kunde .................................................................................. 14
Example for conf_Zaehler ................................................................................ 14
Example for conf_Excelregister ........................................................................ 15
Example for data_reg ....................................................................................... 16
Example for data_reg_all.................................................................................. 17
Example for data_lp_k ...................................................................................... 18
Example for data_lp_d...................................................................................... 18

3
3.1
3.2

Annex .............................................................................................................. 19
Annex 1: EMH EMH CONTROL CENTER user interface................................. 19
Annex 2: EMH EMH CONTROL CENTER SQL server settings ....................... 19

EMH CONTROL CENTER database tables

SQL data structure EMH CONTROL CENTER

EMH CONTROL CENTER database tables

1.1

The database tables

The database structure consists of configuration tables for recording the basic customer
and software program parameter (conf_), tables with readout data from (data_), as
well as additional tables.

Illustration 1:

Database structure with visible configuration tables

1.2

Configuration tables

1.2.1

conf_Aufgaben

Provides the chronological processing of the jobs (conf_Jobs), regarding the meter to be
read out.
1.2.2

conf_Einstellungen

Basic settings as server settings, time settings of the EMH CONTROL CENTER,
1.2.3

conf_Excelexport

Job settings of the Excel export function, e. g. billing data.


4

EMH metering

SQL Datenstruktur EMH CONTROL CENTER


1.2.4

EMH CONTROL CENTER database tables

conf_Excelregister

List of known OBIS codes with a unique ID.


This table is used as a reference for measured values which have been read out.

Illustration 2:

Column names of the Excel register

Table 1:

Description of the columns of the Excel register

Column

Assignment

Explanation

ID

RegisterID

Basic correlation of the OBIS-information

Medium

OBIS-Value-Group A
e. g. electricity = 1,

Kanal

OBIS-Value-Group B
Channel 0-64, if used

OBIS

OBIS-Value-Group C-E
OBIS code acc. to COSEM IEC62056-xxx

Vorwert

OBIS-Value-Group F
Placeholder ## indicates pre-value

Kommentar

Translation of OBIS into text


e. g. for export functions

1.2.5

conf_Jobs

Defined tasks, regarding the meter.


1.2.6

conf_Kunde

List with set up customer data (customer address, ), invoice address

Illustration 3:

EMH metering

Column names of the customer data

EMH CONTROL CENTER database tables

Table 2:

SQL data structure EMH CONTROL CENTER

Description of the columns of the customer data

Column

Assignment

Explanation

ID

KundeID

Basic correlation of the customer data

Kundennummer

Automatic numbering within the system

Name

Customers name, e. g. airport xy

Adresse

Customers address: street name

PLZ

Customers address :post code

Ort

Customers address: city

Zusatz

Free text information

geloescht

Marking the state of the data set


active/deactivated

1.2.7

conf_Lokalmodem

Modems which are set up at the EMH CONTROL CENTER and their configuration data,
list of dialling modems.
1.2.8

conf_MBUSfilter

Using the MBus filter, valid OBIS codes are assigned to the data of a MBus readout.
1.2.9

conf_Msconsexport

Configuration file for the set up of a MSCONS interface file.


1.2.10

conf_Portliste

List of the ports for the external communication (Ethernet, IP-T, OKK, dialling modem).
1.2.11

conf_Textexport

Configuration file for setting the structure of text based interface files.
1.2.12

conf_Version

EMH CONTROL CENTER version information of the data base structure.


This information is evaluated during the update process and correspondingly considered.

Illustration 4:

Example for the version information

EMH metering

SQL Datenstruktur EMH CONTROL CENTER

1.2.13

EMH CONTROL CENTER database tables

conf_Zaehler

List of meters, meter ID, long name of the meter, basic parameter of the meter,
conversion factors, access date, etc.

Illustration 5:

Columnn names of the meter data

Table 3:

Description of the columns of the meter data

Column

Assignment

Explanation

ID

Zhler_ID

Basic correlation of the meter data and the


readout data.

KundeID

conf_Kunde

Correlation to the table conf_Kunde

Eigentumsnummer

Meter number (ideally identical with the register


0.0.0 of the meter)

Fabriknummer

Serial number of the manufacturer

Adresse

Applicaton site: street name

PLZ

Application site: postal code

Ort

Application site: city

Zusatz

Free text information

Wandler_U

Installation information about the voltage


transformer

Wandler_I

Installation information about the current


transformer

Verbindung

Parameter for establishing a connection (modem)

Deaktiviert

Meter is excluded from the active readout

Gelscht

Meter disappears from the tree view

The value Eigentumsnummer is the meter number which is used for billing.
EMH metering

EMH CONTROL CENTER database tables


1.2.14

SQL data structure EMH CONTROL CENTER

conf_Zaehlerregister

Correlation of meter ID (conf_Zhler) and register ID (conf_Excelregister)

Illustration 6:

Column names of the meter register data

Table 4:

Description of the columns of the meter register data

Column

Assignment

ID

Explanation
Consecutive number

Zhler_ID

conf_Zhler

Repeatedly used meter ID

RegisterID

conf_ Excelregister

OBIS code which has been read out for the meter
in the form of the ID

1.3

Values read out by the meter

1.3.1

data_lg

Read out values of the meter logbook (e. g. P.9.8).


1.3.2

data_lp_d

Read out values of the load profile data regarding the meter ID (conf_Zhler).

Illustration 7:

Column names of the load profile data

Table 5:

Description of the columns of the load profile data

Column

Assignment

ID
Zhler_ID

Explanation
Consecutive number

conf_Zhler

Repeatedly used meter ID

Tag

Date of this capture period

Minu

Starting time for this capture period

Status

State value for this capture period

Auslesezeitpunkt

Time of the reading by the EMH CONTROL


CENTER
EMH metering

SQL Datenstruktur EMH CONTROL CENTER

EMH CONTROL CENTER database tables

Column

Assignment

Explanation

Sekundenindex

Relative time for meter with seconds index

KanalID1

Readout value for this capture period for LP


channel 1

KanalID220

Channel IDxx for additional channels

1.3.3

data_lp_k

Readout values of the load profile headers of the meter ID.


List of load profile channels of a meter. Assignment of the channel ID with the code
number, which can be gathered from the channel.
Table 6:

Column

Description of the columns of the load profile channel data

Assignment

ID

Explanation
Consecutive number

Zhler_ID

conf_Zhler

Repeatedly used meter ID

KanalID

data_lp_d

LP channel, position of the LP channel within the LP

\KanalIDxx

EMH metering

LPArt

LP type, P.01 or P.02

Medium

OBIS-Value-Group A
e. g. electricity = 1,

Kanal

OBIS-Value-Group B
Channel 0-64, lt. OBIS code system

OBIS

OBIS des Kanals


e. g. 1.5

Einheit

Physical unit, e.g. kW

Raster

LP raster, e. g. 15 for a quarter hour value

EMH CONTROL CENTER database tables

1.3.4

SQL data structure EMH CONTROL CENTER

data_reg

Readout meter values (meter ID) with assignment to the register ID.
Values for billing, maximum values, including. all available re-settings.

Illustration 8:

Column names of the billing values one meter

Table 7:

Description of the columns of the billing values one meter

Column

Assignment

ID

Explanation
Consecutive number

Zhler_ID

conf_Zhler

Repeatedly used meter ID

RegisterID

conf_
Excelregister

Read out OBIS code acc. to the meter in the


form of the register ID

Wert

Registerinhalt

E. g. meter reading

Einheit

Physical unit of the register content

Zeitstempel

transferred time stamp, e. g. for maxima

Inhalt

(Backup) complete line of the register value,


e. g. 1.8.0*02(002400.99*MWh)

Auslesezeitpunkt

Time of the readout by the EMH CONTROL


CENTER

1.3.5

data_reg_all

Readout meter values (meter ID) with assignment to the register ID.
Values for billing, maximum values, current values only including the (exclusive) last
available re-settings per meter.

Illustration 9:

10

Column names of the billing values all meters

EMH metering

SQL Datenstruktur EMH CONTROL CENTER

Table 8:

EMH CONTROL CENTER database tables

Description of the columns of the billing values all meters

Column

Assignment

ID

Explanation
Consecutive number

Zhler_ID

conf_Zhler

Repeatedly used meter ID

RegisterID

conf_
Excelregister

Read out OBIS code acc. to the meter in the


form of the register ID

OBIS

OBIS code acc. to the register ID

Wert

Register content, e. g. meter reading

Einheit

Physical unit of the register content

Zeitstempel

(Backup) complete line of the register value,


e. g. 1.8.0*02(002400.99*MWh)

Auslesezeitpunkt

Time of the readout by the EMH CONTROL


CENTER

1.3.6

importfiles

Backup copy during the local data import process, e. g. by the EMH COMBI MASTER or
EMH MOBILE.
1.3.7

logbuch

Logbook of the EMH CONTROL CENTER read out module.


Backup copy of the raw data during the active meter readout.

Illustration 10:

EMH metering

Column names of the raw data

11

EMH CONTROL CENTER database tables

1.4

SQL data structure EMH CONTROL CENTER

Data base structure (biliing data)

Data structure for collecting the billing data.


The measured values of a meter can be taken using the meter number
(conf_Zaehler\Eigentumsnummer) with assignment to the meter ID (conf_Zaehler\ID)
from the read out table (data_reg\ZaehlerID) at the column value (data_reg\Wert).
Thereby the OBIS code for each value can be taken via (data_reg\RegisterID) from the
register table (conf_Excelregister\ID) assigned from the OBIS column
(conf_Excelregister\OBIS).

Illustration 11:

12

Data base structur (billing data)

EMH metering

SQL Datenstruktur EMH CONTROL CENTER

1.5

EMH CONTROL CENTER database tables

Data base structure (load profile)

Data structure for collecting the billing data.

Illustration 12:

EMH metering

Data base structure (load profile)

13

Example data

SQL data structure EMH CONTROL CENTER

Example data

2.1

Example for conf_Kunde

Illustration 13:

conf_Kunde in the data base structure

Illustration 14:

Example table for conf_Kunde

2.2

e. g. data_reg\ZaehlerID

14

Example for conf_Zaehler

Illustration 15:

conf_Zaeler in the data base structure

Illustration 16:

Example table for conf_Zaeler

EMH metering

SQL Datenstruktur EMH CONTROL CENTER

2.3

EMH metering

Example data

Example for conf_Excelregister

Illustration 17:

conf_Exelregister in the data base structure

Illustration 18:

Example table for conf_Excelregister

15

Example data

SQL data structure EMH CONTROL CENTER

2.4

16

Example for data_reg

Illustration 19:

data_reg in the data base structure

Illustration 20:

Example table for data_reg

EMH metering

SQL Datenstruktur EMH CONTROL CENTER

2.5

EMH metering

Example data

Example for data_reg_all

Illustration 21:

data_reg_all in the data base structure

Illustration 22:

Example table for data_reg_all

17

Example data

SQL data structure EMH CONTROL CENTER

2.6

Illustration 23:

data_lp_k in the data base structure

Illustration 24:

Example table for data_lp_k

2.7

18

Example for data_lp_k

Example for data_lp_d

Illustration 25:

data_lp_d in the data base structure

Illustration 26:

Example table for data_lp_d

EMH metering

SQL Datenstruktur EMH CONTROL CENTER

Annex

3.1

Annex 1: EMH EMH CONTROL CENTER user interface

Illustration 27:

3.2

Example for the user interface of the EMH CONTROL CENTER

Annex 2: EMH EMH CONTROL CENTER SQL server settings

Illustration 28:

EMH metering

Annex

Example for the SQL server settings of the EMH CONTROL CENTER

19

S-ar putea să vă placă și