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 Sun May 26, 2019 3:11 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Nov 16, 2012 6:14 pm 

Joined: Wed Nov 14, 2012 5:08 pm
Posts: 1
My device is a TCP/IP server and I already have the client interface coded in C. I want to connect Codesys systems (e.g. Codesys PLC) as a client and connect with my device over specific port and carry our read write operations.

One option is to use the NetbaseServices library and connect to the server. But in this case I have to rewrite the entire interface again in IEC (in Codesys). :( I want to reuse the implementation already available. (We've already rewritten this interface from C# code.)

After searching this forum, I found at least 10-15 posts regarding the use of External library (ANSI C / C++). Also checked the documents "C_IN_32Bit_E.pdf" and "C_in_CoDeSys_e.pdf". but could not really comprehend how to work with this. :roll:

It seems from the documents that I have to first create the interface in Codesys and then write the C functions. But what if the C code is already available? Do I've to modify the .c or .h files? How will this be linked in the Codesys Project?

Is there any example code available for use of External C functions?

PostPosted: Fri Nov 16, 2012 7:20 pm 
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 409
To do this with V3 you need to have the runtime toolkit and link your external library to the runtime.

PostPosted: Thu Nov 08, 2018 2:47 pm 

Joined: Fri Jun 15, 2018 8:36 pm
Posts: 2
Do I have to pay for the runtime toolkit?

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

All times are UTC+01:00

Who is online

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