Skip to content

Data object type DOType

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

Add DOType

alt text

To create a new DOType, follow these steps:

  1. Navigate to the list of DOTypes in the template editor.
  2. Click on the Add DOType button.
  3. Select either a DOType from the template library or leave the value field empty.

Settings:

  1. id*: Ensure that the ID is unique within the entire project.
  2. desc: Provide a user-defined description.

From IEC 61850

OpenSCD templates provide suggestions for all common data classes defined in the IEC 61850‑7‑3. However, unlike EnumTypes, you will need to edit the imported DOType to suit your requirements.

NOTE: DOTypes in the OpenSCD templates often contain only a minimal DOType or CDC. In most cases, you will need to add more children to customize it for your needs. Refer to the DOType definition in the standard for guidance.

User-defined

A blank DOType is added to the project, which in many cases is invalid, so do not stop here.

alt text

 

Edit DOType

  1. Navigate to the list of DOTypes in the Template editor.
  2. Click on the DOType you want to edit.

 

Settings:

  1. id*: Ensure that the id is unique in the entire project.
  2. desc: User-defined description field.
  3. cdc*: Common Data Class definition according to IEC 61850-7-3.
  4. List of all child DA of DO. Each item shows the id and the type (bType). If the type starts with #, then the DA is either a constructed attribute or an enumeration. SDO attributes are always constructed data and reference a DOType itself.

 

Remove DOType

  1. Open the DOType you want to remove in the Edit DOType wizard.
  2. Click on the Remove button.

WARNING: OpenSCD does not perform validity checks before removal, so proceed with caution!

Example:

<DOType  cdc="DPC" id="myENC">
    <DA name="origin" bType="Enum" dchg="true" fc="ST" type="OpenSCD_Originator"/>
    <DA name="stVal" bType="Enum" dchg="true" fc="ST" type="BehaviourModeKind"/>
    <DA name="q" bType="Quality" qchg="true" fc="ST"/>
    <DA name="t" bType="Timestamp" fc="ST"/>
    <DA name="ctlModel" bType="Enum" fc="CF" type="CtlModelKind">
        <Val>sbo-with-enhanced-security</Val>
    </DA>
    <DA name="sboTimeout" bType="INT32U" fc="CF">
        <Val>30000</Val>
    </DA>
    <DA name="operTimeout" bType="INT32U" fc="CF">
        <Val>600</Val>
    </DA>
    <DA name="pulseConfig" bType="Struct" fc="CO" type="OpenSCD_PulseConfig"/>
    <DA name="SBOw" bType="Struct" fc="CO" type="OpenSCD_OpenSBOw"/>
    <DA name="Oper" bType="Struct" fc="CO" type="OpenSCD_OpenSBOw"/>
    <DA name="Cancel" bType="Struct" fc="CO" type="OpenSCD_Cancel"/>
</DOType>

1. About OpenSCD

4.2 XML editor - pro mode

6.1 Report

6.2 GOOSE

Clone this wiki locally