Please enable JavaScript to view this site.

This function is used to copy the contents of a file, present on the CF of the connected motion control, to another specified file.

Syntax

i32 f_copy (string srcPathName, string destPathName)

srcPathName

Current name of the file including path

destPathName

Desired name of the file including path.

Destination path can also be different

Result

Returns:

Value

Description

0

Positive result of the operation

-21

The target file already exists or is a directory

-17

The destination file already exists

-2

The source file does not exist

-nn

ERROR error code. (see error codes)

Validity

Task

Note

This function blocks the evolution of the task until the task is finished. Keep in mind that copying a 120K file takes about 1.35 sec on uRmc2 and about 0.8 sec on uRmc3.

If functions regarding compact flash management are used, it is recommended that bit 14 of the sys_cfg variable (0x00004000) be imposed to 1 to enable the use of the safety routines for flash write/read

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC