easy-forum

English Support - Hardware => easyControl => Thema gestartet von: etembey am Dezember 16, 2010, 16:13:44 Nachmittag

Titel: RETAIN PROPLEM AT EC4P
Beitrag von: etembey am Dezember 16, 2010, 16:13:44 Nachmittag

i am using a EC4P with inceramental encoder.
it is countig up down..but when i stop and start again to plc. this count value is been zero(0) again. what i must do for to be retain of this encoder count value at no power in plc.

thanks for your answer..
if have a example program at codesys..plase sent to my email.
ridvanethem@hotmail.com
best regard
Titel: Re: RETAIN PROPLEM AT EC4P
Beitrag von: EControl am Januar 19, 2011, 14:44:38 Nachmittag
Hello,
 the EC4P doesn't support RETAIN or PERSISTENT type variables. The only workaround would be saving data in a file on MMC, but that would need a MMC + MMC adapter.
Titel: Re: RETAIN PROPLEM AT EC4P
Beitrag von: etembey am Februar 21, 2011, 22:15:24 Nachmittag
thanks for your answers
Titel: Re:RETAIN PROPLEM AT EC4P
Beitrag von: EControl am März 06, 2011, 01:30:42 Vormittag
...which was the wrong answer! I'm sorry, i made a big mistake! The only one of the both mentioned attributes which is not supported by the easyControl EC4P-xxx is 'PERSISTENT'. Thus, 'RETAIN' is supported (and works also well with e.g. occurring  power failures). The only thing you've to bother is, that due to the lack of 'PERSISTANT' being supported, you will lose the saved NVRAM RETAIN data when you trigger a ‘complete’ download, instead of just using an online change. I'd like to apologize for any inconvenience resulted from my mistake!
Titel: Re: RETAIN PROPLEM AT EC4P
Beitrag von: Sam am März 07, 2011, 12:57:12 Nachmittag
Hello all,

we had same problem last year at our project, after power-loss all data was lost. But Econtrol is right, it is possible to use retain variables. Only thing that you have to remember is not to use real addresses.
Do not to use real addresses in Global Variables list (like AT%MW100:WORD;). Use instead only MW100:WORD;
Regards,
Sami