CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Fri Oct 18, 2019 8:22 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: File Access Problem
PostPosted: Wed Oct 23, 2013 3:49 pm 
Offline

Joined: Mon Jul 16, 2012 9:11 am
Posts: 75
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!


Top
   
 Post subject: Re: File Access Problem
PostPosted: Wed Oct 23, 2013 7:23 pm 
Offline
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 410
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: I-Campbell and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited