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.

<strong>PLC</strong> Configuration<br />

All modules starting with the one, which is currently selected in the configuration tree, will be<br />

regarded.<br />

Return to standard configuration, 'Extras' 'Standardconfiguration'<br />

The command 'Extras' 'Standardconfiguration' can be used to restore the original <strong>PLC</strong> configuration,<br />

which is defined by the configuration file and saved in the project.<br />

Converting of old <strong>PLC</strong> configurations, 'Extras' 'Convert'<br />

This command is available in the menu 'Extras' if you open a project containing a <strong>PLC</strong> configuration,<br />

which was created with an older CoDeSys version than V2.2. If all needed configuration files are<br />

available, the command 'Convert' will transfer the existing configuration into the format of the actual<br />

<strong>PLC</strong> configuration. A dialog will open which asks "Convert the configuration to the new format <br />

Attention: Undo is not possible !" You can select Yes or No. If you close the dialog with Yes, the<br />

configuration editor will be closed also. Reopen it and you will see the configuration in the new format.<br />

Be aware that after having converted the old format cannot get restored anymore !<br />

6.5.2 General Settings in the <strong>PLC</strong> Configuration<br />

Select the entry '<strong>PLC</strong> configuration' ('root' module) at top of the configuration tree. Thereupon the<br />

dialog 'Settings' is shown in the right part of the window:<br />

Calculate addresses: Each newly inserted module automatically is allocated with an address, which<br />

results from the address of the module inserted before plus the size of this address. If a module is<br />

removed from the configuration, the addresses of the following modules are adjusted automatically.<br />

When the command 'Extras' 'Compute addresses' is executed, all addresses starting at the selected<br />

node (module) will be recalculated.<br />

Check for overlapping addresses: At compilation the project will be checked for overlapping<br />

addresses and a corresponding message will be displayed.<br />

Dialog for the general Settings of the <strong>PLC</strong> configuration<br />

The global mode of addressing (flat addresses / addresses depending on Id) in the <strong>PLC</strong> configuration<br />

is defined in the configuration file.<br />

6.5.3 Custom specific parameter dialog<br />

The parametrizing possibilities of the configurator can be expanded by the use of an applicationspecific<br />

DLL, that is an individual dialog. This 'Hook'-DLL must be in that directory which contains the<br />

configuration file and then can be linked by an entry in the configuration file.to a module or channel. If<br />

done so, for the concerned modules the standard dialog 'Modulparameter' will be replaced by a dialog<br />

defined in the DLL.<br />

6-14 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!