I'm working myself into a bit of a lather.
I'm in need of some assistance with programming an 'Hour Meter' in Codesys V3. I'm using a Wago 750-8202 (PFC200).
This system will be routinely power cycled. As such I will need to write data to a variable declared as 'persistent retain'.
Ultimately I'd like to periodically write data to an external SD card for logging purposes. The CAA_File library seems to me to be the best way of achieving this.
In the meantime, I'm trying to understand the memory architecture of my controller. Is remanent memory explicitly 'flash' memory? In which case, I should resist writing to it too often?
If I wrote my hour meter status to it every 10 minutes, would this be considered poor programming practice? Will the device perform any internal 'wear levelling'?
The PFC200 manual talks about 128kB of 'Remanent Memory' which is broken into 24kB of 'Flag Area' memory and 104kB 'Retain Memory'. I have no idea what flag area means.
Can anyone clarify the best practice for implementing an hour meter and how one should go about storing the data, without compromising the device (flash write service life).
Thanks!
I'm in need of some assistance with programming an 'Hour Meter' in Codesys V3. I'm using a Wago 750-8202 (PFC200).
This system will be routinely power cycled. As such I will need to write data to a variable declared as 'persistent retain'.
Ultimately I'd like to periodically write data to an external SD card for logging purposes. The CAA_File library seems to me to be the best way of achieving this.
In the meantime, I'm trying to understand the memory architecture of my controller. Is remanent memory explicitly 'flash' memory? In which case, I should resist writing to it too often?
If I wrote my hour meter status to it every 10 minutes, would this be considered poor programming practice? Will the device perform any internal 'wear levelling'?
The PFC200 manual talks about 128kB of 'Remanent Memory' which is broken into 24kB of 'Flag Area' memory and 104kB 'Retain Memory'. I have no idea what flag area means.
Can anyone clarify the best practice for implementing an hour meter and how one should go about storing the data, without compromising the device (flash write service life).
Thanks!