
ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
363
READ_SINGLE_PARAMETER
3416
Unit type = function block (FB)
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
3524
READ_SINGLE_PARAMETER reads a single dataset of type WORD from the indicated text file. The
file consists of only this one dataset.
Saving the value in the text file must be right-aligned, e.g.:
Value
To be saved as
1 00001
123 00123
12345 12345
Parameters of the inputs
3525
Parameter
Data type
Description
READ BOOL
edge FALSE
TRUE:
dataset is read (only for 1 cycle)
FALSE:
during further processing of the program
FILENAME
STRING(80)
path and name of the file,
e.g.:
'/home/project/para.txt'
Parameters of the outputs
3526
Parameter
Data type
Description
FILE_HANDLER DWORD
file
description:
value < 1 = error
PARAMETER
WORD
parameter read from the text file
FILE_MISSING
BOOL
file not found:
- wrong filename
- wrong path
- file not saved in the PDM