CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sun May 28, 2017 5:31 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri May 27, 2016 5:12 am 
Offline

Joined: Thu May 26, 2016 3:48 am
Posts: 22
Hi There,

I am using IFM CR1201, with CodeSys V3.5 SP8, but i am facing an issue while defining the retain variable. It does not give any error while compiling but when i try to download the program into the screen, it gives me

I am defining the variable as below:

VAR_GLOBAL RETAIN

hmiX1000_Digit : INT;

END_VAR


"Out of Retain Memory : Variable "hmiX1000_Digit", 2 bytes (Largest Contiguous gap 32724) (Incremental Compilation may produce fragmented memory. Perfrom "Build, Clean" to force a reallocation of all data and code."

Does anybody have come across with such kind of issue in CodeSys V3.5 with IFM Screen? if so and have found some solution, could you please help me out.

Thanks,


Top
   
PostPosted: Mon May 30, 2016 6:09 pm 
Offline
Frequent User
Frequent User

Joined: Thu Jun 14, 2007 9:49 am
Posts: 974
please use correct board forum as this is version 2.3

_________________
shooter@home.nl
computer shooter
paul deelen
jacob van wassenaerstraat 29
NL 5224 GG 's-Hertogenbosch
skype shooter paul.deelen
phone +31736139136


Top
   
PostPosted: Tue May 31, 2016 12:06 pm 
Offline

Joined: Mon Aug 20, 2012 1:05 pm
Posts: 1
Hi,

for the CR1201, and all other ifm displays with Codesys V3, it's only possible to use "Persistent Variables".
unfortunately the compiler does not report an error...

Just add the object "Persistence Variables" to your Application.

Best regards,
mawa


Top
   
PostPosted: Thu Jun 02, 2016 4:34 am 
Offline

Joined: Thu May 26, 2016 3:48 am
Posts: 22
Hello Mawa,

Yes i have already tried "Persistent Variable" , it works. But just wondering why it is not working for Retain.

But anyway as you have mentioned that it does not support retain, but it is working with persistent, then there is no issue


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