Client PLCopen
The function blocks of the TwinCAT OPC UA Client have their own error codes, which indicate the occurrence of an error and use an ErrorID to display further information about the problem that has occurred. TwinCAT ADS error messages (ADS Return Codes) with the HighWord 0x0000 and custom error messages from the client or the PLC library with the HighWord 0xE4DD can occur.
Possible TwinCAT ADS errors include the following:
Hex | Name | Description |
---|---|---|
0x 0000 0705 | DEVICE_INVALIDSIZE | Parameter size not correct |
0x 0000 0706 | DEVICE_INVALIDDATA | Invalid parameter values |
0x 0000 070A | DEVICE_NOMEMORY | Not enough memory |
This error code list shows the possible custom error values:
Hex | Name | Description |
---|---|---|
0x E4DD 0001 | UAC_E_FAIL | UA service call failed |
0x E4DD 0100 | UAC_E_CONNECTED | Server already connected |
0x E4DD 0101 | UAC_E_CONNECT | General error when establishing a connection |
0x E4DD 0102 | UAC_E_UASECURITY | UA security could not be set up |
0x E4DD 0103 | UAC_E_ITEMEXISTS | Element ID already exists |
0x E4DD 0104 | UAC_E_ITEMNOTFOUND | Element does not exist |
0x E4DD 0105 | UAC_E_ITEMTYPE | Invalid or unsupported item type |
0x E4DD 0106 | UAC_E_CONVERSION | Variable types cannot be converted |
0x E4DD 0107 | UAC_E_SUSPENDED | Device hangs. Please try again later... |
0x E4DD 0108 | UAC_E_TYPE_NOT_SUPPORTED | Conversion variable type is not supported. |
0x E4DD 0109 | UAC_E_NSNAME_NOTFOUND | No namespace with the specified name found. |
0x E4DD 0110 | UAC_E_CONNECT_NOTFOUND | Connection failed: Target host could not be found. |
0x E4DD 0111 | UAC_E_TIMEOUT | Timeout: i.e. target host does not respond |
0x E4DD 0112 | UAC_E_INVALIDHDL | Session handle invalid |
0x E4DD 0113 | UAC_E_INVALIDNODEID | UA node ID unknown |
0x E4DD 0114 | UAC_E_INVAL_IDENTIFIER_TYPE | Identifier type of UaNodeId invalid |
0x E4DD 0115 | UAC_E_IDENTIFIER_NOTSUPP | Identifier type UaNodeId is not supported |
0x E4DD 0116 | UAC_E_INVAL_NODE_HDL | Invalid node handle |
0x E4DD 0117 | UAC_E_UAREADFAILED | UA read failed for unknown reasons |
0x E4DD 0118 | UAC_E_UAWRITEFAILED | UA write failed for unknown reasons |
0x E4DD 0119 | UAC_E_INVAL_NODEMETHOD_HDL | Invalid method handle |
0x E4DD 011A | UAC_E_CALL_FAILED | Call failed, cause unknown |
0x E4DD 011B | UAC_E_CALLDECODE_FAILED | Successful call, decoding return value failed |
0x E4DD 011C | UAC_E_NOTMAPPEDTYPE | Unassigned data type in return value |
0x E4DD 011D | UAC_E_CALL_FAILED_BADINTERNAL | Call failed with UA_BadInternal |
0x E4DD 011E | UAC_E_METHODIDINVALID | Unknown MethodID (returned on call, even if provided by GetMethodHdl) |
0x E4DD 011F | UAC_E_TOOMUCHDIM | Method call has returned parameters with more than 3 dimensions; not supported. |
0x E4DD 0120 | UAC_E_CALL_FAILED_INVALIDARG | Call failed with |
0x E4DD 0121 | UAC_E_CALL_FAILED_TYPEMISMATCH | Call failed with |
0x E4DD 0122 | UAC_E_CALL_FAILED_OUTOFRANGE | Call failed with |
0x E4DD 0123 | UAC_E_CALL_FAILED_BADSTRUCTURE | Call failed with |
0x E4DD 0124 | UAC_E_CALL_TYPEMISMATCH_OUTPARAM | Call successful, but type of output information provided does not match |
0x E4DD 0125 | UAC_E_NONVALIDTYPEINFO | Node has insufficient type information |
0x E4DD 0126 | UAC_E_INVALIDATTRIBID | Access to invalid node attribute |
0x E4DD 0128 | UAC_E_NOTSUPPORTED | The command is not supported by the connected UaServer, e.g. when calling UA_HistoryUpdate. |
0x E4DE 0100 | UAC_E_INVALID_ARRAY_LENGTH | An invalid array length not matching DataValueCount was assigned to UA_HistoryUpdate. |
0x E4DE 0101 | UAC_E_INVALID_DATASIZE | A data value with an invalid data type size was assigned to UA_HistoryUpdate. All assigned DataValues must be of the same data type. |
0x E4DE 0102 | UAC_E_SUBERROR | A lower-level error was output for at least one of the transferred data values. See ValueErrorIDs at UA_HistoryUpdate. |