umati / Dashboard-OPCUA-Client

OPC UA gateway based on open62541 to subscribe to servers implementing umati endorsed companion specification and publish via MQTT to the broker for https://umati.app
Mozilla Public License 2.0
20 stars 9 forks source link

[MV] Gateway does not detect additional variables #501

Open izonfreak opened 1 year ago

izonfreak commented 1 year ago

When I add an additional variable to my instance object using. It does not get picked up by the gateway and not pass in the json. I have found this issue in two specific cases:

1) If I have an object instance that implements a interface that has additional optional components like ICable in the image bellow.

image

In this case the gateway is able to monitor the maintenance variables from the base type IVisionInfoType but not the ones added in the subtype ICableType. When the information is transmitted the Diameter, Length, Shielding and Connectors properties are missing from the json.

2) If I instantiate additional variables inside a folder or below an object. The new variables are instantiated as component in the folder or as addIn.

image

(Note: Please ignore that the screen shot is not Machinery ResultManagment it is just to illustrate) Consider the use case for Machinery ResultManagement where the result variables are contained inside a folder. If I instance a single variable inside the folder for umati to monitor ( i will be updating the variable with the latest result) the gateway does not add it to the json, independent on the type of the variable that I use (Int32, string or a structure). This same problem persist if I for example try to add a variable instance to my object instance. If I add any variable to my object that is not on the type it does not pick it up. I had to create a subtype of my ObjectType that includes the variable as a mandatory component to get the gateway to transmit the information. However, this seems to break the umati app in other ways (see : https://github.com/umati/Dashboard/issues/1107)

Kantiran91 commented 1 year ago

@izonfreak Could you please give us more information: Environment:

Log Upload log file or relevant error logs.

@xenonforlife: Are these variables used in the Dashboard at the automatica fair? @mdornaus: Could you please have a look at the for the fair relevant variables?

izonfreak commented 1 year ago

Environment:

OS: Windows 11. OPC UA Dashboard Client Version: 2.0.0-rc7 Used Enviroment: umati.app OPC UA SDK of server: C++ Unified Automation Server SD:

Log. The log message that could be relevant is the ones that say that my components are "empty" for some reason.

DashboardOpcUaClient-20230606.log

For the variables in a folder I suppose that the gateway indeed finds the variables otherwise #497 will not happen, but it seems that it just ignore them.

Your questions: Are these variables used in the Dashboard at the automatica fair?

Other than the results in the result folder, the additional variables in the components are not really relevant for the automatica fair as far as I understood. However, I find this issue relevant for future demos that might want to add additional components only to the instances of their objects.

Kantiran91 commented 1 year ago

@GoetzGoerisch: Is this issue relvant for our EPIC? The current MV Demo do not show this additional variables.