‘File’ ‘Open’¶
Symbol:
With this command you open an already existing project. If a project has already been opened and changed, then CoDeSys asks whether this project should be saved or not.
The dialog box for opening a file appears, and a project file with the extension “*.pro” or a Library Manager file with the extension “*.lib” must be chosen. This file must already exist. It is not possible to create a project with the command “Open”.
Open a project from the PLC
To upload a project file from the PLC, press PLC at Open project from PLC. You will obtain, as next, the dialog Communication parameters (see menu ‘Online’ ‘Communication parameters’) for setting the transmission parameters when no connection exists yet to the PLC. Once an on-line connection has been created, the system checks whether the same named project files already exist in the directory on your computer hard disc. When this is the case you receive the dialogue Load the project from the controller where you can decide whether the local files should be replaced by those being used by the controller. (This sequence is the reverse of the sequence of ‘Online’ ‘Load source code’, with which the project source file is stored in the controller. Do not confuse with ‘Create Boot project’!)
Note
Please note, that you in any case have to give a new name to a project, when you load it from the PLC to your local directory, otherwise it is unnamed. If supported by the target system, a ‘Title’ entered in the ‘Project’ ‘Project info’ will be pre-defined as new project file name. In this case at loading the project from the PLC the dialog for saving a file will open, where the new file name automatically is entered and can be confirmed or modified.
If there has not yet been loaded a project to the PLC, you get an error message.
(See also ‘Project’ ‘Options’ category ‘ ‘Sourcedownload’’).
Open a project from Source code manager (ENI \ data base)
To open a project which is stored in a ENI project data base, activate option Open project from Source code manager can be used . It is a precondition that you have access to an ENI Server which serves the data base. Press button ENI…, to get a dialog where you can connect to the server concerning the data base category ‘Project objects’.
Insert the appropriate access data (TCP/IP-Address, Port, User name, Password, Read only) and the data base folder (Project name) from which the objects should be get and confirm with Next. The dialog will be closed and another one will open where you have to insert the access data for the data base category ‘Shared objects’. If you press button Finish the dialog will be closed and the objects of the defined folders will automatically be retrieved and displayed in the CoDeSys Object manager. If you want to continue to keep the project objects under data base control, then open the Project options to set the desired parameters.
The access data are stored in the codesys.ini file, user name and password however only if the project option ‘Save ENI credentials’ is activated.
Most recently opened files
The most recently opened files are listed in the Files menu below the command ‘File’ ‘Exit’. If you choose one of them, then this project is opened.
If passwords or User groups have been defined for the project, then a dialog box appears for entering the password.