tSysFileWrite (STRUCT)

TYPE tSysFileWrite : STRUCT

Parameter to write a file asynchronously
InOut:

Name

Type

Comment

pbyBuffer

POINTER TO BYTE

Pointer to buffer with data to write to file

ulSize

__XWORD

Number of bytes to write in the file. Must be less or equal the buffer size!

pResult

POINTER TO RTS_IEC_RESULT

[OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)

pulOut

POINTER TO __XWORD

[OUT] Number of bytes written to the file. 0=if failed