This repository was archived by the owner on Nov 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Data object type DOType
Jakob Vogelsang edited this page Sep 17, 2021
·
3 revisions
Add DOType
- Navigate to the list of
DOType's in the template editor - Click on Add DOType
- Select either a
DOTypefrom the template library or an empty one (empty value field)
Settings:
- id*: make sure that id is unique in the whole project.
- desc: user-defined description field
From IEC 61850
OpenSCD templates have suggestions for all common data classes defined in the IEC 61850‑7‑3. Other than with EnumType's however you will have to edit the imported DOType to fit the needs.
NOTE:
DOTypein the OpenSCD templates contain often a minimalDOTypeorCDC. You will in most cases have to add more children to fit your needs. Check theDOTypedefinition in the standard.
User-defined
An black DOType is added to the project, that in a lot of cases is invalid so do not stop here.
Edit DOType
- Navigate to the
DOType's list in the template editor - Click on the
DOTypeyou want to edit
Settings:
- id*: make sure that id is unique in the whole project.
- desc: user-defined description field
- List of all child
DAofDO. The item shows theidas well as the type -bType. When the type starts with # than theDAis either a constructed attribute or an enumeration.SDOare always constructed data and are referencing to aDOTypeitself.
Remove EnumType
- Open the
DATypeyou want to remove Edit DAType - Click on Remove button
WARNING: OpenSCD does not check for validity before removal so be careful!
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>