An “External File” is any file that you add to the project in the “POUs” view or “Devices” view. Click “Project Add Object” to open the “Add External File” dialog and define how the file belongs to the project.
An external file which was inserted in the “POUs” view is never downloaded to the controller.
An external file which was added in the “Devices” view is always downloaded to the controller when an online change or a download is performed due to an IEC code change.
When an external file is downloaded to the controller, it is not updated in the project.
Dialog 'Add External File'
“File path” |
The |
“Name” |
Object name for the file in CODESYS. If you do not type anything, the file will have its previous name. |
“Remember the link” |
The file is available in the project only as long as it exists in the defined file path. |
“Remember the link and embed into project” |
CODESYS saves an internal copy of the file in the project, as well as the link to the defined file path. The update option selected below applies as long as the external file exists there. Otherwise CODESYS uses the version saved in the project. |
“Embed into project” |
CODESYS saves only one copy of the file in the project. There is no longer a link to the external file. |
“Reload the file automatically” |
If the external file changes, then CODESYS updates the file in the project. |
“Prompt whether to reload the file” |
If the external file changes, then a dialog prompt opens whether CODESYS should also update the file in the project. |
“ Do nothing” |
The file remains unchanged in the project, even if the external file changes. |
“Display File Properties” |
Clicking this button opens the default “Properties of <file name>” dialog, which you can also open in the Windows file system by right-clicking the file. |
“Open” |
The file object is inserted into the device tree (“Devices” or “POUs” view) and opened in the editor for the matching file format. |