ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
354
READ_CSV_8BYTE
3404
Unit type = function block (FB)
Executeable from the CoDeSys version 2.3.6.1. Don't use it for older projects!
Contained in the library:
ifm_PDM_FILE_Vxxyyzz.LIB
Available for the following devices:
- PDM360: CR1050, CR1051, CR1060
- PDM360compact: CR1052, CR1053, CR1055, CR1056
- PDM360NG: CR108n, CR9042
Symbol in CoDeSys:
Description
3512
READ_CSV_8BYTE reads a byte matrix in CSV format from a specified file.
The file must have been written with WRITE_CSV_8BYTE (
→
).
Every dataset (every line) must consist of 8 bytes.
The FB provides the selected dataset and the corresponding time stamp.
Parameters of the inputs
3513
Parameter
Data type
Description
FILENAME
STRING(80)
path and name of the CSV file,
e.g.:
'/home/project/data.csv'
READ_EVENT BOOL
edge FALSE
TRUE:
dataset is read (only for 1 cycle)
FALSE: during further processing of the program
FILE_POS
WORD
number of the dataset (of the line) to be read
ENABLE
BOOL
TRUE:
unit is executed
FALSE:
unit is not executed
> POU inputs and outputs are not active