Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I meet a problem when I use the File Access 3.4.1.0 library to operate file access.
fbFileOpen:FILE_ACCESS.FILE.Open;
fbFileOpen(xExecute:=TRUE,sFileName:=strFileName,eFileMode:=FILE_ACCESS.FILE.MODE.MWRITE,xExclusive:=FALSE);
after fbFileOpen() executed,the content of the file that the function block open will be cleard! And the size of the file will be 0!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I meet a problem when I use the File Access 3.4.1.0 library to operate file access.
fbFileOpen:FILE_ACCESS.FILE.Open;
fbFileOpen(xExecute:=TRUE,sFileName:=strFileName,eFileMode:=FILE_ACCESS.FILE.MODE.MWRITE,xExclusive:=FALSE);
after fbFileOpen() executed,the content of the file that the function block open will be cleard! And the size of the file will be 0!
Use append or read_write mode to open the file.
PS, this item should not be in the Python scripting forum, but in the general V3 forum.