6.4.6.3 SetStoredVariables method

The optional SetStoredVariables Method allows a Client to store current values of configuration Variables for the FunctionalEntity and its SubFunctionalEntities.

The FunctionalEntity shall apply the stored values to the configuration variables after a power cycle.

The signature of this Method is specified below; the arguments are defined in Table 50.

Signature

	SetStoredVariables (
	  [in] 0:NodeId[]		VariablesToStore,
	  [out] 0:StatusCode[]	Results
	);
Table 50 – SetStoredVariables Method arguments
Argument Description
VariablesToStoreAn array of NodeIds containing configuration data variables. NodeId shall be the NodeId of a configuration data variable belonging to ConfigurationData of this FunctionalEntity or one of its SubFunctionalEntities.
ResultsAn array of StatusCode corresponding to the VariablesToStore input argument that indicates any errors that occurred during the processing of VariablesToStore. If this array is populated, it has the same length as the VariablesToStore array. For possible values in this array, see Table 52.

The possible Method result codes are formally defined in Table 51.

Table 51 – SetStoredVariables Method result codes
Result Code Description
UncertainThere was at least one error while processing the Variables to be stored. Results will contain additional information.

The Results StatusCodes are formally defined in Table 52.

Table 52 – Results StatusCodes
Result Code Description
Bad_InvalidArgumentThe NodeId is not a ConfigurationData Variable or does not belong to this FunctionalEntity or one of its SubFunctionalEntities.
Bad_NotSupportedThe NodeId specifies a Variable that is non-volatile.
Bad_ResourceUnavailableThere are not enough resources to store this Variable.
GoodStoring this Variable succeeded.

The SetStoredVariables Method representation in the AddressSpace is formally defined in Table 53.

Table 53 – SetStoredVariables Method AddressSpace definition
Attribute Value
BrowseName3:SetStoredVariables
References Node Class BrowseName DataType TypeDefinition Other
0:HasPropertyVariable0:InputArguments0:Argument[] 0:PropertyTypeM
0:HasPropertyVariable0:OutputArguments0:Argument[] 0:PropertyTypeM
ConformanceUnits
UAFX ConfigurationDataFolder VariableStorage