16.3.2 FC/SFC 195 - FILE_ATT - Change file attributes
In the root directory of the memory card the file attributes may be changed by FILE_ATT.
Here enter a file name. The corresponding attributes may be reset with ATTRIBCLEAN-
MASK respectively set with ATTRIBSETMASK by given bit pattern. Setting takes priority
over resetting. After job execution the current state of the attributes is returned with
RETVAL 00xxh. For determination of the current file attributes by RETVAL, the parame-
ters ATTRIBCLEANMASK and ATTRIBSETMASK may be set to value 00h.
Parameters
Parameter Declaration Data type Description
REQ IN BOOL Activate function
MEDIA IN INT 0 = MMC
FILENAME IN STRING[254] Name of file (must be in 8.3 format)
ATTRIBCLEANMASK IN BYTE Bit pattern of attributes to clean
ATTRIBSETMASK IN BYTE Bit pattern of attributes to set
RETVAL OUT WORD Return value (00xxh=OK with xx: attributes)
BUSY OUT BOOL Function is busy
Return codes of RETVAL:
Code Description
00xxh OK, attributes have been changed with xx: attributes
7000h REQ = 0, BUSY = 0 (nothing present)
7001h REQ = 1, 1. call
7002h Block is executed
A001h The defined MEDIA type is not valid
A002h Error in parameter ATTRIBSETMASK
Description
RETVAL (Return value)
VIPA SPEED7
System Blocks
File Functions SPEED7 CPUs > FC/SFC 195 - FILE_ATT - Change file attributes
HB00 | OPL_SP7 | Operation list | en | 18-30 911