Using OpcCmd Utility for Static OPC UA Operations: Difference between revisions

From OPC Labs Knowledge Base
(Created page with "= Command, Arguments and Options = == Command: ua nodeId == Example: Figure out standard name of a node ID in namespace 0 (reserved by OPC Foundation): <pre>ua nodeId i=2253</...")
 
Line 11: Line 11:
<pre>Standard name: Server_NamespaceArray
<pre>Standard name: Server_NamespaceArray
Expanded text: nsu=http://opcfoundation.org/UA/ ;i=2255</pre>
Expanded text: nsu=http://opcfoundation.org/UA/ ;i=2255</pre>
Example: Display a table of all node IDs defined by OPC Foundation, sorted by their identifier.
<pre>ua nodeId listnames?</pre>
Output:
<pre>Result (sequence):
╒═══════════════════════════════════════╤══════════════════════════════════════════╕
│[]                                    │Value                                    │
╞═══════════════════════════════════════╪══════════════════════════════════════════╡
│nsu=http://opcfoundation.org/UA/ ;i=1  │Boolean                                  │
│nsu=http://opcfoundation.org/UA/ ;i=2  │SByte                                    │
│nsu=http://opcfoundation.org/UA/ ;i=3  │Byte                                      │
│nsu=http://opcfoundation.org/UA/ ;i=4  │Int16                                    │
│nsu=http://opcfoundation.org/UA/ ;i=5  │UInt16                                    │
...</pre>
The output sequence is truncated by default; in order to obtain the full table, use:
<pre>ua nodeId listnames? -!vs=:N99999</pre>

Revision as of 11:33, 7 January 2021

Command, Arguments and Options

Command: ua nodeId

Example: Figure out standard name of a node ID in namespace 0 (reserved by OPC Foundation):

ua nodeId i=2253

Output:

Standard name: Server
Expanded text: nsu=http://opcfoundation.org/UA/ ;i=2253

Example: Find out a full node ID from its standard name (for nodes defined by OPC Foundation):

ua ni -sn=Server_NamespaceArray

Output:

Standard name: Server_NamespaceArray
Expanded text: nsu=http://opcfoundation.org/UA/ ;i=2255

Example: Display a table of all node IDs defined by OPC Foundation, sorted by their identifier.

ua nodeId listnames?

Output:

Result (sequence):
╒═══════════════════════════════════════╤══════════════════════════════════════════╕
│[]                                     │Value                                     │
╞═══════════════════════════════════════╪══════════════════════════════════════════╡
│nsu=http://opcfoundation.org/UA/ ;i=1  │Boolean                                   │
│nsu=http://opcfoundation.org/UA/ ;i=2  │SByte                                     │
│nsu=http://opcfoundation.org/UA/ ;i=3  │Byte                                      │
│nsu=http://opcfoundation.org/UA/ ;i=4  │Int16                                     │
│nsu=http://opcfoundation.org/UA/ ;i=5  │UInt16                                    │
...

The output sequence is truncated by default; in order to obtain the full table, use:

ua nodeId listnames? -!vs=:N99999