216
ifm
System Manual
ecomat
mobile
SmartController (CR2500, CR2502) V05
More functions in the ecomatmobile controller
Saving, reading and converting data in the memory
10.3
Saving, reading and converting data in the
memory
10.3.1
Automatic data backup
The Ecomatmobil controllers allow to save data (BOOL, BYTE, WORD, DWORD) non-volatilely (=
saved in case of voltage failure) in the memory. If the supply voltage drops, the backup operation is
automatically started. Therefore it is necessary that the data is filed as RETAIN variables.
The advantage of the automatic backup is that also in case of a sudden voltage drop or an interruption
of the supply voltage, the storage operation is triggered and thus the current values of the data are
saved (e.g. counter values).
If the supply voltage returns, the saved data is read from the memory via the operating system and
written back in the flag area.
10.3.2
Manual data storage
Besides the possibility to store the data automatically, user data can be stored manually, via function
calls, in integrated memories from where they can also be read.
Depending on the controller the following memories are available:
•
EEPROM
memory:
Only for SmartController, CabinetController CR0301 / CR0302, PCB controller.
Slow writing and reading.
Limited writing and reading frequency.
Any memory area can be selected.
Storing data with the function E2WRITE (
→
page
).
Reading data with the function E2READ (
→
page
•
FRAM
memory
Only for ClassicController, ExtendedController, SafetyController, CabinetController CR0303,
PDM360 smart.
Fast writing and reading.
Unlimited writing and reading frequency.
Any memory area can be selected.
Storing data with the function FRAMWRITE.
Reading data with the function FRAMREAD.
•
Flash
memory
For all above mentioned controllers.
Fast writing and reading.
Limited writing and reading frequency.
Really useful only for storing large data quantities.
Before anew writing, the memory contents must be deleted.
Storing data with the function FLASHWRITE (
→
).
Reading data with the function FLASHREAD
(
→
page
).
Info
By means of the storage partitioning (
→
data sheet or operating instructions) the programmer can find
out which memory area is available.
Содержание Ecomat 100 ecomatmobile SmartController...
Страница 1: ...System Manual SmartController CR2500 CR2502 CoDeSys V2 3 Target V05 7390667 00 03 2009 ...
Страница 6: ......
Страница 282: ......