UA_NamespaceGetIndexList
This function block is used to get the namespace-indexes of several namespace-URIs. In case the requested NamespaceUri is not found the error PLCopenUA_Bad_NSNotFound will be returned in the corresponding ErrorIDs.
Note: This FB is optional in a Client application. If the related namespace-index is already known, this FB don't has to be used. With a Lenze OPC UA server on a Lenze controller, the PLCopen information model with the URI "urn:Lenze:PLCopen" is always located on NamespaceIndex 4.
However, fixed NamespaceIndexes, beyond a restart of the server, are not guaranteed with other (user-specific) information models and other 3rd party OPC UA servers.
|
|
|
|
UA_NamespaceGetIndexList |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
BOOL |
– |
|
Execute |
Done |
|
– |
BOOL |
|
DWORD |
– |
|
ConnectionHdl |
Busy |
|
– |
BOOL |
|
UINT |
– |
|
NamespaceUrisCount |
Error |
|
– |
BOOL |
|
ARRAY of STRING |
– |
|
NamespaceUris |
ErrorID |
|
– |
L_IOCP_ErrorId |
|
TIME |
– |
|
Timeout |
ErrorIDs |
|
– |
ARRAY of L_IOCP_ErrorId |
|
|
|
|
|
NamespaceIndexes |
|
– |
ARRAY of UINT |
|
|
|
|
|
|
|
|
|
Inputs
|
Name Data type |
Information/possible settings |
|
|---|---|---|
|
Execute BOOL |
FALSEäTRUE |
On rising edge FB performs its task. |
|
ConnectionHdl DWORD |
Connection handle. |
|
|
NamespaceUrisCount UINT |
Number of Namespace Uris in Array of NamespaceUris. |
|
|
NamespaceUris ARRAY of STRING |
Array of String. Each array element contains the namespace URI for which the index is to be requested. |
|
|
Timeout TIME |
Maximum time to response. |
|
Outputs
|
Name Data type |
Value/meaning |
|
|---|---|---|
|
Done BOOL |
TRUE |
Signals has completed its task. |
|
Busy BOOL |
TRUE |
The FB is not finished and new output values are to be expected. |
|
Error BOOL |
TRUE |
An error has occurred in the service request or in a specific namespace access. For details see ErrorID and / or ErrorIDs. |
|
ErrorID L_IOCP_ErrorId |
If Error = TRUE: Error code for a failed service request. |
|
|
ErrorIDs ARRAY of L_IOCP_ErrorId |
If Error = TRUE and ErrorID = LUA_EADNODERESULTERROR: Error number for individual Namespace elements. |
|
|
NamespaceIndexes ARRAY of UINT |
Namespace Indexes. |
|