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 Thu Feb 20, 2020 3:50 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Jul 06, 2012 9:28 am 

Joined: Mon Jun 25, 2012 7:25 am
Posts: 1
I want to create a new file and write a INT value to this file, then close it. Unfortunately I am not so familiar with the file system. How do I must do?



PostPosted: Sun Jul 29, 2012 7:58 pm 
User avatar

Joined: Tue Aug 30, 2011 1:21 am
Posts: 96
I would recommend using the OsCat Network Library it has been tested and validated. It also has a built in File Handler with FB's to read/write variables from files.

You have to be signed in to download. This has been updated for CoDeSys V3. ... 784.0.html

The Original SoMachine Ninja

PostPosted: Wed Aug 01, 2012 5:53 am 

Joined: Sun Feb 19, 2012 5:34 pm
Posts: 6
To read or write a file ,you must be carefull of something.The functions all needed a rising-edge to excute.
Also, at the end of the programs ,you should close the file.
I suggest you to use CIA FILE LIB.

PostPosted: Thu Aug 16, 2012 9:53 am 

Joined: Wed Jun 27, 2012 8:39 am
Posts: 3

Can you please provide me a working sample code for Write and Read File using Codesys v3 ?


Naganatha Subramanian R

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

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 10 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