SetCsvOpt
This function/function block was added in KAS v4.04
Function - Configures the field separator and decimal point symbol for CSV files generated by the LogFileCSV function block.
Inputs
|
Input |
Data Type |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
Sep |
STRING |
Single character. |
N/A |
; |
Defines the field separator used in CSV files. |
|
Dec |
STRING |
Single character. |
N/A |
. |
Specifies the decimal point character for numeric values in CSV files. |
Outputs
|
Output |
Data Type |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Q |
BOOL |
FALSE, TRUE |
N/A |
|
Remarks
- By default, the LogFileCsv block uses:
- Semicolons ( ; ) as field separators.
- Dots ( . ) as decimal points.
- The SetCsvOpt function to modify these characters to suit specific formatting requirements.
FBD Language Example
Not available.
FFLD Language Example
IL Language Example
Not available.
ST Language Example
OK := SetCsvOpt(strSeparator, strDecimal);
See Also




