-
Notifications
You must be signed in to change notification settings - Fork 38
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
DOType
s in the template editor. - Click on the Add DOType button.
- Select either a
DOType
from 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 EnumType
s, you will need to edit the imported DOType
to suit your requirements.
NOTE:
DOType
s in the OpenSCD templates often contain only a minimalDOType
orCDC
. In most cases, you will need to add more children to customize it for your needs. Refer to theDOType
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.
Edit DOType
- Navigate to the list of
DOType
s in the Template editor. - Click on the
DOType
you 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
DA
ofDO
. Each item shows theid
and the type (bType
). If the type starts with #, then theDA
is either a constructed attribute or an enumeration.SDO
attributes are always constructed data and reference aDOType
itself.
Remove DOType
- Open the
DOType
you 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>