SetPosition is used to set the current position of the file handle.

Signature

SetPosition(

[in] UInt32 fileHandle

[in] UInt64 position

);

Argument

Description

fileHandle

A handle indicating the access request and thus indirectly the position inside the file.

Position

The position to be set for the fileHandle in the file. If a Read or Write is called it starts at that position. If the position is higher than the file size the position is set to the end of the file.

Method Result Codes (defined in Call Service)

Result Code

Description

Bad_InvalidArgument

See OPC 10000-4 for a general description. Invalid file handle in call.

Table 7 specifies the AddressSpace representation for the SetPosition Method.

Table 7 – SetPosition Method AddressSpace definition

Attribute

Value

BrowseName

SetPosition

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

HasProperty

Variable

InputArguments

Argument[]

PropertyType

Mandatory

Conformance Units

Base Info FileType Base