File.Write

Navigation:  Libraries > CT File Access > Function Blocks - File Services >

File.Write

Previous pageReturn to chapter overviewNext page

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.

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