ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
353
File functions for CSV files
READ_CSV_8BYTE.................................................................................................................. 354
WRITE_CSV_8BYTE................................................................................................................ 356
3430
CSV = Comma-Separated Values
A CSV file is a text file which contains comma-separated elements in every line. Every line describes a
dataset. Several datasets are separated by a line feed. This results in a table (matrix, array) which can
be further processed in a spreadsheet program (e.g. MS-Excel, StarCalc, ...).
Example:
Date,Time,a-p,Error
20080812,845,am,17
20080812,256,pm,3
20080813,923,am,12
The above data of the CSV file results in the following table:
Date
Time
a-p
Error
2008-08-12 08:45
am
17
2008-08-12 02:56
pm
3
2008-08-13 09:23
am
12
The library provides the following FBs for CSV files:
READ_CSV_8BYTE
WRITE_CSV_8BYTE
Available for the following devices:
- PDM360: CR1050, CR1051, CR1060
- PDM360compact: CR1052, CR1053, CR1055, CR1056
- PDM360NG: CR1082, CR9042