Skip to content

Enumeration EnumType

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

With OpenSCD, you have the option to either add enumerations that are defined in the standard or create your own user-defined EnumType.

NOTE: In most cases, enumerations defined in IEC 61850-7-4 and IEC 61850-7-3 are sufficient. It is recommended to use those wherever possible.

alt text

Add EnumType

  1. Navigate to the EnumType list and click on Add EnumType.
  2. Select the desired EnumType from the options available in the values field.

Settings:

  1. id: Ensure that the id is unique throughout the entire project.
  2. desc: User-defined description field.

From IEC 61850

OpenSCD templates contain all enumerations from IEC 61850-7-4 and IEC 61850-7-3. The correct EnumType with all possible EnumVal child elements are added to the project.

User-defined

To define a user-defined EnumType from scratch, open the Add EnumType wizard and make sure not to select a value. Exercise caution with this option as it adds a blank EnumType.

 

alt text

Editing EnumType:

  1. Navigate to the EnumType list within the Template editor and select the desired EnumType for editing.

Settings:

  1. id: Ensure the id is unique throughout the entire project.
  2. desc: User-defined description field.
  3. List of all child EnumVal elements with their respective ord attributes and inner text.

Example:

<EnumType id="BehaviorModeKind">
   <EnumVal ord="1">on</EnumVal>
   <EnumVal ord="2">blocked</EnumVal>
   <EnumVal ord="3">test</EnumVal>
   <EnumVal ord="4">test/blocked</EnumVal>
   <EnumVal ord="5">off</EnumVal>
</EnumType>

 

Removing EnumType:

  1. Open the EnumType you wish to remove by selecting Edit EnumType.
  2. Click on the Remove button.

WARNING: OpenSCD does not perform validity checks before removal, so exercise caution when deleting EnumTypes.

1. About OpenSCD

4.2 XML editor - pro mode

6.1 Report

6.2 GOOSE

Clone this wiki locally