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 />

must be included in the CoDeSys project. They are needed for running the <strong>PLC</strong> as an CANopen<br />

device.<br />

2. In the configuration file (*.cfg) on which the configuration is basing, an appropriate entry for a<br />

CanDevice must be inserted. Only then in the <strong>PLC</strong> Configuration Editor a subelement 'CanDevice' can<br />

be appended and parameterized in the three configuration dialogs which will be described in the<br />

following:<br />

• Base settings<br />

• CAN settings<br />

• Default PDO mapping<br />

Base settings of a CanDevice<br />

Dialog Base settings<br />

Bus identifier: currently not used.<br />

Name of updatetask: Name of the task, in which the CanDevice is called. A selection list will provide<br />

all tasks which are available in the project.<br />

EDS file generation: Activate this option if you want to generate a device file (EDS file) from the<br />

current configuration settings in order to be able to use the CanDevice later in any master<br />

configuration. Enter a path and name for the file in the field Name of EDS file. Optionally a manually<br />

created template file can be defined (Template for EDS file), which will be supplemented with the<br />

settings done in the configuration dialogs. For example you could create a text file containing certain<br />

EDS file entries, save it as "EDS_template.txt" and enter the path of this template in the current dialog.<br />

If you then generate an EDS file "device_xy.eds" from the current project, the entries resulting from<br />

the project will be merged with those of the template and will be saved in "device_xy.eds". (Do not use<br />

the extension ".eds" for the template file !) If entries are created by the current project which are<br />

already defined by the template, the template definitions will not be overwritten.<br />

For entering the file pathes you can use the standard dialog for browsing for a file which can be<br />

opened by using the button Browse....<br />

CoDeSys V2.3 6-31

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

Saved successfully!

Ooh no, something went wrong!