Skip to content

Data attribute type DAType

Davood Sooran edited this page Apr 2, 2024 · 2 revisions

Add DAType

alt text
  1. Navigate to the list of DAType's in the Template editor.
  2. Click on Add DAType.
  3. Select either a DAType from the template library or leave the value field empty for a new one.

Settings:

  • id*: Ensure that the ID is unique within the entire project.
  • desc: User-defined description field.

From IEC 61850

OpenSCD templates contain all data attribute types from IEC 61850-7-3. Unlike EnumType, most pre-defined DATypes offer more flexibility in their definition. For example, you can examine the definition of the AnalogueValue as specified in the NSD files.

<ConstructedAttribute name="AnalogueValue"
    titleID="IEC61850_7_3.AnalogueValue::AnalogueValue.cl.title">
    <SubDataAttribute name="i"
        type="INT32"
        ...
        presCond="AtLeastOne"
        presCondArgs="1"/>
    <SubDataAttribute name="f"
        type="FLOAT32"
        ...
        presCond="AtLeastOne"
        presCondArgs="1"/>
</ConstructedAttribute>

The definition, especially the attribute presCond, provides the flexibility to decide whether one or both can be children of the AnalogueValue. This means that as a user, you must determine the structure of your AnalogueValue. In OpenSCD templates, most DATypes include all possible children by default. You can then remove unnecessary children to customize the DAType according to your requirements.

NOTE: DATypes in the OpenSCD templates often include all possible children. Please verify if you truly need all of them. Refer to the standard's DAType definition for clarification.

User-defined

An empty DAType is added to the project, which is often invalid in many cases, so do not consider the process complete at this stage.

 

Edit DAType

alt text
  1. Navigate to the list of DATypes in the template editor.
  2. Click on the DAType you wish to edit.

Settings:

  1. id*: Ensure that the ID is unique across the entire project.
  2. desc: User-defined description field.
  3. List of all child BDA: This section displays the ID and type (bType) of each child BDA. If the type starts with #, it indicates that the BDA is either a constructed attribute or an enumeration.

Example:

<DAType id="OpenSCD_Originator">
    <BDA name="orCat" bType="Enum" type="OriginatorCategoryKind"/>
    <BDA name="orIdent" bType="Octet64"/>
</DAType>

 

Remove DAType

  1. Open the DAType you wish to remove in the Edit DAType wizard.
  2. Click on the Remove button.

WARNING: OpenSCD does not perform validity checks before removal, so exercise caution when deleting elements.

1. About OpenSCD

4.2 XML editor - pro mode

6.1 Report

6.2 GOOSE

Clone this wiki locally