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,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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,
please use correct board forum as this is version 2.3
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
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