Skip to content

Data attribute type child BDA

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

Add new BDA

alt text

To add new BDAs to an existing DAType using OpenSCD, follow these steps:

  1. Navigate to the DAType you wish to edit and open the Edit DAType wizard.
  2. Click on the DATA ATTRIBUTE button located 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: Provide a user-defined description for the attribute.
  3. bType*: Select the basic type of the attribute. If Enum or Struct is chosen, the type field must not be left empty.
  4. type*: Type is defined as a string in the SCL but is a selector in OpenSCD. If the bType is set to Struct, the selector displays all DAType - id's in the project. Note that without existing DAType in the project, you cannot create a BDA with a Struct type. Conversely, if the bType is Enum, the selector displays all EnumType - id's in the project.
  5. sAddr: This is a user-defined string used to describe a short address for the attribute.
  6. valKind: This field may be optional. If present, it must be set to either true or false.
  7. valImport: Specify whether the value should be imported.
  8. Val: This field allows you to pre-define the value offline for the attribute. It can be added to any data attribute (DA or BDA).

NOTE: The Val definition may not be relevant for all function constraints (FC). For example, defining a value for a status-type data attribute like stVal may not be very useful. However, for other data attributes, such as ctlModel, pre-defining the value can be quite meaningful.

CHECKS: The schema validator covers missing or incorrect name attributes, while the template validator addresses missing or incorrect type attributes.

alt text

Edit BDA

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

  1. Navigate to the list of DAType in the Template editor.
  2. Click on the DAType that contains the BDA you want to edit.
  3. Click on the child BDA you wish to modify.

Settings:

The settings are the same as those in the Add BDA wizard, with the addition of a remove button for deletion.

Example:

<BDA name="orCat" bType="Enum" type="OpenSCD_OriginatorCategoryKind">

 

Remove BDA

To delete a BDA from a DAType, follow these steps:

  1. Open the Edit DAType wizard.
  2. Click on the BDA you want to remove.
  3. Click on the Remove button.

WARNING: Be cautious when removing BDAs as OpenSCD does not perform validity checks before deletion.

1. About OpenSCD

4.2 XML editor - pro mode

6.1 Report

6.2 GOOSE

Clone this wiki locally