Project Tree - Overview

 

The project tree is used to edit the project structure.

Program Organization Units (POUs)

A POU consists of three or more worksheets:

ico_ToggleVarWS.gif 

Double-clicking a tree icon opens the worksheet in the related editor. The various tree icons are described in the table below. Local variables worksheets can alternatively be opened by first opening the related code worksheet and then pressing <Ctrl> + <D> or clicking the 'Toggle WS' toolbar icon.

iconGlobalDecl.gif

The declaration worksheet for global variables has no icon in the project tree. To open this worksheet, click the 'Global decl.' icon on the toolbar.

Using the 'Find' dialog you can search for tree objects.

After verifying the code of a POU, the particular POU can be marked as verified via context menu. When the verification flag is set, the POU is write-protected and shown with a different tree icon (see table below). Refer to the topic "POU Verification" for further information.

Icons in the project tree

Icon

Meaning

help0036.gif

Included library, contained in the 'Libraries' folder.

help0039.gif

POU type program, contained in the 'Logical POUs' folder.

A safety-related project contains only one program POU which is automatically inserted during project creation. The name of this POU is always 'Main' and cannot be modified.

The 'Main' POU can contain a maximum of 16 code worksheets.

help0040.gif

POU type function block, contained in the 'Logical POUs' folder.

Every FB POU can contain a maximum of 16 code worksheets.

ico_Description.gif

Description worksheet for documentation purposes.

ico_VariablesWorksheet.gif

Local variables worksheet, containing the local variable declarations of the respective POU.

ico_LDCodeWorksheet.gif

Code worksheet programmed in the graphical IEC 61131 programming languages FBD/LD.

A maximum of 16 code worksheets is possible.

ico_VerifiedPOUs.gif

Verified FB POU (left icon) or program POU (right). Verified POUs are write-protected. Refer to the topic "POU Verification" for further information.

Managing Objects in the Project Tree

NOTE:

EcoStruxure Machine Expert - Safety provides a certification manager for certifying the completed project after successful commissioning. A certified project is protected by password against modifications. (Such modifications would result in a new project acceptance procedure and certification.)

If you can't edit the project although you are logged-on correctly, verify whether the project is already certified. This is indicated in the status bar (rightmost):

Statusbar_CertificationOn.GIF 

Refer to the topic "Project certification" for detailed information.

Selecting more than one object in the project tree

  • Left-click the desired first object icon.

  • To select several adjacent icons, hold the <Shift> key down when left-clicking the last desired POU icon.

  • To select several non-adjacent icons, hold the <Ctrl> key down while clicking each desired POU icon.

  • To deselect a selected icon, hold the <Ctrl> key down while clicking the icon again.

NOTE:

The program POU 'Main' cannot be cut, copied or deleted.

Deleting objects

  1. Select the objects (tree icons) as described above.

  2. Select 'Edit > Delete' or press <Del>. A message dialog appears to confirm or abort the deletion.

    NOTE:

    After having confirmed the message dialog, there is no way of restoring the data.

    NOTE:

    • Within every POU, at least one code worksheet must be available. Therefore, the last remaining code worksheet in a POU cannot be deleted.

    • Variables worksheets cannot be deleted.

Copying and pasting objects

This procedure also applies to individual code worksheets: code work­sheets can be copied between different POUs. Variables worksheets cannot be copied.

  1. Select the objects (tree icons) as described above.

  2. Select 'Edit > Copy' or press <Ctrl> + <C>.

    The marked object is copied to the clipboard.

  3. Left-click the tree icon (e.g., POU folder) below which you want to paste the copied object.

  4. Select 'Edit > Paste' or press <Ctrl> + <V>. The copied object is pasted below the selected icon.

Cutting and moving objects

This procedure also applies to individual code worksheets: code work­sheets can be moved between different POUs as long as one code work­sheet remains in every POU. Variables worksheets cannot be moved.

  1. Select the objects (tree icons) as described above.

  2. Select 'Edit > Cut' or press <Ctrl> + <X>. The marked object is copied to the clipboard.

  3. Left-click the tree icon (e.g., POU folder) below which you want to paste the object.

  4. Select 'Edit > Paste' or press <Ctrl> + <V>. The object is pasted below the selected icon and removed from its origin position.

Click here for related topics