ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
346
OPEN_PCMCIA
3395
Unit type = function block (FB)
Contained in the library:
ifm_PDM_FILE_Vxxyyzz.LIB
Available for the following devices:
- PDM360: CR1050, CR1051, CR1060
Symbol in CoDeSys:
Description
3497
OPEN_PCMCIA opens the FAT file system of the inserted PCMCIA card (integrates the PCMCIA
card) as directory
/pcmcia
.
Info
The Linux system must integrate a newly inserted removable storage device into its file system to read
and edit the contents. This is done automatically by the system with the command:
'/dev/hda1 on /pcmcia type msdos (rw)$N'
Parameters of the inputs
3498
Parameter
Data type
Description
INIT
BOOL
TRUE (in the 1st cycle):
unit is executed
FALSE:
during further processing of the program
Parameters of the outputs
3499
Parameter
Data type
Description
PCMCIA_STATE
STRING(80)
only informal: mount status
OPEN_ERROR
BOOL
TRUE:
mount status file is not readable:
Integration of the card failed.
FALSE:
mount status file is readable.
PCMCIA_READY BOOL
TRUE:
PCMCIA card integrated:
Files in the path
/pcmcia
can be read and processed.
FALSE:
PCMCIA card not integrated