Argument in WwMessageArgumentDataType|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Argument in WwMessageArgumentDataType
Avatar
Loko Vik
Member
Members
Forum Posts: 15
Member Since:
08/10/2022
sp_UserOfflineSmall Offline
1
03/07/2023 - 06:25
sp_Permalink sp_Print

Hello Everyone,

I am trying to create an Event of WwBaseEventTypeState. In this event, Argument as type of WwMessageArgumentDataType can set (link). I would like to set some parameter value. I am encounter something strange. See screenshot via link.

Q1. Why does WwMessageArgumentDataType has 2 Values?

Q2. Why value set in argument is not being displayed?

Any explanation or help is highly appreciated!

Thanks in advance!

Regards!

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
03/07/2023 - 08:55
sp_Permalink sp_Print

I am not sure why you see two values. I see one Value which is a union.

Where is it being displayed?

Avatar
Loko Vik
Member
Members
Forum Posts: 15
Member Since:
08/10/2022
sp_UserOfflineSmall Offline
3
03/07/2023 - 23:23
sp_Permalink sp_Print

My client in this case is UaExpert.

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
03/08/2023 - 07:03
sp_Permalink sp_Print

Are you sure there is a value being sent?

It is still not clear why you think there are 2 values.

Avatar
Loko Vik
Member
Members
Forum Posts: 15
Member Since:
08/10/2022
sp_UserOfflineSmall Offline
5
03/08/2023 - 07:36
sp_Permalink sp_Print

I thought earlier the value from Opc.Ua.Argurment is different and WwMessageArgumentDataType. But since this is union, they are the same value as you mention.

As far as sending value is concern. In debug process, the values are set correctly as mentioned in screenshot. Could you tell me, how can I check whether the values are sent or not?

Info: Other value/parameter from WwBaseEventTypeState are being set, sent and displayed correctly on UaExpert.

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
6
03/08/2023 - 17:03
sp_Permalink sp_Print

WireShark is the best way to determine whether an error originates in the Server or a if it is Client issue.

WwMessageArgumentDataType is a subtype of Argument which adds a single Value property.

The Value property is a union of all possible DataTypes.

I don't understand why they did this. A Variant is already a union of all DataTypes so the custom union serves no purpose.

Avatar
Danijel Antonijevic
New Member
Members
Forum Posts: 1
Member Since:
10/18/2022
sp_UserOfflineSmall Offline
7
03/10/2023 - 02:43
sp_Permalink sp_Print

@Randy Armstrong.

Hello thank you for your input. i have the same problem as Loko Vik! I have tested the output on several clients and only get nulls for the arguments. I have now tracked the communication with Wireshark, but I have the problem that the communication via OPC and HTTPS encrypts the traffic. Can you tell me what possibilities I have to read out the packets between client and server to check whether the arguments were correctly described or sent?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
8
03/10/2023 - 12:12
sp_Permalink sp_Print

What software are you using that only supports HTTPS? Every SDK allows the protocol to be selected at configuration time.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Kengo Iwamoto
Guest(s) 65
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855