Write (FB; Prefix filwr)¶
FUNCTION_BLOCK Write EXTENDS CBM.ETrigToA
This function block writes data into the file, which was previously opened via ”FILE.Open”. The contents of the memory area indicated by
pointer ”
pBuffer
” should not be modified during the write action! The size of the structure of the memory containing the bytes to be written
as well as the number of bytes to be written will not be checked.If the stability of the pointer on the data structures and their contents cannot be guaranteed in case of an online change, an online change
must be avoided with the help of functions from the ”CAA_Application library”.
- InOut:
Scope
Name
Type
Comment
Input
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)
Output
eError
Local library error ID (0: no error; 5101: time out)