24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 - The Individual Components<br />

'File' 'Close'<br />

'File' 'Save'<br />

The most recently opened files are listed under the command 'File' 'Exit'. If you choose one of them,<br />

then this project is opened.<br />

If Passwords or User groups have been defined for the project, then a dialog box appears for entering<br />

the password.<br />

With this command you close the currently-open project. If the project has been changed, then<br />

CoDeSys asks if these changes are to be saved or not.<br />

If the project to be saved carries the name "Untitled", then a name must be given to it (see 'File' 'Save<br />

as').<br />

Symbol:<br />

'File' 'Save as'<br />

Shortcut: +<br />

With this command you save any changes in the project. If the project to be saved is called "Untitled",<br />

then you must give it a name (see 'File' 'Save as').<br />

With this command the current project can be saved in another file or as a library. This does not<br />

change the original project file.<br />

After the command has been chosen the Save dialog box appears. Choose either an existing File<br />

name or enter a new file name and choose the desired file type.<br />

Dialog box for Save as<br />

If the project is to be saved under a new name, then choose the file type CoDeSys Project (*.pro).<br />

If you choose the file type Project Version 1.5 (*.pro), 2.0 (*.pro), 2.1 (*.pro) or 2.2 (*.pro), then the<br />

current project is saved as if it were created with the version 1.5, 2.0, 2.1 or 2.2. Specific data of the<br />

version 2.3 can thereby be lost! However, the project can be executed with the version 1.5, 2.0, 2.1 or<br />

2.2.<br />

You can also save the current project as a library in order to use it in other projects. Choose the file<br />

type Internal library (*.lib) if you have programmed your POUs in CoDeSys.<br />

Choose the file type External library (*.lib) if you want to implement and integrate POUs in other<br />

languages (e.g. C). This means that another file is also saved which receives the file name of the<br />

library, but with the extension "*.h". This file is constructed as a C header file with the declarations of<br />

all POUs, data types, and global variables. If external libraries are used, in the simulation mode the<br />

CoDeSys V2.3 4-17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!