ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
364
WRITE_SINGLE_PARAMETER
3419
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
3527
WRITE_SINGLE_PARAMETER writes a dataset of type WORD to the indicated text file. The file
consists of only this one dataset.
Saving the value as dataset in the text file must be right-aligned, e.g.:
Value
Saved as
1 00001
123 00123
12345 12345
Parameters of the inputs
3528
Parameter
Data type
Description
WRITE BOOL
edge FALSE
TRUE:
dataset is written (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'
VALUE
WORD
value to be written to the dataset
Parameters of the outputs
3529
Parameter
Data type
Description
FILE_HANDLER DWORD
file
description:
value < 1 = error