-
Notifications
You must be signed in to change notification settings - Fork 49
Data attribute type child BDA
Add new BDA
To add new BDAs to an existing DAType using OpenSCD, follow these steps:
- Navigate to the
DATypeyou wish to edit and open the Edit DAType wizard. - Click on the DATA ATTRIBUTE button located in the middle of the wizard.
Settings:
-
name*: If you intend to include a
BDAfrom the IEC 61850 namespace, refer to the guidelines provided in the IEC 61850-7-4 standard. Alternatively, if you are creating a customBDA, ensure that its name begins with a lowercase letter (a-z). - desc: Provide a user-defined description for the attribute.
- bType*: Select the basic type of the attribute. If Enum or Struct is chosen, the type field must not be left empty.
-
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 existingDATypein the project, you cannot create aBDAwith a Struct type. Conversely, if the bType is Enum, the selector displays allEnumType-id's in the project. - sAddr: This is a user-defined string used to describe a short address for the attribute.
- valKind: This field may be optional. If present, it must be set to either true or false.
- valImport: Specify whether the value should be imported.
-
Val: This field allows you to pre-define the value offline for the attribute. It can be added to any data attribute (
DAorBDA).
NOTE: The
Valdefinition may not be relevant for all function constraints (FC). For example, defining a value for a status-type data attribute likestValmay not be very useful. However, for other data attributes, such asctlModel, pre-defining the value can be quite meaningful.
CHECKS: The schema validator covers missing or incorrect
nameattributes, while the template validator addresses missing or incorrecttypeattributes.
Edit BDA
You can use OpenSCD to modify existing BDA elements. Here's how:
- Navigate to the list of
DATypein the Template editor. - Click on the
DATypethat contains theBDAyou want to edit. - Click on the child
BDAyou 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:
- Open the Edit DAType wizard.
- Click on the
BDAyou want to remove. - Click on the Remove button.
WARNING: Be cautious when removing
BDAs as OpenSCD does not perform validity checks before deletion.