SNtoEncoded – This method sends unsolicited serial numbers to be placed into the encoded state to an OPC UA Server that is performing serial number management for a specific Serial Number Pool. It may include label properties associated with the encoding run.

The signature of this Methodis specified below. Table 19and Table 20specify the Argumentsand AddressSpacerepresentation, respectively.

Method Signature

SNtoEncoded (

[in]OPENSCSSNCollectionTypeSNCollection

[in]OPENSCSKeyValueDataType[]PoolSelectionCriteria

[in]String SNFormat

[out]OPENSCSReturnEnum ReturnStatus

);

Table 19– SNtoEncoded Method Arguments

Argument

Description

SNCollection

Identifies the Collection with Serial Numbers.

PoolSelectionCriteria

The pool selection criteria which are used to return unused serial numbers to a serial number management server.

SNFormat

The serial number format of the pushed serial numbers.

If the Serial Number Format is not known to the method provider, then an “Invalid Serial Number Format” error is returned.

ReturnStatus

Returns the status of the method execution.

Method Result Codes are defined as part of the Call service (see OPC 10000-4and Table 95).

Table 20– SNtoEncoded Method AddressSpace Definition

Attribute

Value

BrowseName

SNtoEncoded

IsAbstract

True

Reference

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

0:HasProperty

Variable

InputArguments

Argument[]

0:PropertyType

Mandatory

0:HasProperty

Variable

OutputArguments

Argument[]

0:PropertyType

Mandatory