FILE_COPY Function Block
The FILE_COPY function block is used to copy a file on the SD memory card. The Source file name will be copied to the destination file name. If the destination file name is already on the SD memory card, the operation will be performed according to the OverWrite setting. File names must include the extension.
| Element Name | Element Type | Description |
|---|---|---|
| REQ | Input | Edge detected request to execute the function block. |
| SrcFileName | Input | Source file name in STRING format. |
| DstFileName | Input | Destination file name in STRING format. |
| OverWrite | Input |
|
| DONE | Output | Function block status. |
| BUSY | Output | Function block is operating or idle. |
| STAT | Output | Outputs an error number if a problem occurs. |
| STAT Number | Error Status |
|---|---|
| 0 | Normal |
| 1 | Failed to access SD memory card |
| 2 | There is no source file with the SrcFileName |
| 3 | There is a file with same name as DstFileName and OverWrite is false |
LM312-8