ST_MDP_SiliconDrive

TYPE ST_MDP_SiliconDrive :
STRUCT
    iLen                   : UINT;          (* Length *)
    iTotalEraseCounts      : UDINT;         (* Total EraseCounts (lower 4 bytes) *)
    iDriveUsage            : UINT;          (* Drive Usage (%) *)
    iNbrSpares             : UINT;          (* Number of Spares *)
    iNbrUsedSpares         : UINT;          (* Spares Used *)
    iTotalEraseCountsHigh  : UDINT;         (* Total EraseCounts (higher 4 bytes) *)
END_STRUCT
END_TYPE

The structure contains information on the MDP SiliconDrive module.

This complete information can be queried by means of the function block FB_MDP_SiliconDrive_Read.

iLen

iLen defines the number of MDP elements in the table of the MDP module.

iTotalEraseCounts

The entire sum of write/erase cycles of all blocks on a Silicon Drive. This element is defined as 64 Bit value.iTotalEraseCounts contains the lower 32 Bit.

iTotalEraseCountsHigh

The entire sum of write/erase cycles of all blocks on a Silicon Drive. This element is defined as 64 Bit value.iTotalEraseCountsHigh contains the higher 32 Bit.

iDriveUsage

The calculated usage of the silicon drive. It's based on maximal two million write/erase cycles per Block.

iNbrSpares

Spare Blocks replaces Blocks who had been wear out.  iNbrSpares  is the total number of Spare Blocks available.

iNbrUsedSpares

The number of spares already used on the Silicon Drive.

The parameters existing in this structure correspond to the subindices of the first table (Table ID 1) within the MDP SiliconDrive module.