logRead (Functionblock) |
Top Previous Next |
logRead is used for reading entries in the Datalogger. It will return the record from the current read position. To read from file- or memory-based Dataloggers, please use logReadRaw.
Input: None
Output: tag : SINT Tag value for the record.
year : SINT Year value from the timestamp.
month : SINT Month value from the timestamp.
day : SINT Date value from the timestamp.
hour : SINT Hour value from the timestamp.
minute : SINT Minute value from the timestamp.
second : SINT Second value from the timestamp.
linsec : DINT The timestamp in seconds since 1980-1-1 00:00:00.
value : ARRAY [1..8] OF DINT Value for each of the up to 8 separate values logged in the record.
status : SINT
Declaration: FUNCTION_BLOCK logRead;
Example: INCLUDE rtcu.inc |