CSVLogger
CSVLogger (FB)
CSVLogger (FB)FUNCTION_BLOCK CSVLogger
InOut:
Input
xBlockSaveLogFile
BOOL
Use this trigger to interrupt the file writing process
Input
xDoSaveLogFile
BOOL
Trigger a write process to store the recorded files, independent of the save interval
Input
dtTimestamp
DT
Timestamp to attach to the filename
Input
pColumnData
CAA.PVOID
Column header data
Input
pRowData
CAA.PVOID
Row data entry
Input Const
tRecordIntervall
TIME
TIME#1m0s0ms
The recording interval defines how often an input should be saved
Input Const
tSaveIntervall
TIME
TIME#10m0s0ms
The file save interval for the recorded entries
Input Const
sFileExtension
STRING
'.csv'
The file extension name
Input Const
sLogFileDirectory
STRING(255)
'./'
File directory location
Input Const
sLogFileNamePrefix
STRING
'DataLog'
Prefix of the filename
Output
sLogFilePath
STRING(255)
The path to the filename
Output
xBusy
BOOL
Is TRUE if there is any file processing like opening or
writing/saving to the storage file
Output
eError
ERROR
Last updated

