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.

6 - The Resources<br />

Create a Global Variable List<br />

To create a Global Variable List, open the register 'Resources' in the Object Organizer and select the<br />

entry 'Global Variables' or select an already existing list. Then choose the command 'Project' 'Object'<br />

'Add' to open the dialog Global variable list.<br />

This dialog can also be opened by the command 'Project' 'Object' 'Properties' which is available if an<br />

existing Global Variable List is marked in the object organizer. It shows the configuration of this list..<br />

Dialog to create a new Global Variable List<br />

Name of the global variable list: Insert a list name.<br />

Link to file:<br />

Filename: If you have an export file (*.exp) or a DCF file, which contains the desired variables, you<br />

can set up a link to this file. To do this, insert the path of the file in the field Filename resp. press the<br />

button Browse to get the standard dialog 'Select text file'. DCF files are converted to ICE syntax when<br />

they are read in.<br />

Activate option Import before compile, if you wish that the variable list will be read from the external<br />

file before each compilation of the project. Activate the option Export before compile, if you want the<br />

variable list to be written to the external file before each compilation of the project.<br />

If you close the 'Global variable list' dialog with OK, the new object is created. Network global<br />

variables lists can be recognized in the Object Organizer by the symbol<br />

. With the command<br />

CoDeSys V2.3 6-3

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

Saved successfully!

Ooh no, something went wrong!