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.

6 - The Resources<br />

A *.mon-file can be created by using command 'Save to file'.<br />

Note: Regard the alternative way of saving a trace by using the commands of menu 'Extras' 'Save trace<br />

values'.<br />

'Load from controller'<br />

With this command the trace (configuration + values) which is currently used on the controller can be<br />

loaded to the CoDeSys project. It will be displayed in the trace window and can be set as active<br />

project trace configuration.<br />

'Set as project configuration'<br />

With this command the trace configuration which is currently selected in the list of available traces<br />

(field 'Trace' in the trace window) can be set as active configuration within the project. The selection<br />

list besides the currently used (top position) offers all traces which have been loaded to the project by<br />

command 'Load from file' from *.mon-files (e.g. for the purpose of viewing).<br />

6.10 Target Settings<br />

The "Target Settings" is an object of the 'Resources'. Here you define, which target shall be used for<br />

the project and how it will be configured. If a new project is started with 'Project' 'New', a dialog will<br />

open where the target, that means a predefined configuration for a target, has to be set.<br />

The list of available targets depends on which Target Support Packages (TSP) are installed on the<br />

computer. These describe platform specific basic configurations and also define, to which extent the<br />

configuration can be modified by the user in the CoDeSys Target settings dialogs.<br />

Please regard: If no TSP is available, only the setting 'None' will be offered in the target system selection box.<br />

This will switch to simulation mode automatically and no configuration settings will be possible.<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<br />

to read the updated version.<br />

CoDeSys V2.3 6-49

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

Saved successfully!

Ooh no, something went wrong!