openscd / open-scd

A substation configuration description editor for projects using SCL IEC 61850-6 Edition 2 or greater
https://openscd.github.io
Apache License 2.0
97 stars 31 forks source link

Create virtual IED does not consider multiple instances of a LNType within a function #1567

Open BurTah00 opened 1 month ago

BurTah00 commented 1 month ago

Describe the bug When the user assigns multiple instances of a same LNType (even though instance numbers/prefixes are different) to a Function element; They are visualized just as normal with no problem like below; image

Next, user creates a Virtual IED out of Functions which should turn out to LDs including those LNs within; (expected) image

But at the end, it turns out to only last or first LN is included in the datamodel, and others are ignored.

Expected behavior Expectation is all LNs are part of the datamodel of virtual IED, allocated under LD that is the name of Function element.

Sample SCL below: DigSub 2 (5) (6).zip

Sander3003 commented 1 month ago

Thanks for the report!

Sander3003 commented 1 month ago

@DavoodSooran can you take a look at it?

JakobVogelsang commented 4 weeks ago

I just tried it out myself and can confirm it is a bug!

DavoodSooran commented 4 weeks ago

@Sander3003

As Burak explained, I also added some additional explanations to help developers resolve this issue. In the substation plug-in, when a user assigns multiple instances of the same LNType to a Function element, it should be visualized as shown below:

image

After that, when the user creates a Virtual IED from the Functions, the LDs should include all the defined LNs.

image

However, the current issue is that only the last LN is included in the data model, while the others are ignored.

image

Expected behavior As Burak mentioned, the expected result is that all LNs should be included in the data model of the virtual IED, allocated under the LD that corresponds to the name of the Function element. Below is the expected outcome after creating the virtual IED:

image