Output Description¶
xDone
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
If Output xDone changes to TRUE, the Function Block has finished its processing without an error and all other outputs become valid.
xDone
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
If Output xDone changes to TRUE, the Function Block has finished its processing without an error and all other outputs become valid.
xBusy
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Output xBusy signals if a Function Block has been triggered and is TRUE as long it is processing.
xError
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Output xError is set if the Function Block finished and an error occurred during the Function Block processing. If xError is TRUE the error code can be read from output eError.
eError
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
FILE_ERROR | - | - | - |
Output eError is set if an error occurred during the Function Block processing. For error codes, see Error Messages of the CAA_File Function Blocks Error Messages.
dcDiskStatus
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
FILE_DISK_STATUS | - | - | - |
Output dcDiskStatus contains all available information about the storage device:
Free, used and total available space on the device, block size, cluster size, total cluster count and the device condition. The meaning of the decive conditions DC_GREEN, DC_YELLOW, DC_RED is storage device specific as shown in the following table:
state | userdisk | flashdisk | sramdisk | sdcard |
---|---|---|---|---|
GREEN | userdisk ready | flashdisk ready | sramdisk ready | sdcard ready |
YELLOW | - | threshold exceeded | - | - |
RED | userdisk not ready | flashdisk is read only | sramdisk not ready | sdcard not ready |
Note
To optimize the usage of a storage device try to fit your read/write operation’s sizes and file sizes with the device’s block and/or cluster sizes.
See also AC500 CPU Storage Devices for hints on memory location maintenance.