6.7.2 SetUnitMode Method

This Method allows an OPC UA Client to change the mode of the unit. Parameters are defined in Table 23

Signature

	SetUnitMode(
		[in] Int32 RequestedMode
		);
Table 23 - SetUnitMode Method Parameters
Argument Description
RequestedModeThe requested mode from the list of available modes in the enumeration from NodeID “UnitSupportedModes” in PackMLStatusObjectType

Method result codes are defined in Table 24

Table 24 - SetUnitMode Method Result Codes
Result Code Description
Bad_MethodInvalidSee OPC 10000-4 – Services 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 – Services for the description of this result code. (Requested operation is not implemented.)
Bad_NodeIdUnknownSee OPC 10000-4 – Services for the description of this result code. (Used to indicate that the specified Object is not valid)
Bad_InvalidStateSee OPC 10000-4 – Services for the description of this result code. (The operation cannot be completed because the Object is closed, uninitialized or in some other invalid state.)
Bad_ArgumentsMissingSee OPC 10000-4 – Services 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 – Services for the description of this result code (The Client specified more input arguments than defined for the Method.)
Bad_InvalidArgumentSee OPC 10000-4 – Services 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 – Services for the description of this result code. (Used to indicate that an input argument does not have the correct data type.)

Table 25 specifies the AddressSpace representation for the SetUnitMode Method. SetUnitMode includes an InputArgument, where the input argument details are provided in Table 23.

Table 25 - SetUnitMode Method AddressSpace Definition
Attribute Value
BrowseNameSetUnitMode
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasPropertyVariableInputArgumentsArgument[] PropertyTypeMandatory