native rM2M_RecData(timestamp, const data{}, len);
Saves a data record in the internal flash memory. Use the "rM2M_Pack", "rM2M_SetPacked" or
"rM2M_SetPackedB" functions to generate the data area.
Parameter
Explanation
timestamp
Time stamp that should be used for the recording
= 0: The current system time is used as the time stamp.
> 0: The transferred time stamp is used.
(The time stamp must be specified in seconds since 31.12.1999)
data
Array that contains the data to be saved
len
Number of bytes to be saved (max. 1024 Byte )
Explanation
Return value
l
OK, if successful
l
-2, if data storage is not currently possible as the internal memory is being
reorganised. The data must be temporarily saved in the script and stored
again at a later date.
l
ERROR, if one of the following errors occurs
l
Memory area (data{}, len) is invalid.
l
More than 10 calls during one script run
l
Number of bytes to be saved > 1024 Byte
l
FLASH write process not successful
l
The time stamp transfer parameter is more than 5 minutes in the
future
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 118).
native rM2M_ReadData(recidx, funcidx);
Reads out a data record saved in the internal flash and then calls up the function for which the index
was transferred.
Parameter
Explanation
recidx
Index of the data record to be read (-1 = last/current data record, -2 = penultimate
data record, .... )
funcidx
Index of the public function that should be called once the data record has been
read from the internal flash memory.
Type of function: public func(const data[], len, timestamp);
Explanation
Return value
l
OK, if the read process has been started
l
ERROR, if an error occurs
134
Rev. 05
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......