4.2.7 SetPosition

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

Signature

	SetPosition(
		 [in] UInt32 fileHandle
		 [in] UInt64 position
		);
Argument Description
fileHandleA handle indicating the access request and thus indirectly the position inside the file.
PositionThe 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_InvalidArgumentSee 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
BrowseNameSetPosition
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasPropertyVariableInputArgumentsArgument[] PropertyTypeMandatory
Conformance Units
Base Info FileType Base