Function Description

The GET_FREESIZE function displays the amount of available space on the memory card.

This available space is linked to the system file partition, which contains both storage data and Web pages.

The additional parameters EN and ENO can be configured.

FBD Representation

The representation in FBD of the GET_FREESIZE function is as follows:

Ladder Representation

The representation in Ladder of the GET_FREESIZE function is as follows:

IL representation

Representation:

CAL GET_FREESIZE_Instance (REQ:=GetFreeSizeStart, SLOT:=GetFreeSizeSlot, DONE=>GetFreeSizeDone, ERROR=>GetFreeSizeError, STATUS=>GetFreeSizeStatus, SIZE=>GetFreeSize)

ST representation

Representation:

WRITE GET_FREESIZE_Instance (REQ:=GetFreeSizeStart, SLOT:=GetFreeSizeSlot, DONE=>GetFreeSizeDone, ERROR=>GetFreeSizeError, STATUS=>GetFreeSizeStatus, SIZE=>GetFreeSize);

Parameter Description

The following table describes the input parameter:

Parameter

Type

Comment

SLOT

BYTE

This parameter specifies the slot address of the memory card (always has address 0).

The following table describes the output parameter:

Parameter

Type

Comment

SIZE

UDINT

This parameter specifies the size in bytes of the available space on the memory card.

Description of common parameters.