Porovnávané verzie

Kľúč

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

Naming convention

Parental relationships

PríkladExample

Kotva
naming
naming
Naming convention

Okrem štandardných pravidiel menotvorby platných pre všetky objekty D2000 platia pre Defincíe zariadení a Zariadenia nasledovné pravidlá:

In addition to the standard naming rules that apply to all D2000 objects, the following rules apply to Device Definitions and Devices:


  • The default prefix for Device Definitions is Štandardná predpona (prefix) prefix pre Definície zariadenia je "DD.", pre Zariadenia je for Devices it is "DI.".
  • Prípona (sufix) nie je pre Definície zariadenia ani pre Zariadenia povolená - musí byť prázdna.
  • Prefix musí končiť oddeľovacím znakom - Separátor (štandardne bodka, môže byť zmenený na podtrhnítko). 
  • Prefix nemôže byť pre Definície zariadeniaZariadenia rovnaký ako prefix pre iné typy objektov (z dôvodu mennej kolízie)
  • Separátor musí byť rovnaký pre Definície zariadenia aj pre Zariadenia.
  • Je možné zmeniť Separátor v nastavení menotvorby, ale je nutné ho zmeniť aj pre Definície zariadenia aj pre Zariadenia súčasne (napr. "DD." → "DD_" a "DI." → "DI_".
  • Zmena Prefixu pre Definície zariadeniaZariadenia na rozdiel od zmeny Prefixu pre iné typy D2000 objektov spôsobí okamžité premenovanie všetkých Definícií zariadení (včítane zmeny mien položiek, aby neobsahovali Separátor), Zariadení a pripojených Interných položiek. Preto túto operáciu neodporúčame vykonávať na produkcii, ale iba na vývojovom serveri, ideálne bez spustených ďalších D2000 procesov (iba D2000 Server a CNF). Následne odporúčame systém D2000 reštartovať. Pred premenovaním odporúčame odzálohovať konfiguračnú databázu.
  • Meno položky v Štruktúrovanej definícii zariadenia nemôže obsahovať Separátor. Štandardne teda môže obsahovať podtrhnítko, ale nie bodku.
  • Meno riadku Zariadenia s Poľovou definíciou zariadenia nemôže obsahovať Separátor. Štandardne teda môže obsahovať podtrhnítko, ale nie bodku.

Mená Zariadení

  • Zariadenie najvyššej úrovne (ktoré nie je pripojené do iného Zariadenia) má meno v tvare predpona+vlastne_meno (napr. DI.BlokA)
  • Zariadeniu, ktoré je pripojené do iného zariadenia, sa nastaví meno v tvare meno_zariadenia+separator+meno_polozky (napr. DI.BlokA.Gener1)
  • Ak je podzariadenie pripojené do zariadenia s Štruktúrovanou definíciou zariadenia, tak meno_polozky je Meno položky z Definície zariadenia.
  • Ak je podzariadenie pripojené do zariadenia s Poľovou definíciou zariadenia, tak meno_polozky je Meno príslušného riadku poľa zo Zariadenia.
  • Pri odpojení podzariadenia sa jeho meno zmení. Separátor sa nahradí alternatívnym separátorom (štandardne bodka podtrhnítkom). Viď príklad.

Mená Interných položiek

  • Ak je D2000 objekt (napr. meraný bod) pripojený do položky Zariadenia, ktorej Typ hodnoty je Interná položka, tak sa jeho meno zmení na  meno_zariadenia+separator+meno_polozky (napr. DI.Gener1.Power).
  • Príslušnosť k Zariadeniu má teda vyššiu prioritu ako štandardné pravidlá menotvorby pre daný typ objektu.

Rekurzivita

  • The suffix is ​​not allowed for Device Definitions or Devices - it must be empty.
  • The prefix must end with a separating character - a Separator (by default a dot, it can be changed to an underscore).
  • Both Device Definitions and Devices must have a unique prefix - it must be different from the prefixes of other object types (to avoid a possible naming collision).
  • The Separator must be the same for both Device Definitions and Devices.
  • It is possible to change the Separator in the menu setting, but it is necessary to change it for both Device Definitions and Devices at the same time (eg "DD." → "DD_" and "DI." → "DI_").
  • Changing the Prefix for Device Definitions and Devices, as opposed to changing the Prefix for other types of D2000 objects, will cause immediate renaming of all Device Definitions (including changing item names to exclude the new Separator, if it was changed), Devices, and connected Internal Items. Therefore, we do not recommend performing this operation on production, but only on the development server, ideally without running other D2000 processes (only D2000 Server and CNF). Subsequently, we recommend restarting the D2000 system. We recommend that you back up the configuration database before renaming.
  • The Item name in the Structured Device Definition cannot contain a Separator. Thus, by default, it can contain an underscore, but not a period.
  • Row Name of a Device with an Array Device Definition cannot contain a Separator. Thus, by default, it can contain an underscore, but not a period.

Names of Devices

  • The top-level Device (which is not connected to another Device) has a name in the form of a prefix+own_name (e.g. DI.BlockA)
  • The name of a Device that is connected to another Device is changed to a name in the form device_name+separator+item_name (e.g. DI.BlockA.Gener1)
  • If the subdevice is connected to a Device with a Structured Device Definition, then item_name is the Item name from the Device Definition.
    If the subdevice is connected to a Device with an Array Device Definition, then item_name is the Name of the corresponding row of the Device.
    When the subdevice is disconnected, its name changes. The Separator is replaced with an alternative separator (by default, a dot is replaced by an underscore). See the example.

Names of Internal Items

  • If a D2000 object (eg I/O tag) is connected to a Device item whose Value type is Internal Item, then its name changes to device_name+separator+item_name (e.g. DI.Gener1.Power).
  • Belonging to the Device therefore has a higher priority than the standard naming rules for a given type of object.

Recursivity

  • If a sub-device has other sub-subdevices or internal items connected, their names are also changed according to the above rules. See the exampleAk má podzariadenie pripojené iné pod-podzariadenia alebo interné položky, tak aj ich mená sú zmenené podľa horeuvedených pravidiel. Viď príklad.


Kotva
parent
parent
Parental relationships

Rodičovské vzťahy Definícií zariadenia

  • Rodičom všetkých objektov typu Definícia zariadenia je objekt DEVICEDEF.

Rodičovské vzťahy Zariadení

Parental relationships of Device Definitions

  • The parent of all Device Definition objects is the DEVICEDEF.d object

Parental relationships of Devices

  • The parent of a Device object becomes the respective Device Definition object when it is created.
  • The parent of a Device object changes when the Device is connected to another Device. The parent of the sub-device becomes the Device to which the sub-device is connected.
  • If a sub-device is disconnected from the Device, its parent will again be changed to the relevant Device Definition
  • Rodičom objektu typu Zariadenie je pri vytváraní objekt typu Definícia zariadenia.
  • Rodič objektu typu Zariadenie sa mení pri pripojení do iného Zariadenia. Rodičom podzariadenia sa stane Zariadenie, do ktorého je podzariadenie pripojené.
  • Ak je podzariadenie odpojené zo Zariadenia, jeho rodičom sa opäť stane príslušná Definícia zariadenia.


Kotva
example
example

...

Example

Consider the following object configuration, which models the following tree: Power Plant → Blocks → Generators 

  • The

Uvažujme nasledovnú konfiguráciu objektov, ktorá modeluje strom Elektráreň → Bloky → Generátory

  • Zariadenie DI.EMO device (elektráreň) má v položke Blocks pripojené podzariadenie a power plant) has the DI.EMO.Blocks (s Poľovou definíciou zariadenia).subdevice (with the Array Device Definition) connected in the Blocks item.
  • The Zariadenie DI.EMO.Blocks device (bloky) je pole dvoch zariadení a má pripojené podzariadenia blocks) is an array of two devices and has the DI.EMO.Blocks.BlockA a DIand DI.EMO.Blocks.BlockB (s Poľovou definíciou zariadenia). Mená jednotlivých riadkov poľa sú BlockA a BlockB.Zariadenie subdevices (with the Array Device Definition) connected. The Names of the individual rows of the array are BlockA and BlockB.
  • The DI.EMO.Blocks.BlockA device (blok) je pole dvoch zariadení a má pripojené podzariadenia a block) is an array of two devices and has DI.EMO.Blocks.BlockA.TG1 a DIand DI.EMO.Blocks.BlockA.TG2 (so Štruktúrovanou definíciou zariadenia). Mená jednotlivých riadkov poľa sú TG1 a TG2.Zariadenie subdevices (with the Structured Device Definition) connected. The Names of the individual rows of the array are TG1 and TG2.
  • The DI.EMO.Blocks.BlockB device (blok) je pole dvoch zariadení a má pripojené zariadenia a block) is an array of two devices and has DI.EMO.Blocks.BlockB.TG3 a DIand DI.EMO.Blocks.BlockA.TG4 (so Štruktúrovanou definíciou zariadenia). Mená jednotlivých riadkov poľa sú TG3 a TG4.TG4 subdevices (with the Structured Device Definition) connected. The Names of the individual rows of the array are TG3 and TG4.
  • The Zariadenia DI.EMO.Blocks.BlockA.TG1, DI.EMO.Blocks.BlockA.TG2,  DIDI.EMO.Blocks.BlockB.TG3 a DIand DI.EMO.Blocks.BlockA.TG4 devices (generátory) majú do položiek Power a Running pripojené merané body.
  • Nasledovný obrázok ilustruje popísane Zariadenia spolu s ich rodičmi (pre zariadenie najvyššej úrovne DI.EMO je rodičom jeho Definícia zariadenia, pre ostatné zariadenia je rodičom zariadenie, do ktorého je pripojené):
    Image Removed
  • Nasledovný obrázok ilustruje mená meraných bodov pripojených do položiek Power a Running jednotlivých turbogenerátorov TG1..TG4 spolu s členstvom v zariadení:
    Image Removed
  • individual generators) have I/O tags connected to the Power and Running items.
  • The following figure illustrates the described Devices together with their parents (for a top-level device DI.EMO, the parent is its Device Definition, for other devices the parent is the device to which they are connected):
    Image Added
  • The following figure illustrates the names of the I/O tags connected to the Power and Running items of the individual TG1..TG4 turbogenerators together with the membership in the device:
    Image Added
  • If the DIAk by sa v odpojilo podzariadenie DI.EMO.Blocks.BlockA.TG2 zo zariadenia DIsubdevice was disconnected from the DI.EMO.Blocks.BlockA, jeho meno by sa zmenilo na DIits name would change to DI.EMO_Blocks_BlockA_TG1 (separátor bodka by bol nahradený alternatívnym separátorom podtrhnítko). Je tak zrejmé, že je to teraz zariadenie najvyššej úrovne (v mene je iba jediný separátor v prefixe). Zároveň by sa zmenil aj rodič zariadenia na Definíciu zariadenia - viď posledný riadok obrázku:
    Image Removedthe dot separator would be replaced by an alternate underscore separator). It is so obvious that it is now a top-level device (there is only one separator in the prefix in the name). At the same time, the parent of the device would change to a Device Definition - see the last line of the following figure:
    Image Added
  • Similarly, the names of the I/O tags connected to the Power and Running items of the DIPodobne by sa zmenili aj názvy meraných bodov pripojených do položiek Power a Running zariadenia DI.EMO_Blocks_BlockA_TG1 - viď posledné dva riadky obrázku would change - see the last two lines of the following figure:



Info
titleRelated pages:

Device definition

Device

...