Is is allowed to have UA Variable as method argument without any Value tag?|OPC UA Companion Standards|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
Is is allowed to have UA Variable as method argument without any Value tag?
Avatar
Ahmad Qureshi
New Member
Members
Forum Posts: 2
Member Since:
01/25/2024
sp_UserOfflineSmall Offline
1
09/16/2024 - 01:08
sp_Permalink sp_Print

Hello Team,

I tried to find if it is allowed to have UA method argument without Value in Part 3: Address Space Model and Part 6 - Mappings but I could not find any clear hint. Wanted to be sure if it is allowed to have UA Variable as method argument without any Value tag which describes the method arguments as in following UAMethod?

<UAMethod NodeId="i=8888" BrowseName="GetMonitoredItems" Executable="false" UserExecutable="false">
  <DisplayName Locale="en">GetMonitoredItems</DisplayName>
  <References>
     <Reference ReferenceType="HasComponent" IsForward="false">i=2253</Reference>
  </References>
</UAMethod>

<UAVariable NodeId="i=8889" BrowseName="InputArguments" DataType="i=296" ValueRank="1">
  <DisplayName Locale="en">InputArguments</DisplayName>
  <References>
    <Reference ReferenceType="HasTypeDefinition">i=68</Reference>
    <Reference ReferenceType="HasProperty" IsForward="false">i=8888</Reference>
  </References>
</UAVariable>

 

In case UA method has no arguments, is there a need of corresponding UAVariable to describe the arguments?

 

Best regards

Ahmad

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/18/2024 - 21:09
sp_Permalink sp_Print

A missing Value should be converted to a NULL value with a Bad code on import.

If the Method does not have arguments the associated arguments properties should not exist.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Mohit Agarwal
Guest(s) 33
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1434
Posts: 4854