FileIO.typ 1.0 KB

12345678910111213141516171819202122232425
  1. TYPE
  2. fiDIR_READ_DATA : STRUCT (*directory read structure*)
  3. Filename : ARRAY[0..259] OF USINT; (*file name*)
  4. Date : DATE_AND_TIME; (*date and time*)
  5. Filelength : UDINT; (*file length*)
  6. END_STRUCT;
  7. fiDIR_READ_EX_DATA : STRUCT (*directory read extended structure*)
  8. Filename : ARRAY[0..259] OF USINT; (*file name*)
  9. Date : DATE_AND_TIME; (*date and time*)
  10. Filelength : UDINT; (*file length*)
  11. Mode : UINT; (*mode*)
  12. END_STRUCT;
  13. fiFILE_INFO : STRUCT (*file information structure*)
  14. size : UDINT; (*size of file [bytes]*)
  15. linkCnt : UDINT; (*link count*)
  16. accTime : DATE_AND_TIME; (*time of last access*)
  17. modTime : DATE_AND_TIME; (*time of last data modification*)
  18. chgTime : DATE_AND_TIME; (*time of last file status change*)
  19. reserved : ARRAY[0..20] OF UDINT; (*reserved for future use*)
  20. END_STRUCT;
  21. END_TYPE