L_IOCP_ErrorID
L_IOCP_ErrorID provides the ErrorIDs according to the PLCopen Client specification.
Following bit-mask is used to signal the severity and the error type.
|
Field |
Bit Range |
Description |
|---|---|---|
|
Severity
|
30:31
|
Indicates whether the ErrorID represents a good, bad or uncertain condition. These bits have following meaning: |
|
00 = good Indicates that the operation was successful and the associated results may b used. |
||
|
01 = warning Indicates that the operation was partially successful and that associated results might not be suitable for some purposes. |
||
|
10 = failure Indicates that the operation failed and any associated results cannot be used. |
||
|
11 = reserved Reserved for future use. |
||
|
ErrorType
|
28:29
|
00 = OPC UA error Indicates an OPC UA specific error. These codes are provided by the server and forwarded by the client to the FB. A list of all codes is provided by the OPC Foundation is under following link: |
|
10 = PLCopen error Indicates an PLCopen specific error. A list of all codes is provided by the PLCopen companion specification, see table below. |
||
|
11 = Lenze specific error Indicates an Lenze specific error. A list of all codes is provided by Lenze, see table below. |
PLCopen specific error codes
|
Designator |
Value |
Info |
|---|---|---|
|
General – PLCopen specific |
||
|
PLCopenUA_Bad_FW_PermanentError |
16#A000_0001 |
Internal, permanent error. |
|
PLCopenUA_Bad_FW_TempError |
16#A000_0002 |
Temp. error; FB could retry to reach FW. |
|
Connection – PLCopen specific |
||
|
PLCopenUA_Bad_ConnectionError |
16#A000_0100 |
Connection could not be established. |
|
PLCopenUA_Bad_HostNotFound |
16#A000_0101 |
The requested hostname could not be found. |
|
PLCopenUA_Bad_AlreadyConnected |
16#A000_0102 |
Connection was already established. |
|
PLCopenUA_Bad_SecurityFailed |
16#A000_0103 |
Connection failed due to security setup. |
|
PLCopenUA_Bad_Suspended |
16#A000_0104 |
Connection is suspended. |
|
PLCopenUA_Bad_ConnectionInvalidHdl |
16#A000_0105 |
Provided ConnectionHdl is not known. |
|
Namespace – PLCopen specific |
||
|
PLCopenUA_Bad_NSNotFound |
16#A000_0200 |
A namespace with the requested name cannot be found on server. |
|
Node – PLCopen specific |
||
|
PLCopenUA_Bad_ResultTooLong |
16#A000_0300 |
Target PLC variable is too short for retrieved data. |
|
PLCopenUA_Bad_InvalidType |
16#A000_0301 |
Invalid or unsupported Type. |
|
PLCopenUA_Bad_NodeInvalidHdl |
16#A000_0302 |
Provided NodeHdl is not known. |
|
PLCopenUA_Bad_MethodInvalidHdl |
16#A000_0303 |
Provided MethodHdl is not known |
|
PLCopenUA_Bad_ReadFailed |
16#A000_0304 |
Read failed for unknown reason. |
|
PLCopenUA_Bad_WriteFailed |
16#A000_0305 |
Write failed for unknown reason. |
|
PLCopenUA_Bad_CallFailed |
16#A000_0306 |
Method Call failed for unknown reason. |
|
PLCopenUA_Bad_InParamFailed |
16#A000_0307 |
Method Call Input parameter conversion failed. |
|
PLCopenUA_Bad_OutParamFailed |
16#A000_0308 |
Method Call Output parameter conversion failed. ATTENTION: this means the MethodCall was executed successfully but the returned values could not be converted. |
|
Attribute – PLCopen specific |
||
|
PLCopenUA_Bad_AttributeIdUnknown |
16#A000_0400 |
Used in UA_NodeGetInformation for elements, which are not in this NodeClass existing. |
|
PLCopenUA_Bad_AttributeIdInvalid |
16#A000_0401 |
Used in UA_NodeGetInformation for elements, which should exist but don’t. |
|
Monitoring – PLCopen specific |
||
|
PLCopenUA_Bad_SubscriptionInvalidHdl |
16#A000_0500 |
Provided SubscriptionHdl is not known. |
|
PLCopenUA_Bad_MonitoredItemInvalidHdl |
16#A000_0501 |
Provided MonitoredItemHdl is not known. |
|
PLCopenUA_Bad_MonitoredItemSyncMismatch |
16#A000_0502 |
Mixed controller sync and firmware sync in same list |
|
PLCopenUA_Bad_SyncModeInvalid |
16#A000_0503 |
Sync mode invalid |
Lenze specific error codes
|
Designator |
Value |
Info |
|---|---|---|
|
UA_EBAD |
16#B000_0001 |
General fault |
|
UA_EBADDISCONNECT |
16#B000_0002 |
The connection was closed by the peer. |
|
UA_EBADSHUTDOWN |
16#B000_0003 |
The connection was shut down by the peer |
|
UA_EBADSOCKETCLOSED |
16#B000_0004 |
The connection was closed locally |
|
UA_EBADINVALIDARGUMENT |
16#B000_0005 |
One or more of the supplied parameters were not valid |
|
UA_EBADNOBUF |
16#B000_0006 |
Allocating a buffer failed |
|
UA_EBADDECODING |
16#B000_0007 |
An decoding error occured |
|
UA_EBADENCODING |
16#B000_0008 |
An encoding error occured. |
|
UA_EBADNOMEM |
16#B000_0009 |
Allocating memory failed |
|
UA_EBADNOTIMPL |
16#B000_000A |
The called function is not implemented fully or parially |
|
UA_EBADHOSTUNKNOWN |
16#B000_000B |
The referenced host name could not be resolved |
|
UA_EBADSYSCALL |
16#B000_000C |
An underlying system call failed |
|
UA_EBADOPCANCELLED |
16#B000_000D |
The operation has been canceled |
|
UA_EBADOPTIMEOUT |
16#B000_000E |
The operation timed out |
|
UA_EBADIOPENDING |
16#B000_000F |
There is already an operation pending. Call again after completion |
|
UA_EBADINVALIDSTATE |
16#B000_0010 |
An object is not in the required state for the current operation |
|
UA_EBADTRUNCATED |
16#B000_0011 |
The result has been truncated |
|
UA_EBADBUFTOOSMALL |
16#B000_0012 |
The given destination buffer is too small |
|
UA_EBADTOOMANYNESTEDCALLS |
16#B000_0013 |
The operation would require too many iterations to succeed |
|
UA_EBADNOTSUPPORTED |
16#B000_0014 |
The requested operation is not supported |
|
UA_EBADCERTIFICATINVALID |
16#B000_0015 |
The certificate passed to the operation was not valid |
|
UA_EBADNOTFOUND |
16#B000_0016 |
A searched object could not be found |
|
UA_EBADSIGNATURE |
16#B000_0017 |
The operation failed because of a bad data signature |
|
UA_EBADMISMATCH |
16#B000_0018 |
The actual value didn't match the expected value |
|
UA_EBADOUTOFRESOURCE |
16#B000_0019 |
No more resources available |
|
UA_EBADINUSE |
16#B000_001A |
Resource is still in use |
|
UA_EBADAGAIN |
16#B000_001B |
Operation needs at last one more call to succeed |
|
UA_EBADOUTOFRANGE |
16#B000_001C |
parameter is out of range |
|
UA_EBADINTERNALERROR |
16#B000_001D |
Internal error |
|
UA_EBADENCODINGLIMITSEXCEEDED |
16#B000_001E |
Same as UA_SCBADENCODINGLIMITSEXCEEDED |
|
UA_EBADENCODINGTOOLARGE |
16#B000_001F |
Request or response would be too large if encoded |
|
UA_EBADACCESSDENIED |
16#B000_0020 |
Access denied |
|
UA_EBADLOOP |
16#B000_0021 |
A loop exists in symbolic links encountered during resolution of the path argument |
|
UA_EBADFILEEXISTS |
16#B000_0022 |
The file or directory already exists |
|
UA_EBADFILENOTFOUND |
16#B000_0023 |
The specified file was not found |
|
UA_EBADPATHNOTFOUND |
16#B000_0024 |
The specified directory was not found |
|
UA_EBADUNEXPECTED |
16#B000_0025 |
For unexpected and unhandled errors to trigger general error handling |
|
UA_EBADCOMMUNICATIONERROR |
16#B000_0026 |
General error regarding the communication layer |
|
UA_EBADSERVICERESPONSE |
16#B000_0027 |
The server returned a bad status code in its response |
|
UA_EBADLICENSELIMITSEXCEEDED |
16#B000_0028 |
An operation failed because of limitations of the active license |
|
UA_EBADREFEXISTS |
16#B000_0029 |
The reference you tried to add already exists. |
|
UA_EBADREFISCONST |
16#B000_002A |
The reference you tried to modify is const. |
|
UA_EBADNOTHINGTODO |
16#B000_002B |
|
|
UA_EBADSECURITYCHECKSFAILED |
16#B000_002C |
The security checks for an certificate are failing |
|
UA_EBADCONFIGURATION |
16#B000_002E |
Invalid configuration parameters |
|
LUA_EBADTYPEMISMATCH |
16#B000_1388 |
The value supplied for the attribute is not of the same type as the attribute's value |
|
LUA_EBADINDEXRANGEINVALID |
16#B000_1389 |
The syntax of the index range parameter is invalid |
|
LUA_EBADINITIALVALUE |
16#B000_1770 |
The value is initialized with default values |
|
UA_EBADNODERESULTERROR |
16#B000_1771 |
One or more of the nodes got an error. Please check the list of the ErrorIDs. |
|
LUA_EINVALIDINPUTDATAFB |
16#B000_1B58 |
Invalid Input data of PLC_Open FB |
|
LUA_EBADUSERTOKENNOTSUPPORTED |
16#B000_1B59 |
The configured user token could not be found |
|
LUA_FB_SERVERURL_INVALID |
16#B0001F40 |
Invalid Server URL |
|
LUA_FB_CONNECTIONHDL_INVALID |
16#B0001F41 |
Invalid ConnectionHandle |
|
LUA_FB_NAMESPACEURISCOUNT_INVALID |
16#B0001F42 |
Invalid NamespaceUrisCount |
|
LUA_FB_NODEHANDLECOUNT_INVALID |
16#B0001F43 |
Invalid NodeHdlCount |
|
LUA_FB_NODEIDCOUNT_INVALID |
16#B0001F44 |
Invalid NodeIDCount |
|
LUA_FB_METHODHDL_INVALID |
16#B0001F45 |
Invalid MethodHdl |
|
LUA_FB_INPUTARGUMENTS_INVALID |
16#B0001F46 |
Invalid Pointer Input Arguments |
|
LUA_FB_OUTPUTARGUMENTS_INVALID |
16#B0001F47 |
Invalid Pointer Output Arguments |
|
LUA_FB_VARIABLESINVALID |
16#B0001F48 |
Invalid Variables |
|
LUA_FB_INDEXRANGECOUNTEXCEEDED |
16#B0001F49 |
IndexRangeCount > 1 |