GetPos (FB; Prefix filgp)¶
FUNCTION_BLOCK GetPos EXTENDS CBM.ETrig
This function block returns the offset position currently set in the file. The file must be opened via FILE.Open.
- InOut:
Scope
Name
Type
Comment
Input
hFileCAA.HANDLEFile handle
Output
eErrorLocal library error ID (0: no error; 5101: time out)
udiPos__UXINTOffset position; Number of bytes from the start of the file