With this function block directory and file attributes can be modified. It is optional for the different targets. Whether this function block is implemented or not is explicitly stated and encoded in the return value of the function ”FILE.GetProperty”(see description of File.GetProperty).
Inputs:
xExecute
|
BOOL |
|
hFile |
CAA.HANDLE |
Handle of the directory or the file |
eFileAttrib |
FILE.ATTRIB |
File attributes to be set: FILE.ATTRIB_ARCHIVE - Archive attribute for storage purposes FILE.ATTRIB_HIDDEN - Attribute for hidden files FILE.ATTRIB_NORMAL - Attribute, if no other attribute is set FILE.ATTRIB_READONLY - Write protection attribute; the file cannot be opened in FILE.WRITE_MODE or FILE.RDWR_MODE mode; an error message will be created |
Outputs:
xDone
|
BOOL |
|
xBusy |
BOOL |
|
xError |
BOOL |
|
eError |
FILE.ERROR |
Error ID |