Commands and functions
P.
199 of 349
Writeflashvar
Data savings
Project data
Definition
●
Function
writeflashvar
(
Variable)
Arguments
●
Variable
arbitrary data type
Effect
●
The binary data of the memory content (see bit length, page 154) of the
Variable
are
stored in the built-in flash. The return value is 0b01 if the writing was successful, otherwise
1b01 is returned.
●
The writing or referencing is carried out exclusively via the variable name.
Data type result (Return)
●
Data type b01
(The return value is asynchronous to the main processing loop - see p.124)
Example:
The last value of a variable is to be stored in the flash at midnight or before a new user
programming is installed and automatically loaded into the variable after a restart.
Note: The predefined variable SHUTDOWN is automatically set to ON by the Enertex®
EibStudio before importing a new user program, so that the application is given sufficient time,
e.g. to store values to the flash (see p. 213)
ValuePowerK1="K1-Wirkenergiezähler (Verbrauch)-14/2/76"
if htime(0,0,0) or SHUTDOWN then {
writeflashvar(ValuePowerK1)
} endif
if systemstart() then readflashvar(ValuePowerK1) endif
In addition to the values in the remanent memory, which can addressed with the functions
readflash
and
writeflash.
Are additionally archived on the flash of the Enertex® EibPC:
●
scene
●
Time series of diagramms (“timebuffer”)
●
Pictures and datas for the internal webserver
●
and (depending on users' choice) the whole project.
These datas can be loaded and seperately saved by the Enertex® EibStudio of Enertex® EibPC.
If transmitting a program with the option “Uploading project datas shown as plain text to the EibPC” is
crossed, so the whole datas will be archived including used macro datas and ESF etc. of the
EibStudio to a separate directory in the flash.
At a later date this data could be reconstructed with the menu task D
ATA
/P
ROJECTDATA
UPLOAD
AS
P
LAINTEXT
ON
E
IB
PC.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]