FileIO.var 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. VAR CONSTANT
  2. fiATTR_ARCHIVE : USINT := 32; (*attribute archive*)
  3. fiATTR_DIRECTORY : USINT := 16; (*attribute directory*)
  4. fiATTR_HIDDEN : USINT := 2; (*attribute hidden*)
  5. fiATTR_RDONLY : USINT := 1; (*attribute read only*)
  6. fiATTR_SYSTEM : USINT := 4; (*attribute system*)
  7. fiATTR_VOL_LABEL : USINT := 8; (*attribute volume label*)
  8. fiRECURSIVE : USINT := 1; (*option recursive*)
  9. fiOVERWRITE : USINT := 2; (*option overwrite*)
  10. fiREAD_ONLY : USINT := 0; (*access mode read only*)
  11. fiWRITE_ONLY : USINT := 1; (*access mode write only*)
  12. fiREAD_WRITE : USINT := 2; (*access mode read and write*)
  13. fiFILE : USINT := 0; (*directory read files only*)
  14. fiDIRECTORY : USINT := 1; (*directory read directories only*)
  15. fiBOTH : USINT := 2; (*directory read files and directories*)
  16. fiTruncate : UDINT := 1; (*truncate file*)
  17. fiERR_INVALID_PATH : UINT := 20700; (*error invalid path*)
  18. fiERR_DATA_SIZE : UINT := 20701; (*error data size*)
  19. fiERR_NO_MORE_ENTRIES : UINT := 20702; (*error no more entries*)
  20. fiERR_NOT_SUPPORTED : UINT := 20703; (*error not supported*)
  21. fiERR_INVALID_TYP : UINT := 20704; (*error invalid type*)
  22. fiERR_EXIST : UINT := 20705; (*error exist*)
  23. fiERR_ACCESS : UINT := 20706; (*error access*)
  24. fiERR_MODE : UINT := 20707; (*error mode*)
  25. fiERR_FILE_NOT_FOUND : UINT := 20708; (*error file not found*)
  26. fiERR_FILE_DEVICE : UINT := 20709; (*error file device*)
  27. fiERR_SPACE : UINT := 20710; (*error space*)
  28. fiERR_SEEK : UINT := 20711; (*error seek*)
  29. fiERR_FILE : UINT := 20712; (*error file*)
  30. fiERR_LESS_VIRTUAL_MEMORY : UINT := 20713; (*error less virtual memory*)
  31. fiERR_COM_FILE_OPEN : UINT := 20714; (*error file open*)
  32. fiERR_COM_FILE_CLOSE : UINT := 20715; (*error file close*)
  33. fiERR_COM_FILE_READ : UINT := 20716; (*error file read*)
  34. fiERR_COM_FILE_WRITE : UINT := 20717; (*error file write*)
  35. fiERR_COM_FILE_IOCTL : UINT := 20718; (*error fiel ioctl*)
  36. fiERR_DATA : UINT := 20719; (*error data*)
  37. fiERR_ASYNC_MANAGER : UINT := 20720; (*error asynchron manager*)
  38. fiERR_FILE_NOT_OPENED : UINT := 20721; (*error file not opened*)
  39. fiERR_INVALID_DIRECTORY : UINT := 20722; (*error invalid directory*)
  40. fiERR_DIR_NOT_EXIST : UINT := 20723; (*error directory not exists*)
  41. fiERR_DIR_NOT_EMPTY : UINT := 20724; (*error directory not empty*)
  42. fiERR_DIR_ALREADY_EXIST : UINT := 20725; (*error directory already exists*)
  43. fiERR_DETMEMINFO : UINT := 20726; (*error dedect memory info*)
  44. fiERR_NOT_ENOUGH_FREEMEM : UINT := 20727; (*error not enough free memory*)
  45. fiERR_DIR_INVALID_HANDLE : UINT := 20728; (*error invalid directory handle*)
  46. fiERR_PARAMETER : UINT := 20729; (*error parameter*)
  47. fiERR_DEVICE_ALREADY_EXIST : UINT := 20730; (*error device already exists*)
  48. fiERR_DEVICE_INVALID_HANDLE : UINT := 20731; (*error invalid device handle*)
  49. fiERR_NETIO_IP_UNEQUAL : UINT := 20732; (*ungleiche IP bei identischem Hostnamen - IP-overwrite nicht gesetzt*)
  50. fiERR_NETIO_PORT : UINT := 20733; (*error port not supported*)
  51. fiERR_NETIO_USER : UINT := 20734; (*error user or password*)
  52. fiERR_INVALID_NBYTES : UINT := 20735; (*error invalid number of bytes*)
  53. fiERR_NETIO_PARAMETERS : UINT := 20736; (*error invalid parameters to establish a connection*)
  54. fiERR_INIT : UINT := 20796; (*error init*)
  55. fiERR_DEVICE_DRIVER : UINT := 20797; (*error device driver*)
  56. fiERR_DEVICE_MANAGER : UINT := 20798; (*error device manager*)
  57. fiERR_SYSTEM : UINT := 20799; (*error system*)
  58. ATTR_ARCHIVE : USINT := 32; (*obsolete*)
  59. ATTR_DIRECTORY : USINT := 16; (*obsolete*)
  60. ATTR_HIDDEN : USINT := 2; (*obsolete*)
  61. ATTR_RDONLY : USINT := 1; (*obsolete*)
  62. ATTR_SYSTEM : USINT := 4; (*obsolete*)
  63. ATTR_VOL_LABEL : USINT := 8; (*obsolete*)
  64. DIR_OW : USINT := 1; (*obsolete*)
  65. FILE_ALL : USINT := 2; (*obsolete*)
  66. FILE_DIR : USINT := 1; (*obsolete*)
  67. FILE_FILE : USINT := 0; (*obsolete*)
  68. FILE_ONCE : USINT := 0; (*obsolete*)
  69. FILE_DETMEM : USINT := 1; (*obsolete*)
  70. FILE_OW_DETMEM : USINT := 2; (*obsolete*)
  71. FILE_OW_ONCE : USINT := 3; (*obsolete*)
  72. FILE_R : USINT := 0; (*obsolete*)
  73. FILE_W : USINT := 1; (*obsolete*)
  74. FILE_RW : USINT := 2; (*obsolete*)
  75. SET_RECURSIVE : USINT := 1; (*obsolete*)
  76. END_VAR