Chapter 3 Programming
3
– 82
N o t e
Not all the function blocks of CAA File libraries are supported as below.
Function block
Supported
Function block
Supported
Close
Y
Read
Y
Copy
Y
Rename
Y *1*2
Delete
Y
SetPos
Y
EOF
Y
Write
Y
Flush
-
DirClose
Y
GetAttribute
-
DirCreate (incl. sysDirCreate)
*3
GetPos
Y
DirList
Y
GetSize
Y
DirOpen
Y
GetTime
Y
DirRemove
Y
Open
Y
DirRename
Y *1*2
Y : Supported
- : Not supported
*1 : If target file does not exist, no error is returned due to a bug in the CAA File library 3.5.3.0.
*2 : Use the same path for old and new file/directory. If they are different, rename function does not work properly.
*3 : It is not recommended to use DirCreate and sysDirCreate since it takes long time to execute, which could
result in processor overload exception. Instead of this, create new directory manually with PC in advance.
N o t e
Do not plug out USB memory while accessing file/directory, otherwise it is not properly recognized when
plugged in the next time. If it is necessary to plug out USB memory while PLC is in RUN status and USB
memory is always accessed, be sure to close file/directory in user program before plugging out, for example
adding an input to stop accessing and close file/directory.
Since it could take longer time to access files depending on USB memory devices, it is recommended to use a
separate task for file access besides tasks for normal I/O access.
Since file system of Windows and MICRO-EHV+ is different, the name of the first file is not correctly read by
FILE.DirList() function. Use SysDirRead() function in SysDir library instead of DirList() in CAA File library.
Содержание EH-A14EDR
Страница 6: ...MEMO ...
Страница 10: ...MEMO ...
Страница 141: ...Chapter 3 Programming 3 81 Program ...
Страница 166: ...Chapter 5 Maintenance 5 4 MEMO ...
Страница 170: ...Appendix A1 4 MEMO ...