Skip to content

Enumeration EnumVal

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

Adding EnumVal:

To add a new EnumVal to an existing EnumType in OpenSCD, follow these steps:

alt text
  1. Navigate to the EnumType to which you want to add an EnumVal, then open the Edit EnumType wizard.
  2. Click on the ENUM VALUE button located within the wizard.

Settings:

  1. ord*: This attribute must be unique within the EnumType.
  2. desc: User-defined description field.
  3. value*: The enumeration value specified as a string.

 

Edit EnumVal

To modify an existing EnumVal element, follow these steps:

  1. Navigate to the EnumType that contains the EnumVal you want to edit.
  2. Open the Edit EnumType page and click on the EnumVal you want to edit to access the Edit Enum wizard.

Settings:

  1. ord*: This attribute must be unique within the EnumType.
  2. desc: User-defined description field.
  3. value*: The enumeration value specified as a string.

 

Example:

<EnumVal ord="1">on</EnumVal>

Remove EnumVal

Removing EnumVal from an EnumType may be necessary at times to align with vendor-specific data models. For instance, in the BehaviorModeKind enumeration, it is common to include only "on," "test," and "off" values, omitting "test/blocked" and "on-blocked" options.

  1. Open the EnumVal you want to remove in the Edit EnumVal wizard.
  2. Click on the Remove button.

1. About OpenSCD

4.2 XML editor - pro mode

6.1 Report

6.2 GOOSE

Clone this wiki locally