Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

Párové Paired ESL rozhrania interfaces I.SGC_ImmediateReadMaster and Slave obsahujú volania contain ReadArbitrary* a odpovede calls and OnArbitrary*Read. Volania sa líšia typom výslednej hodnoty. Je ich možné použiť na čítanie hodnôt atribútov jednotlivých COSEM objektov v merači a tak zistiť jeho aktuálnu konfiguráciu. Volania zatiaľ nie sú podporené pre protokol IEC62056-21.
Parametre volania sú responses. The calls differ in the type of the resulting value. They can be used to read attribute values of individual COSEM objects in the meter and thus find out its current configuration. Calls are not yet supported for the IEC62056-21 protocol.
The call parameters are:

  • IN INT _logicalDeviceIdID logického zariadenia, z ktorého bude hodnota čítanálogical device ID from which the value will be read,
  • IN TEXT _obis logická adresa COSEM objektu v tvare OBIS kódulogical address of the COSEM object in the form of an OBIS code,
  • IN INT _classId class ID triedy príslušného COSEM objektuof the relevant COSEM object,
  • IN INT _attributeId ID atribútu triedy príslušného COSEM objektu, ktorého hodnota bude čítaná.

Podľa typu požadovanej hodnoty prebehne konverzia:

  • BOOL – konvertuje logickú hodnotu
  • INT, REAL – konvertuje ľubovoľnú číselnú hodnotu alebo vymenovaný typ a podľa potreby zaokrúhli
  • TIME – konvertuje časovú značku
  • TEXT – konvertuje ľubovoľnú hodnotu

Ak nie je možné hodnotu prečítať alebo konvertovať, odpoveď je doručená volaním OnError s kódom a popisom chyby v parametroch.

Čítanie jednoznačného identifikátora merača

  • class attribute ID of the relevant COSEM object whose value will be read.

Depending on the type of the desired value, the conversion will take place:

  • BOOL – converts a boolean value
  • INT, REAL - converts any numeric value or enumerated type and rounds as needed
  • TIME – converts the time stamp
  • TEXT – converts any value

If the value cannot be read or converted, the response is delivered by calling OnError with the code and description of the error in the parameters.


Reading unique meter identifier

The unique identifier of the meter is always stored in a COSEM object of type Data (class id 1) with the logical name Jednoznačný identifikátor merača je vždy uložený v COSEM objekte typu Data (id triedy 1) s logickým menom "0.0.42.0.0.255" v atribúte in the value attribute (attribute id atribútu 2). Je to textový reťazec, ktorého prvé 3 znaky identifikujú výrobcu (ADX – It is a text string whose first 3 characters identify the manufacturer (ADX - Addax, LGZ - Landis+Gyr, EMH – EMH) a nasledujúce cifry obsahujú sériové číslo merača (napr- EMH), and the following digits contain the serial number of the meter (e.g. EMH05601204).
CALL I.SGC_ImmediateReadSlave^ReadArbitraryText(_ld, "0.0.42.0.0.255", 1, 2)

Čítanie konfigurácie COSEM objektu typu ProfileGeneric

Reading the COSEM configuration of a ProfileGeneric object

Objects of the ProfileGeneric type (class id 7) represent an archive of values of selected COSEM objects. Meters typically use multiple such objects, each serving a different purpose and thus archiving specific readings at specific times. For example, a 15-minute LoadProfile or EvenLog responding to exceptional events.
Attributes of the ProfileGeneric class includeObjekty typu ProfileGeneric (id triedy 7) predstavujú archív hodnôt vybraných COSEM objektov. V meračoch sa typicky používa viacero takýchto objektov, pričom každý slúži iným účelom a podľa toho archivuje špecifické hodnoty v špecifických okamihoch. Napríklad 15-minútový LoadProfile alebo EvenLog reagujúci na výnimočné udalosti.
Medzi atribúty triedy ProfileGeneric patria:

  • buffer (id 2) - Archív údajov organizovaný vo forme tabuľky. Každý riadok tabuľky predstavuje jeden záznam definovaných hodnôt v určitom časovom okamihu. Každý stĺpec tabuľky obsahuje historické hodnoty jednej konkrétnej meranej veličinyData archive organized in the form of a table. Each row of the table represents one record of defined values at a certain point in time. Each column of the table contains historical values of one specific measured variable.
  • capture_objects (id 3) – Definuje zoznam stĺpcov. Pre každý stĺpec definuje Defines a list of columns. For each column it defines
    • class id of the object whose value is archived,
    • logical object name,
    • object attribute id
    • element_index – indicates the element of the structured value, usually not used – has a value of
    •  id triedy objektu, ktorého hodnota je archivovaná,
    •  logické meno objektu,
    •  id atribútu objektu
    •  element_index – označuje prvok štruktúrovanej hodnoty, obyčajne sa nepoužíva – má hodnotu 0.
  • capture_period (id 4) – Perióda archivácie v sekundách.- Archiving period in seconds.

The following example can be used to find the list of archived objectsPre zistenie zoznamu archivovaných objektov možno použiť nasledujúci príklad:
CALL I.SGC_ImmediateReadSlave^ReadArbitraryText(_ld, _obis, 7, 3)
Výsledok bude mať tvar ako v nasledujúcom príklade, pričom sa záznam bude viackrát opakovať. V príklade je uvedené archivovanie objektu The result will look like the following example, repeating the record multiple times. The example shows the archiving of the attribute time (id 2) of the object "0.0.1.0.0.255" typu of type Clock (id 8) atribútu time (id 2).
ARRAY Value:

  • STRUCTURE Value:
  • LONG_UNSIGNED Value: 8
  • OCTET_STRING Value: 00 00 01 00 00 FF (hex)
  • INTEGER Value: 2
  • LONG_UNSIGNED Value: 0