OPC UA Detected Error Code Structure

OPC UA detected error codes are 4 bytes long of the DWORD data type.

NOTE: Bit 29 of the 4 byte detected error code is used to distinguish between codes defined by:
  • OPC Foundation

  • PLCopen or Schneider Electric

Field

Bit Range

Description

Severity

30:31

Indicates whether the detected error code represents a successful, unsuccessful or or uncertain condition, as follows:

00

Successful

The operation was successful. The associated results can be used.

01

Uncertain

The operation was not successful. The associated results cannot be used.

10

Unsuccessful

The operation was partially successful. The associated results might not be useful for some purposes.

11

Reserved

Reserved for future use. It is recommended that clients treat a detected error code of this severity as unsuccessful (10).

ErrorType

29

0

Indicates an OPC Foundation defined detected error code. Refer to the OPC UA specification for a description at:

https://reference.opcfoundation.org/v104/Core/docs/Part6/A.2/

1

Indicates a PLCopen or vendor specific detected error code, signalled by bit 28.

ErrorType2

28

This bit can be evaluated only if bit 29 = 1.

0

PLCopen detected error.

1

Schneider Electric specific detected error.

PLCOpen Detected Error Codes

Category: General

Detected ErrorCode (Bits 0..27)

Description

16#A000_0001

Internal, permanent error.

16#A000_0002

Temp. error; FB could retry to reach FW.

Category: Connection

Detected ErrorCode (Bits 0..27)

Description

16#A000_0100

Connection could not be established.

16#A000_0101

The requested hostname could not be found.

16#A000_0102

Connection was already established.

16#A000_0103

Connection failed due to security setup.

16#A000_0104

Connection is suspended.

16#A000_0105

Provided ConnectionHdl is not known.

Category: Namespace

Detected ErrorCode (Bits 0..27)

Description

16#A000_0200

A namespace with the requested name cannot be found on server.

Category: Node

Detected ErrorCode (Bits 0..27)

Description

16#A000_0300

Target PLC variable is too short for retrieved data.

16#A000_0301

Invalid or unsupported Type.

16#A000_0302

Provided NodeHdl is not known.

16#A000_0303

Provided MethodHdl is not known.

16#A000_0304

Read failed for unknown reason.

16#A000_0305

Write failed for unknown reason.

16#A000_0306

Method Call failed for unknown reason.

16#A000_0307

Method Call Input parameter conversion failed.

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.

Category: Attribute

Detected ErrorCode (Bits 0..27)

Description

16#A000_0400

Used in UA_NodeGetInformation for elements, which are not in this NodeClass existing.

16#A000_0401

Used in UA_NodeGetInformation for elements, which should exist but don’t.

Category: Monitoring

Detected ErrorCode (Bits 0..27)

Description

16#A000_0500

Provided SubscriptionHdl is not known.

16#A000_0501

Provided MonitoredItemHdl is not known.

16#A000_0502

Mixed controller sync and firmware sync in same list

16#A000_0503

Sync mode invalid

Schneider Electric Specific Detected Error Codes

Detected ErrorCode (Bits 0..27)

Description

16#B0000001

An internal error of the client was detected.

16#B0000003

The value of NodeHdlCount is invalid. Valid range: 1..MAX_ELEMENTS_NODELIST.

16#B0000004

The specified ServerEndpointUrl must not be a null string.

16#B0000006

The value of NodeIdCount is invalid. Valid range: 1..MAX_ELEMENTS_NODELIST.

16#B0000007

Invalid or incorrect response from the OPC UA server.

16#B0000011

The value of TransportProfile is not supported.

16#B0000012

The value of SessionTimeout is not supported. Valid range: 30 s...1 d

16#B0000013

The value of MonitorConnection is not supported. Valid range: 500 ms...10 min

16#B0000014

The value of UAUserIdentityTokenType is not supported.

16#B0000016

The value of IndexRangeCount is not supported. Valid range: 0...3

16#B0000017

The value of StartIndex must not be greater than the value of EndIndex.

16#B0000018

The value of IdentifierType is not supported.

16#B0000019

The specified Identifier must not be a null string.

16#B0000103

The specified BufferSize is too small.

16#B0000021

The specified data type dimensions of the node do not match the dimensions of the node on the OPC UA server.

16#B0000022

The specified BufferAddress must not be 0.

16#B0000024

The specified data size of the buffer does not match the data size of the targeted node on the server.

16#B0000025

The specified UserIdentityTokenParam is invalid. With UserIdentityTokenType = UAUITT_Username, none of the ST_UserIdentyTokenParams may be a null string.

16#B0000026

The specified InvalidSecurityPolicy is invalid.

16#B0000027

The specified InvalidSecurityMsgMode is invalid.

16#B0000028

The specified AttributeID is not supported.

16#B0000029

The value of NamespaceUrisCount is invalid. Valid range: 1...MAX_ELEMENTS_NAMESPACES

16#B0000030

The value of NamespaceUri must not be a null string.

16#B0000099

The timeout has elapsed while waiting for a response from the client (firmware component).

16#B0000100

The timeout has elapsed while waiting for a response from the OPC UA server.

16#B0000102

The specified DataType of the node does not match the data type of the node on the OPC UA server.

16#B0000103

The specified BufferSize is too small.

16#B0000104

The controller does not provide enough memory to process the received data.

16#B0000105

After an online change was detected, the OPC UA client was reinitialized and the function block execution was aborted.

16#B0000106

Node handles already retrieved for this session. Release already retrieved node handles before getting new ones.

16#B0000107

The size of type specified by the customer by etNodeDataTypedo not correspond to size of value

16#B0000108

Data is a scalar but its type is not supported

16#B0000500

The value of MonitoredItemHdlCount is invalid. Valid range: 1..MAX_ELEMENTS_MONITORLIST

16#B0000501

Max number of subscriptions reached for M580 CPU.

16#B0000502

Node handles already retrieved for this session. Release already retrieved node handles before getting new ones.

16#B0000503

System event manager not created.

16#B0000504

Subscription specific event manager not created.

16#B0000505

Data size (including all dimensions) too big.

16#B0000506

Provided monitored items handles do not match those in subscription

16#B0000508

Operation aborted - see error code in node errorId table

16#B0000509

Max number of connections reached for M580 CPU.

16#B0000511

Max number of simultaneous services reached, i.e., the number of EFBs than can be executed in parallel, in Busy state.

Other Schneider Electric Specific Detected Error Codes

NOTE: The following codes notify that an error has been detected, but do not abort the function block execution.

Detected ErrorCode (Bits 0..27)

Description

16#70000001

Partial execution - see error code in node errorId table

16#70000002

the destination array length is too small against source