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.

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

'New Folder'<br />

With this command a new folder is inserted as a structural object. If a folder has been selected, then<br />

the new one is created underneath it. Otherwise it is created on the same level. If an action is<br />

selected, the new folder will be inserted at the level of the POU to which the action belongs.<br />

The context menu of the Object Organizer which contains this command appears when an object or<br />

the object type has been selected and you have pressed the right mouse button or +.<br />

The newly inserted folder initially has the designation 'New Folder'. Observe the following naming<br />

convention for folders:<br />

• Folders at the same level in the hierarchy must have distinct names. Folders on different levels can<br />

have the same name.<br />

• A folder can not have the same name as an object located on the same level.<br />

If there is already a folder with the name "New Folder" on the same level, each additional one with this<br />

name automatically receives an appended, serial number (e.g. "New Folder 1"). Renaming to a name<br />

that is already in use is not possible.<br />

'Expand nodes' 'Collapse nodes'<br />

With the command expand the objects are visibly unfolded which are located in the selected object.<br />

With Collapse the subordinated objects are no longer shown.<br />

With folders you can open or close them with a double mouse click or by pressing .<br />

The context menu of the Object Organizer which contains this command appears when an object or<br />

the object type has been selected and you have pressed the right mouse button or +.<br />

'Project' 'Object Delete'<br />

Shortcut: <br />

With this command the currently selected object (a POU, a data type, a visualization, or global<br />

variables), or a folder with the subordinated objects is removed from the Object Organizer and is thus<br />

deleted from the project<br />

For safety you are asked once more for confirmation.<br />

If the editor window of the object was open, then it is automatically closed.<br />

If you delete with the command 'Edit' 'Cut', then the object is parked on the clipboard.<br />

'Project' 'Object Add'<br />

Shortcut: <br />

With this command you create a new object. The type of the object (POU, data type, visualization, or<br />

global variables) depends upon the selected register card in the Object Organizer. Enter the Name of<br />

the new POU in the dialog box which appears. Remember that the name of the object may not have<br />

already been used.<br />

Take note of the following restrictions:<br />

• The name of a POU can not include any spaces<br />

• A POU can not have the same name as another POU, or a data type.<br />

• A data type can not receive the same name as another data type or a POU.<br />

• A global variable list can not have the same name as another global variable list.<br />

• An action can not have the same name as another action in the same POU.<br />

• A visualization can not have the same name as another visualization.<br />

In all other cases, identical naming is allowed. Thus for example actions belonging to different POUs<br />

can have the same name, and a visualization may have the same as a POU.<br />

4-42 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!