![IFM PDM360NG Series Скачать руководство пользователя страница 350](http://html1.mh-extra.com/html/ifm/pdm360ng-series/pdm360ng-series_system-manual_3875026350.webp)
ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
350
READ_TEXTFILE
3398
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
3506
READ_TEXTFILE reads the contents of an indicated text file. This text file can contain, for example, a
language set or alarm texts.
Max. 500 characters (bytes) distributed over max. 25 lines of max. 65 characters each are allowed for
the file. If more characters are needed, the contents should be distributed over several files.
For large text files with many lines you had better use READ_TEXTLINE (
→
The experienced programmer can change the number of characters and lines, if needed. Proceed with
care and check the cycle time of the device.
Parameters of the inputs
3507
Parameter
Data type
Description
READ
BOOL
TRUE (rising edge):
unit is executed (for only 1 cycle)
FALSE:
during further processing of the program
PATH_FILE
STRING(80)
path and name of the text file,
e.g.:
'/home/project/english.txt'
Parameters of the outputs
3508
Parameter
Data type
Description
TEXT_LINES
ARRAY[1..25] OF STRING
lines read from the text file
FILEDES_ DWORD
file
description:
value < 1 = error
READ_RESULT
DINT
number of read characters