SysDirAsyncFB.SysDirSetCurrentAsync
(METH)
METHOD SysDirSetCurrentAsync : RTS_IEC_HANDLE
This method asynchronously sets the current working directory on the target.
In this directory all following file functions are operated.
This setting applies to file access from IEC only. An empty string resets the working directory to its default.
This method should not be used in parallel to any other file operation from IEC.
For details, see Description.
- InOut:
Scope
Name
Type
Comment
Return
SysDirSetCurrentAsync
RTS_IEC_HANDLE
Handle of AsyncJob
Input
pParam
POINTER TO tSysDirSetCurrent
pudState
POINTER TO UDINT
Current state of AsyncJob
pResult
POINTER TO RTS_IEC_RESULT
Result of AsyncJob creation