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.

Target Settings<br />

Target-Support-Package<br />

A Target Support Package (TSP) must be installed before starting by the aid of the installation<br />

program InstallTarget which might be part of the CoDeSys-Setup.<br />

A Target Support Package (TSP) contains all the files and configuration information necessary to<br />

control a standard platform with a program created in CoDeSys. What has to be configured:<br />

codegenerator, memory layout, <strong>PLC</strong> functionality, I/O modules. In addition libraries, gateway drivers,<br />

ini-files for error messaging and <strong>PLC</strong> browser have to be linked. The central component of a TSP is<br />

one or more Target files. A Target file directs to the files which are in addition necessary to configure<br />

the target. It is possible that several target files share these additional files.<br />

The default extension for a Target file is *.trg, the format is binary. Additive definitions are attached to<br />

the entries in the target file which determine whether the user can see and edit the settings in the<br />

CoDeSys dialogs.<br />

During installation of a TSP the target file for each target is put to a separate directory and the path is<br />

registered. The associated files are copied to the computer according to the information of a Info file<br />

*.tnf . The name of the target directory is the same as the targets name. It is recommended to store<br />

the target specific files in a directory which is named with the manufacturers name.<br />

The files which get installed with a TSP are read when CoDeSys is started. The target settings which<br />

are done in the CoDeSys dialogs will be saved with the project.<br />

Please note: If you use a new target file or if you have changed the existing one, CoDeSys has to be restarted to<br />

read the updated version.<br />

6.6.1 Dialog Target Settings<br />

The dialog Target Settings will open automatically, when a new project is created. It also can be<br />

opened by selecting the menu item 'Target Settings' in the register 'Resources' in the Object<br />

Organizer.<br />

Choose one of the target configurations offered at Configuration.<br />

If no Target Support Package has been installed, only 'None' can be selected, which means working<br />

in simulation mode. If you choose one of the installed configurations it depends on the entries in the<br />

target files, which possibilities are left to customize this configuration in the CoDeSys dialogs. If you<br />

choose a target configuration, for which there exists no valid licence on the computer, CoDeSys asks<br />

you to choose another target.<br />

If a configuration is selected, which is provided with the entry "HideSettings" in the corresponding<br />

target file, you only can see the name of the configuration. Otherwise there are five dialogs available<br />

to modify the given configuration:<br />

5. Target Platform<br />

6. Memory Layout<br />

7. General<br />

8. Networkfunctionality<br />

9. Visualization<br />

Attention !: Please be aware, that each modification of the predefined target configuration can cause severe<br />

changes in performance and behaviour of the target !<br />

Press if you want to reset the target settings to the standard configuration given by the<br />

target file.<br />

6-34 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!