This function block retrieves the amount of free memory space of a memory medium (user disk, system disk, SD card) in bytes.
The size of a remote device cannot be accessed. If a remote device is specified as parameter, then the function returns "-1".
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
This table describes the input variables:
Input |
Data type |
Description |
---|---|---|
i_xEnable |
BOOL |
Activation entry, executes the operation when the value is |
i_sVolumeName |
STRING[80] |
Name of the device whose memory size must be accessed:
|
This table describes the output variables:
Output |
Data type |
Description |
---|---|---|
q_xDone |
BOOL |
Set to |
q_xBusy |
BOOL |
Set to |
q_OperationResult |
DINT |
Result of the operation, a non zero value indicates an error. |
q_uliDiskSpace |
ULINT |
Memory space in bytes. |