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
  • FALSE: If a file with same destination file name is present, file is not copied, and an error occurs.

  • TRUE: If a file with same destination file name is present, overwrite with the new file.

DONE Output Function block status.
BUSY Output Function block is operating or idle.
STAT Output Outputs an error number if a problem occurs.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LM312-8