CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Fri May 25, 2018 9:38 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Sep 21, 2017 2:59 pm 
Offline

Joined: Wed Jun 08, 2016 12:03 pm
Posts: 52
Hello!

I have a problem. I want to write text to a file but cannot use the SysFile library. I have that included in my project, but RTS_IEC_HANDLE is not defined. Why?

My goal is to write to a MS SQL database, but I don't know how to do that, so I create a file insted and later a MS SQL database is going to pick up that file.

I'm using Codesys 3.5 SP8.


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Thu Sep 21, 2017 6:34 pm 
Offline

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 75
Have you tried adding the namespace before the type like:
Code:
SysOpenFile: SysFile.SysTypes.RTS_IEC_HANDLE;
njkk: SysFile.ACCESS_MODE;


Top
   
PostPosted: Thu Sep 21, 2017 8:13 pm 
Offline

Joined: Wed Jun 08, 2016 12:03 pm
Posts: 52
Comingback4u wrote:
Have you tried adding the namespace before the type like:
Code:
SysOpenFile: SysFile.SysTypes.RTS_IEC_HANDLE;
njkk: SysFile.ACCESS_MODE;


No. I will try that tomorrow. I give you a reply then.


Top
   
PostPosted: Fri Sep 22, 2017 6:49 am 
Offline

Joined: Wed Jun 08, 2016 12:03 pm
Posts: 52
Comingback4u wrote:
Have you tried adding the namespace before the type like:
Code:
SysOpenFile: SysFile.SysTypes.RTS_IEC_HANDLE;
njkk: SysFile.ACCESS_MODE;


No that doesn't work.


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Fri Sep 22, 2017 7:16 am 
Offline

Joined: Wed Jun 08, 2016 12:03 pm
Posts: 52
I change library.


You do not have the required permissions to view the files attached to this post.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Limited