Skip to content

Data object type child DA

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

Add new DA

alt text

You can utilize OpenSCD to add new DAs to an existing DOType. Here's how:

  1. Navigate to the DOType you want to edit and open the Edit DOType wizard.
  2. Click on the DATA ATTRIBUTE button in the middle of the wizard.

Settings:

  1. name*: If you intend to include a BDA from the IEC 61850 namespace, refer to the guidelines provided in the IEC 61850-7-4 standard. Alternatively, if you are creating a custom BDA, ensure that its name begins with a lowercase letter (a-z).
  2. desc: A user-defined description field for additional information about the attribute.
  3. bType*: The basic type of the attribute. If it is an Enum or Struct, the type field must not be empty.
  4. type*: While the type is defined as a string in the SCL, in OpenSCD, it is presented as a selector. If bType is Struct, the selector displays all DAType - id's available in the project. However, it's important to note that without existing DAType in the project, you cannot create a BDA. Conversely, if bType is Enum, the selector showcases all EnumType - id's present in the project.
  5. sAddr: User-defined string to describe a short address for the attribute.
  6. valKind: This attribute may be absent, and if present, it must be either set to true or false.
  7. valImport: This attribute may be absent, and if present, it must be either set to true or false.
  8. Val: Allows you to pre-define the value offline. This can be added to any data attribute (DA or BDA).
  9. dchg: Specifies data change according to IEC 61850-7-3 for this particular data attribute.
  10. qchg: Specifies quality change. It is true for all DA with the name a, otherwise, it is empty.
  11. dupd: Specifies data update according to IEC 61850-7-3 for this particular data attribute.
  12. fc: Specifies the functional constraint according to IEC 61850-7-3 for this particular data attribute.

Note: The definition of Val may not be relevant for all functional constraints (FC). For instance, defining a value for a status-type data attribute like stVal may not be meaningful. However, for other data attributes, pre-defining the value can be beneficial, such as for ctlModel.

Note: Starting from Edition 2, you cannot create custom common data classes (CDC) and must use predefined CDCs from IEC 61850-7-3 for user-defined data objects. Therefore, the data attributes are already defined. Please refer to the relevant tables to set the attributes dchg, qchg, dupd, and fc.

alt text

Edit DA

You can use OpenSCD to modify existing DA elements. Here's how:

  1. Navigate to the list of DOType in the Template Editor.
  2. Select the DOType that contains the DA you want to modify.
  3. Click on the specific child DA you wish to edit.

Settings:

The settings are similar to those in the Add DA wizard, with the addition of a remove button for deletion.

Example:

<DA name="ctlModel" bType="Enum" fc="CF" type="CtlModelKind">
    <Val>sbo-with-enhanced-security</Val>
</DA>

 

Remove DA

To delete a DA:

  1. Open the Edit DA wizard.
  2. Click on the Remove button.

WARNING: Be cautious when removing elements, as OpenSCD does not verify the action's validity before execution.

1. About OpenSCD

4.2 XML editor - pro mode

6.1 Report

6.2 GOOSE

Clone this wiki locally