CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Sep 20, 2018 9:03 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Feb 19, 2018 4:39 pm 
Offline

Joined: Mon Feb 19, 2018 8:52 am
Posts: 5
Good day to everyone,
My name is Luca and I'm new in the forum and in the Codesys world, so be patient with me :)
I recently started a new automation project that, in my plans, will run powered by a Codesys softPLC controlled by a C++ application that already controls a machine.
So the situation is that I already have a working C++ program where I want to add a control interface for the Codesys PLC.
To achive this result I implemented the PLC Handler, working with the ActiveX version of the library because my C++ IDE is Embarcadero C++ Builder and the static libs are made for Visual Studio.
Everything works fine except for a very big problem: the ram usage grows every time I read vars from the PLC.
I've made some test applications and i've seen that the memory leak happens only when i interact with the PLC Handler.

So my question is: is there anybody using the PLC Handler with the activeX? Is it possible that the PLC handler is not compatible with Embarcadero IDE? Maybe there is some things to do to make everything work properly...

Any help will be greatly appreciated
Luca


Last edited by luca_macc on Tue Mar 20, 2018 1:58 pm, edited 1 time in total.

Top
   
 Post subject: Re: PLC Handler ActiveX
PostPosted: Wed Feb 21, 2018 10:25 am 
Offline

Joined: Mon Feb 19, 2018 8:52 am
Posts: 5
up :?:


Top
   
 Post subject: Re: PLC Handler ActiveX
PostPosted: Fri Mar 02, 2018 10:25 am 
Offline

Joined: Mon Feb 19, 2018 8:52 am
Posts: 5
another up :!:


Top
   
 Post subject: Re: PLC Handler ActiveX
PostPosted: Wed Mar 14, 2018 11:49 am 
Offline

Joined: Mon Feb 19, 2018 8:52 am
Posts: 5
Anyone who works with the PLCHandler in a IDE different from Visual Studio?


Top
   
 Post subject: Re: PLC Handler ActiveX
PostPosted: Tue Mar 20, 2018 1:58 pm 
Offline

Joined: Mon Feb 19, 2018 8:52 am
Posts: 5
Update: I solved the problem, fortunately was not PLCHandler fault but a type problem in Embarcadero C++. The Variant type defined in RTL was different from the VARIANT returned by the PLC Handler. But this difference was not well documented.
Thanks to all


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 3 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