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 Wed Dec 19, 2018 5:37 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Memory of a PLC
PostPosted: Thu Nov 15, 2018 7:25 am 
Offline

Joined: Wed Nov 14, 2018 4:00 pm
Posts: 1
Hello,

I'm working righ now on a project which involves executing aplication on a RPi then I connect with my laptop using OPC and storing data in MySQL. The data I store is time of each process (I did a simple simulation of a line in which I replaced all unnecessary programs with timers of random value (using Oscat lib)).
My goal is to free some of codesys memory usage somehow after each cycle. I figured out that probably the only way to save some space while executing a program is to clear value of variables after the whole cycle is done. Here's my question, how? Are they saved in any file on a device and I can remove it with python or maybe it is possible to do that form a codesys level? Mb there's another option which I don't know.
I'd appreciate any type of help.

Thank you in advance.


Top
   
 Post subject: Re: Memory of a PLC
PostPosted: Thu Nov 15, 2018 5:46 pm 
Offline

Joined: Fri Feb 23, 2018 3:41 pm
Posts: 73
Hello there,

can't say about memory management of codesys runtime, but you should know that PLC is not made of dynamic memory allocation (excluding NEW keyword).
So if your overall memory consumption is too high, to cut into your code variable définitions would be a way too reduce memory imprint.

Regards,
dFx


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: No registered users and 4 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