SD Card: Folder Report Function

Use this Function to see:

Notes

The function reports only on the types of files that are linked to a particular folder. For example, each Data Table folder (DT) may contain a maximum of 64 .udt files. If Folder Report is set to DT folders, it only reports the number of .udt file. If there are other file types present in the folder, they are ignored.

If there are fewer files than the maximum allowed, but the SD card capacity is exceeded, SI 66 will indicate SD Card Full.

Use SB 343,SD: File Report in Progress, as a condition to running the function

 

 

Parameter

Name

Purpose

Input

SD Folder: Select SD Folder

Either select a folder, or link an operand. To use an operand value to access folders, use the numbers shown in Select SD Folder; where '1' will access the main DT folder, and '101 will access folder DT2.

Output

 

Number of files currently in Folder

The number of files currently in Folder (max = 64 per folder)

 

Number of Files that may still be created

The number of files that may still be created (max = 64 per folder)

 

Folder Report: Status Operand

This MI is a bitmap; a bit turns ON to indicate status.

The MI is initialized when the function starts.

  • All bits OFF – No errors, and the SD card is idle

  • Bit 1 - SD Card internal error

  • Bit 2 - SD file is incorrect type

  • Bit 3 - There is no SD card in the slot

  • Bit 4 - The SD card has failed (Check SI 66)

  • Bit 5 - Path not found

 

Folder Report: Success Bit

Turns ON when the Report is complete. It remains ON until it is reset by the application, or until the application calls the function.

 

Note SB 359: Folder Report Function in Progress (ON when function is busy)