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.

4 - The Individual Components<br />

Refresh Status<br />

Command 'Project' 'Data Base Link' 'Refresh Status'<br />

Use this command to update the display in the Object Organizer, so that you can see the actual status<br />

of the objects concerning the source control of the project.<br />

4.4 Managing Objects in a Project...<br />

Now we shall explain how to work with objects and what help is available to keep track of a project<br />

(Folders, Call tree, Cross reference list,..).<br />

Object<br />

Folder<br />

POUs, data types, visualizations and the resources global variables, the variable configuration, the<br />

Sampling Trace, the <strong>PLC</strong> Configuration, the Task Configuration, and the Watch and Receipt Manager<br />

are all defined as "objects". The folders inserted for structuring the project are partially involved. All<br />

objects of a project are in the Object Organizer.<br />

If you hold the mouse pointer for a short time on a POU in the Object Organizer, then the type of the<br />

POU (Program, Function or Function block) is shown in a Tooltip. For the global variables the tooltip<br />

shows the keyword (VAR_GLOBAL, VAR_CONFIG).<br />

With drag & drop you can shift objects (and also folders, see 'Folder') within an object type. For this,<br />

select the object and shift it to the desired spot by holding down the left mouse button. If the shift<br />

results in a name collision, the newly introduced element will be uniquely identified by an appended,<br />

serial number (e.g. "Object_1").<br />

In order to keep track of larger projects you should group your POUs, data types, visualizations, and<br />

global variables systematically in folders.<br />

You can set up as many levels of folders as you want. If a plus sign is in front of a closed folder<br />

symbol , then this folder contains objects and/or additional folders. With a click on the plus sign<br />

the folder is opened and the subordinated objects appear. With a click on the minus (which has<br />

replaced the plus sign) the folder can be closed again. In the context menu you find the commands<br />

'Expand nodes' and 'Collapse nodes' with the same functions.<br />

With Drag&Drop you can move the objects as well as the folders within their object type. For this<br />

select the object and drag it with pressed left mouse button to the desired position.<br />

You can create more folders with the command 'New folder'.<br />

Note:<br />

Folders have no influence on the program, but rather serve only to structure your project clearly.<br />

Example of folders in the Object Organizer<br />

CoDeSys V2.3 4-41

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

Saved successfully!

Ooh no, something went wrong!