Übersicht CSV File

With this function block a CSV file is recorded. Important: See notes when using the counter modules.


Inputs

TR
Trigger
With a rising edge at the input a new line is written into the CSV file.
RT
Rotation
A new file is started with a positive edge at the input. The current file is renamed to "fileiname-csv.0", ".1" etc.

Outputs

ER
Error
Number of errors, for example if an error occurs when saving the CSV file

Parameter

Number of inputs
number of inputs
File name
File name under which the data is saved.
Rotation
Number of rotations. With a positive edge at input RT the file is renamed to "filename-csv.0", ".1" etc., when the maximum number is reached, the oldest one is deleted.
Columns
Comment column This option inserts the text from the general Comment option as the first column. This can be used to insert a meter number as a column, for example.
Date column
Insert columns with current date.
Time column Insert columns with current time.
Column headers
Here you can define column headings. Separator is semicolon ";".
Number format
Number format, see also Format.
comma sign
comma sign
Email sending: The CSV file can be sent via email, for this purpose some frequently used times can be selected. If the file is to be sent at a special time, this can also be realized with the function block Send mail.
Date
Time. If, for example, Day is selected here, the dispatch always takes place at 0:00h.
Address
email address
Subject
Subject
Body
Email Text
Waiting time
Waiting time for the email to be sent in seconds. For example, if you select day as time, the email will be sent at 0:00h plus this time. This is useful, for example, if another line is to be recorded at 0:00h.


Important: See notes when using the counter modules.




See also general parameters of all function blocks.