SetPos (FB)

FUNCTION_BLOCK SetPos EXTENDS CBM.ETrig

This function block modifies the current offset for a file access. The file must be opened via FILE.Open.

InOut:

Scope

Name

Type

Comment

Input

hFile

CAA.HANDLE

File handle

udiPos

__UXINT

Offset position, Number of bytes from the start of the file

Output

eError

ERROR

Local library error ID (0: no error; 5101: time out)