ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
Saving, reading and converting data in the memory
337
11.1.2
COPY_PDM_TO_USB
10098
Unit type = program (PRG)
Contained in the library:
ifm_PDM360NG_USB_Vxxyyzz.Lib
Available for the following devices:
- PDM360NG: CR108n, CR9042
Symbol in CoDeSys:
Description
10100
COPY_PDM_TO_USB copies a file from the memory of the PDM to a connected USB memory device.
Parameters of the inputs
10101
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
unit is executed
FALSE:
unit is not executed
> POU inputs and outputs are not active
COPY
BOOL
TRUE: rising edge of the press of a key
starts the copy process
FALSE:
this function is not executed
USB_PATH
STRING (80)
USB path; is provided by USB_STORAGE_HANDLER (
→
LOCAL_PATH
STRING (80)
Path in the PDM memory
Typical:
/home
or
/data
LOCAL_FILE
STRING (80)
Filename of the file to be copied
(wildcards
?
and
*
also allowed)
Parameters of the outputs
10105
Parameter
Data type
Description
COMMAND
STRING (80)
Full Linux command (for control purposes)
DONE
BOOL
Copy process was successful
RET_VALUE
INT
Linux return value (for control purposes)