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:
|
||||||||||||
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 |
Example of use:
|