-
Notifications
You must be signed in to change notification settings - Fork 31
Data attribute type child BDA
Add new BDA
To add new BDA
s to an existing DAType
using OpenSCD, follow these steps:
- Navigate to the
DAType
you 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
BDA
from 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 existingDAType
in the project, you cannot create aBDA
with 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 (
DA
orBDA
).
NOTE: The
Val
definition may not be relevant for all function constraints (FC
). For example, defining a value for a status-type data attribute likestVal
may 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
name
attributes, while the template validator addresses missing or incorrecttype
attributes.
Edit BDA
You can use OpenSCD to modify existing BDA
elements. Here's how:
- Navigate to the list of
DAType
in the Template editor. - Click on the
DAType
that contains theBDA
you want to edit. - 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:
- Open the Edit DAType wizard.
- Click on the
BDA
you want to remove. - Click on the Remove button.
WARNING: Be cautious when removing
BDA
s as OpenSCD does not perform validity checks before deletion.