![IFM PDM360NG Series System Manual Download Page 351](http://html1.mh-extra.com/html/ifm/pdm360ng-series/pdm360ng-series_system-manual_3875026351.webp)
ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
351
READ_TEXTLINE
3401
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
3509
READ_TEXTLINE reads an alarm or text line from a specified text file.
The FB enables direct access to a specified text line in the file. Even large text files with many lines
can be read quickly. The system load is low.
You had better use READ_TEXTFILE (
→
) for small text files.
All lines in this file must be precisely 39 characters long and completed with 'CR'. Fill unneeded
positions of the line with '_' or blanks.
Examples:
Alarm text 1___________________________
Out of order .........................
Parameters of the inputs
3510
Parameter
Data type
Description
READ
BOOL
TRUE (rising edge):
unit is executed (for only 1 cycle)
FALSE:
during further processing of the program
FILENAME
STRING(80)
path and name of the text file,
e.g.:
'/home/project/alarm.txt'
.
FILE_POS
WORD
number of text line