Annex B OPC UA Method result Codes

B.1 Method Result Codes (Informative)

The OPC UA Method Result codes, from OPC 10000-4, are copied in Table 94.

Table 94 – OPC UA Method Result Codes
Result Code Description
Bad_MethodInvalidSee OPC 10000-4 for the description of this result code. (The method id does not refer to a method for the specified object.)
Bad_NotImplementedSee OPC 10000-4 for the description of this result code. (Requested operation is not implemented.)
Bad_NodeIdUnknownSee OPC 10000-4 for the description of this result code. (Used to indicate that the specified object is not valid)
Bad_ArgumentsMissingSee OPC 10000-4 for the description of this result code (The client did not specify all of the input arguments for the method.)
Bad_TooManyArgumentsSee OPC 10000-4 for the description of this result code (The client specified more input arguments than defined for the method.)
Bad_InvalidArgumentSee OPC 10000-4 for the description of this result code. (Used to indicate in the operation level results that one or more of the input arguments are invalid. The inputArgumentResults contain the specific status code for each invalid argument.)
Bad_TypeMismatchSee OPC 10000-4 for the description of this result code. (Used to indicate that an input argument does not have the correct data type.)
Bad_OutOfRangeSee OPC 10000-4 for the description of this result code. (Used to indicate that an input argument is outside the acceptable range.)
Bad_TimeoutSee OPC 10000-4 for the description of this result code. (The operation timed out. – the server did not respond to the command)
Bad_InvalidStateSee OPC 10000-4 for the description of this result code. (The operation cannot be completed because the object is closed, uninitialized or in some other invalid state.)

B.2 Job Order Method Return Status Codes

The job order methods’ return status codes are defined as a bit map in a UInt64 variable, allowing for multiple codes to be defined at the same time. The codes and bitmap positions are defined in Table 95. In the OPC format, the bit positions start at bit 0 for the least significant digit.

Note: In case the ReturnStatus should be provided, the Method call cannot return a BAD StatusCode (then no return arguments are provided) but either the GOOD StatusCode, or an UNCERTAIN StatusCode (when the Method call was not successful).

Table 95 – ISA-95 Methods Return Status Codes
Bit Position Description Notes
0No ErrorIf bit 0 set (UInt64 value = 1) then there are no errors. This is returned on all successful method calls.
1Unknown Job Order IDThe Job Order ID is unknown by the Information Receiver/Provider
3Invalid Job Order StatusThe Job Order status is unknown.
4Unable to accept Job OrderThe Job Order cannot be accepted
5-31Reserved
32Invalid requestThe request is invalid due to an unspecified reason.
33-63Implementation-specificThese values are reserved for use in specific implementations and should be defined in the implementation specification.