
The Function Block FS_RENAME renames files or folders or moves them to another location.
Warning: Existing files are overwritten without a warning.
The file system must have been initialized beforehand using FS_INIT. All operations take place asynchronously per configured storage medium.
A positive edge triggers the renaming or moving of data on the storage medium.
Defines the device from which files are to be accessed. The device is used per project and can be managed in the context menu under Project External Storage.
Specifies the source path to the file or folder on the storage medium. The path corresponds to a Unix file path in UTF-8 format, if this is supported. The path is represented as follows:
Folder/Subfolder/File.txt
Specifies the destination path for the file or folder on the storage medium. The complete path name must be specified.
The output returns a pulse upon success to perform the next operation. The pulse occurs when the process is completed, even if an error has occurred.
In case of an error, it returns a text with an error message. This is FALSE if no error has occurred. The state is stored for later use.
Possible causes: