24.01.2015 Views

PLC Programming

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4 - The Individual Components<br />

'Project' 'Import'<br />

Once you have made your selection in the dialog box window (the same way as with 'Project'<br />

'Document' ), you can decide, whether you want to export the selected parts to one file or to export in<br />

separate files, one for each object. Switch on or off the option One file for each object then click on<br />

OK. The dialog box for saving files appears. Enter a file name with the expansion ".exp" respectively a<br />

directory for the object export files, which then will be saved there with the file name<br />

.<br />

In the resulting dialog box for opening files select the desired export file.<br />

The data is imported into the current project. If an object with the same name already exists in the<br />

same project, then a dialog box appears with the question "Do you want to replace it": If you answer<br />

Yes, then the object in the project is replaced by the object from the import file. If you answer No, then<br />

the name of the new objects receives as a supplement an underline and a digit ("_0", "_1", ..). With<br />

Yes, all or No, all this is carried out for all objects.<br />

If the information is imported to link with a library, the library will be loaded and appended to the end of<br />

the list in the library manager. If the library was already loaded into the project, it will not be reloaded.<br />

If, however, the export file that is being imported shows a different storage time for the library, the<br />

library name is marked with a "*" in the library manager (e.g. standard.lib*30.3.99 11:30:14), similar to<br />

the loading of a project. If the library can not be found, then an information dialog appears: "Cannot<br />

find library {\} ", as when a project is loaded.<br />

In the message window the import is registered.<br />

'Project' 'Siemens Import'<br />

In the submenu "Siemens Import" you find the commands for importing POUs and variables from<br />

Siemens-STEP5 and STEP7 files.<br />

The following commands are available:<br />

• "Import from SEQ symbol file"<br />

• "Import from S5 file"<br />

See Appendix G: for more detailed information about Siemens import.<br />

'Project' 'Compare'<br />

This command is used to compare two projects or to compare the actual version of one project with<br />

that which was saved last.<br />

Overview:<br />

Definitions: actual project: Project, which you are currently working on.<br />

reference project:<br />

compare mode:<br />

unit:<br />

Project, which should be compared with the actual project.<br />

in this mode the project will be displayed after the command<br />

'Project' 'Compare' has been executed.<br />

Smallest unit which can be compared. Can be a line<br />

(declaration editor, ST editor, IL editor), a network (FBD<br />

editor, LD editor) or a element/POU (CFC ediotr, SFC editor).<br />

In compare mode the actual project and the reference project will be presented in a bipartited window.<br />

The names of the POUs, for which differences have been found, are marked by color. For editor<br />

POUs also the content of the POUs is displayed in a vis-a-vis way. The results and the way of<br />

presenting in compare mode depend on: 1. what filters have been activated for the compare run,<br />

affecting the consideration of whitespaces and comments during comparison; 2. whether modification<br />

within lines or networks or elements are evaluated as a completely new inserting of a POU or not.<br />

The version of the reference project can be accepted for single diffences or for 'all equally marked'<br />

differences. To accept means that the version of the reference project is taken over to the actual<br />

project.<br />

CoDeSys V2.3 4-29

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

Saved successfully!

Ooh no, something went wrong!