
The Inline controller under PC Worx
6959_en_07
PHOENIX CONTACT
55
3.5.6
FILE_TELL
The FILE_TELL block is used to determine the current position of the file pointer in a file.
Figure 3-7
FILE_TELL block
In order to determine the current position of the file pointer (relative offset from start of file),
the valid handle for the file is assigned to “Handle”.
•
Activate the block on a rising edge at the “Execute” input.
The execution of the function block is complete when the “Done” output is set to 1.
The current position of the file pointer can be read at the “Position” output following
successful execution.
If an error occurred during execution, the value at the “Error” output = 1.
“ErrorID” indicates the number of the cause of the error.
The status of the “Done”, “Position”, “Error”, and “ErrorID” outputs is maintained until a falling
edge is detected at the “Execute” input.
7018B031
FILE_TELL
Execute
Name
Postition
Error
Done
ErrorID
Table 3-7
FILE_TELL function block inputs and outputs
Name
Data
type
Data direction
Description
Execute
BOOL
Input
Rising edge: block determines the current position of the file pointer.
Handle
UINT
Input
File handle of file whose position is to be determined.
Done
BOOL
Output
FALSE:
The function block was not executed.
TRUE:
The function block was executed.
Position
DINT
Output
Current position in the file.
Error
BOOL
Output
FALSE:
No errors occurred when determining the position.
TRUE:
An error occurred when determining the position.
ErrorID
UINT
Output
Error number of the error that occurred when determining the position:
0:
No error information available.
1:
Invalid file handle.
Summary of Contents for ILC 330 Series
Page 1: ...User manual Installing and operating the ILC 330 and ILC 350 Inline controllers...
Page 8: ...ILC 330 350 8 PHOENIX CONTACT 6959_en_07...
Page 10: ...ILC 330 350 10 PHOENIX CONTACT 6959_en_07...
Page 42: ...ILC 330 350 42 PHOENIX CONTACT 6959_en_07...
Page 68: ...ILC 330 350 68 PHOENIX CONTACT 6959_en_07...