This command allows you to load a local file into the flash of the connected device.
Syntax |
FLOAD [-R][-O][-NB][-RELOAD|-RESTART|-RESYNC] <source> <target> FLOAD [-R][-O][-NB] -BIOS|-BOOT|-MAIN|-CFG <source> [<target>] |
-R |
Attempt operation recovery (#1) |
-O |
Overwrites any existing file on the flash |
-NB |
Disables special handling of .BIF files |
-BIOS |
Load special file as BIOS (#2) |
-BOOT |
Special file loading as BOOT (#2) |
-MAIN |
Special file upload as MAIN ( #2) |
-CFG |
Special file upload as CFG ( #2) |
-RELOAD |
Special file load (with memory reload) (#2) |
-RESTART |
Special file load (with memory reload and restart) (#2) |
-RESYNC |
Special file load (with memory reload and synchronized restart) (#2) |
<source> |
Name of source file (on PC) |
<target> |
Destination folder and/or file name (on flash). |
If the source file path contains wildcards, a file selection window is presented with the selection mask set to what is required as the source file: select the desired file, then the Open button (or hotkey Return) to confirm the choice, or the Cancel button (or hotkey Esc) to cancel the operation.
If the name of the destination file is omitted, the same name as the source file (the local one) will be used.
If the file is to be loaded into a specific folder, without specifying the name of the destination file, the contents of the folder should be correctly indicated by ending it with the / character (e.g., /FA/): in the alternative case, the folder is understood to be a separate entity (e.g., /FA), so the loading would attempt to replace the folder (and its contents) with a file having the same path and name, an operation that is obviously not allowed.
Recovery operation (#1)
When the -R option is specified, RDE tries to check whether at least a part of the affected file already exists in the flash of the connected device and that this part corresponds to the local file: if so, after due checks, the upload continues excluding the part of the file already present, otherwise the retrieval will be ignored.
Special uploads (#2)
For more information on special uploads, refer to the documentation of the specific hardware device. In case a special upload is specified, the destination file name is optional and no longer necessarily refers to a flash.
Caution: improper use of the -BIOS, -BOOT, -MAIN and -CFG special loadings could lead to damage or malfunction to the hardware itself, thus causing serious damage to property and/or persons when used with energized and/or moving machines/equipment.
Examples of use
To load the local AUTOEXEC.STP file into the flash folder /FA/:
FLOAD autoexec.stp /fa/. |
To load to flash folder /FB/ the local file DATI_01.DAT, contained in the local folder C:\dati\files\, renaming it as DATI.DAT:
FLOAD c:/data/files/data_01.dat /fa/data.dat |
To load an R3 program to flash folder /FA/, with in-memory reload and synchronized restart:
FLOAD -RESYNC task1.elf /fa/ |