Copying Files to/from PLC

In the generic Files tab of the device editor, you can copy files to and from the local file system and the controller.

Requirement: The vendor has unlocked the tab. In the device tree, the connection to the controller is configured. The device is running.

  1. Double-click the PLC device object in the device tree to open the device editor.

  2. Click the Files tab.

  3. In Host | Location on the left part of the view, set the path in the local file system where files will be copied to and from. Example: D:\\FileTransferWithPLC. If necessary, create a new directory by clicking the folder symbol ( dec6d0f2ceddf938c0a8640e01040083_e5b9a07fcf010df4c0a8640e0055298a ).

    ⇒

    The files and directories are shown like in a file manager. Click the refresh symbol ( dec6d0f2ceddf938c0a8640e01040083_c7b88a40cf002a4bc0a8640e01d5317e ) to update the display.

  4. In Runtime on the right side of the view, set the required directory for the data transfer in the same way.

    ⇒

    CODESYS shows the files on the controller.

  5. Select the required files from the file system tree for the file transfer (multiple selection is possible). You can also select a directory for transferring all files in a folder.

  6. Click the left and right arrow symbols ( dec6d0f2ceddf938c0a8640e01040083_edc92d06cf0aab9bc0a8640e011dce07 , dec6d0f2ceddf938c0a8640e01040083_e14b7886cf0b302fc0a8640e000cc716 ) between the two parts of the view.

    ⇒

    CODESYS copies the selected files to the other file system immediately. If a file is not already available in the target directory, then it is created. If it is already available and not write-protected, then it is overwritten. Otherwise a message is shown.

See also