English Support - Hardware > easyControl

RETAIN PROPLEM AT EC4P

(1/1)

etembey:

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

EControl:
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.

etembey:
thanks for your answers

EControl:
...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!

Sam:
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

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln