logWrite (Functionblock) |
Top Previous Next |
logWrite is used for making entries in the Datalogger. Records logged with the logWrite can automatically be timestamped with the current time. To write to file- or memory-based Dataloggers, please use logWriteRaw.
Input: tag : SINT Tag value for the record.
value : ARRAY [1..8] OF DINT Value for each of the up to 8 separate values logged in each record.
linsec : DINT Optional timestamp in seconds since 1980-1-1 00:00:00 to use (if -1, the current time is used). Please note that the function LogGotoLinsec() function will not work correctly if log entries are not written with increasing timestamps.
Output: None
Declaration: FUNCTION_BLOCK logWrite;
Example: INCLUDE rtcu.inc |