Deleting a Data File Stored on the SD Memory Card

To delete a data file from the SD memory card, proceed as follows:

  1. Insert the SD memory card.

  2. Call the function block SD_WRITE: SD_WRITE

    EN := TRUE  
    ATTRIB := 1 (* delete *)
    FILENO := 0…99 (* number of the file to be deleted *)
    SEG, FORMAT, NVAR, ADRVAR - any