-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IED editor: Allow editing and instantiation of all values #1297
Comments
DAs under I believe
Note that Edition 1 defined I've tested fix locally. Happy to do a pull request. |
It looks like IEC 61850-6 has a few more attribute types that are not implemented as well: <xs:simpleType name="tPredefinedBasicTypeEnum">
<xs:restriction base="xs:Name">
<xs:enumeration value="BOOLEAN"/>
<xs:enumeration value="INT8"/>
<xs:enumeration value="INT16"/>
<xs:enumeration value="INT24"/>
<xs:enumeration value="INT32"/>
<xs:enumeration value="INT64"/>
<xs:enumeration value="INT128"/>
<xs:enumeration value="INT8U"/>
<xs:enumeration value="INT16U"/>
<xs:enumeration value="INT24U"/>
<xs:enumeration value="INT32U"/>
<xs:enumeration value="FLOAT32"/>
<xs:enumeration value="FLOAT64"/>
<xs:enumeration value="Enum"/>
<xs:enumeration value="Dbpos"/>
<xs:enumeration value="Tcmd"/>
<xs:enumeration value="Quality"/>
<xs:enumeration value="Timestamp"/>
<xs:enumeration value="VisString32"/>
<xs:enumeration value="VisString64"/>
<xs:enumeration value="VisString65"/>
<xs:enumeration value="VisString129"/>
<xs:enumeration value="VisString255"/>
<xs:enumeration value="Octet64"/>
<xs:enumeration value="Unicode255"/>
<xs:enumeration value="Struct"/>
<xs:enumeration value="EntryTime"/>
<xs:enumeration value="Check"/>
<xs:enumeration value="ObjRef"/>
<xs:enumeration value="Currency"/>
<xs:enumeration value="PhyComAddr"/>
<xs:enumeration value="TrgOps"/>
<xs:enumeration value="OptFlds"/>
<xs:enumeration value="SvOptFlds"/>
<xs:enumeration value="LogOptFlds"/>
<xs:enumeration value="EntryID"/>
<!-- for 61850-8-1 Edition 2.1 -->
<xs:enumeration value="Octet6"/>
<xs:enumeration value="Octet16"/>
</xs:restriction>
</xs:simpleType> If we wanted to address all values, we'd need to implement some of these |
@jarradraumati thanks for your research on this issue, much appreciated! I'd love to see a pull request for this, if you have the time to prepare one! Would you include all missing attribute bTypes in that pull request? If not, do you think a "fallback" for missing types, which just allows me to edit the raw string content without any validation, would be a possibility? @trusz I'd love to have this feature in open-scd; is there a good reason for the current behaviour or something speaking against supporting all bTypes in the editor? |
I cannot asses from the engineering side. If there is a concrete pull request I am happy to take a look! |
I have done some further research. Some of these bTypes were intended to be "opaque" (IEC 61850-6 states that no values are required in SCL). I think that means that they are not intended to be instantiated within the data object as a
I recommend we don't allow for editing of these bTypes, since it could lead to instability within the IED, or some rejection of the SCL file when it is send to the IED. Therefore the only bTypes I think should be added are Currency is simply the three letter code as per ISO 4217. We could maintain a list of valid codes, but I'd rather leave it as a string with a maximum of three characters to avoid making another field function (unless someone is happy to create one). I have not seen this bType used in any of the IEDs I have encountered, but that does not mean it isn't used somewhere. The octets are interesting. The IEC 61850 standard alludes to them being octet strings. There are several ways these can be represented:
I'm unsure how to proceed. For now, I've made it a @ca-d I will create a pull request. |
Some end users have expressed the desire to change IED configuration settings in the IED editor, but were unable to do so, because some of the "edit" and "add" icon buttons appear to be grayed out. With the discussion below I want to find out whether this is a bug or working as intended.
If it's a bug I propose to fix it. If it's working as intended I propose to enhance the IED editor by letting the user choose to be able to edit and instantiate all DAs, or at least to tell the user why the uneditable ones remain uneditable.
Discussed in https://github.com/openscd/open-scd/discussions/1283
Originally posted by ca-d July 28, 2023
When trying to edit a
LLN0.GrRef.getScrRef
instantiated value which refers to an LDevice which is no longer existent, the "edit" icon is disabled and cannot be clicked.Why are some "edit" and "add" icon buttons disabled in the IED editor? Is there a way we could enable them all?
The text was updated successfully, but these errors were encountered: