Skip to content

How to define a enumeration list for a SBE(property)? #125

@Evergold2022

Description

@Evergold2022

We want to define a submodel element(property) for the submodel template Sensor 4.0.

The definitions of this property are listed as follows:

MeasurementQuality: Simple Simple Prop, string, mandatory, default: good
(Source e.g. IEC 0112/2///61360_7#CBA006)
using list of values
0112/2///61360_7#CTA052 – gut / good
0112/2///61360_7#CTA053 – schlecht / bad
0112/2///61360_7#CTA054 – unsicher / uncertain
0112/2///61360_7#CTA000 – weitere / others

The property shall be a enum value with default value "good" and based on a enum list composed of the value list mentioned above.

My question is, what is the best practice to define it in the submodel template?

ChatGPT recommends me to add enum value by add qualifiers, is it right way to define the enum list for a property?
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions