-
Notifications
You must be signed in to change notification settings - Fork 46
Data object type DOType
Davood Sooran edited this page Apr 3, 2024
·
3 revisions
Add DOType
To create a new DOType, follow these steps:
- Navigate to the list of
DOTypes in the template editor. - Click on the Add DOType button.
- Select either a
DOTypefrom the template library or leave the value field empty.
Settings:
- id*: Ensure that the ID is unique within the entire project.
- 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 minimalDOTypeorCDC. In most cases, you will need to add more children to customize it for your needs. Refer to theDOTypedefinition 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.
Edit DOType
- Navigate to the list of
DOTypes in the Template editor. - Click on the
DOTypeyou want to edit.
Settings:
- id*: Ensure that the id is unique in the entire project.
- desc: User-defined description field.
- cdc*: Common Data Class definition according to IEC 61850-7-3.
- List of all child
DAofDO. Each item shows theidand the type (bType). If the type starts with #, then theDAis either a constructed attribute or an enumeration.SDOattributes are always constructed data and reference aDOTypeitself.
Remove DOType
- Open the
DOTypeyou want to remove in the Edit DOType wizard. - 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>