This function block reads the file, which was previously opened via File.Open. If less characters can be read than specified in ”szBuffer”, the function block returns an active ”xDone” and indicates the current number of characters in ”szSize”. The size of the target memory structure for the bytes to be read and the number of bytes to be read will not be checked.
Inputs:
xExecute
|
BOOL |
|
xAbort |
BOOL |
|
udiTimeOut |
UDINT |
|
hFile |
CAA.HANDLE |
File handle |
pBuffer |
CAA.PVOID |
The address from where the data can be obtained, can be determined with the help of operator ADR. |
szSize |
CAA.SIZE |
Number of bytes to be written (can be determined via operator SIZEOF) |
Outputs:
xDone
|
BOOL |
|
xBusy |
BOOL |
|
xError |
BOOL |
|
xAborted |
BOOL |
|
eError |
FILE.ERROR |
Error ID |
szSize |
CAA.SIZE |
Current number of successfully read bytes; this value is already valid before xDone has been set |