Create MonitoredItem with node statuscode BadNodeIdUnknown|OPC UA Standard|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
Create MonitoredItem with node statuscode BadNodeIdUnknown
Avatar
Martin Lang
Germany
Member
Members
Forum Posts: 72
Member Since:
06/25/2014
sp_UserOfflineSmall Offline
1
08/17/2021 - 07:44
sp_Permalink sp_Print

The spec Part 4 defines:

Monitored Nodes can be removed from the AddressSpace after the creation of a MonitoredItem.
This does not affect the validity of the MonitoredItem but a Bad_NodeIdUnknown shall be returned
in the Publish response. It is possible that the MonitoredItem becomes valid again if the Node is
added again to the AddressSpace and the MonitoredItem still exists.

It is permitted to create monitored item with returning Bad_NodeIdUnknown or during creation this node must exist?

For example the IO-Link specification hide the Device node and its child nodes. After configure the IO-Link port suitable the Device node and the child node are visible and the monitored items will be served.

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOnlineSmall Online
2
08/17/2021 - 20:58
sp_Permalink sp_Print

If the CreateMonitoredItem status is bad it means the item was not created.

You can return Good in the CreateMonitoredItem status but Bad_NodeIdUnknown in the first reported change.

This tells the client that the not does not exist now but might exist in the future.

Avatar
Martin Lang
Germany
Member
Members
Forum Posts: 72
Member Since:
06/25/2014
sp_UserOfflineSmall Offline
3
08/18/2021 - 02:44
sp_Permalink sp_Print

Thanks for clarification!

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Randy Armstrong
Guest(s) 51
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889