Enabling Tree View in SIMATIC Manager LAD/FBD/STL Editor

David Krause13 min read
HMI ProgrammingSiemensTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview

The SIMATIC Manager is the central engineering tool for STEP 7 V5.x projects targeting SIMATIC S7-300, S7-400, and WinAC controllers. Inside the LAD/FBD/STL editor, blocks are organized as numbered networks (NW1, NW2, ...). Beginning with STEP 7 V5.5+SP3, the SIMATIC Manager supports an expandable tree-style header for networks so each title block can be collapsed or expanded individually instead of scrolling through a long linear list. This article documents the minimum Service Pack required for the tree view, the LAD/FBD/STL language-switching paths that ship with V5.5 SP4, and the editor constraints that prevent STL networks from being displayed as LAD or FBD.

Throughout this reference the term "tree view" refers specifically to the (+)/(-) icons next to each network title in the LAD/FBD/STL editor (also called the Program Editor). It does not refer to the project tree of the SIMATIC Manager itself, which has always been a tree structure.

Minimum STEP 7 Version Required

The expandable network tree view is not exposed as a configurable toggle in early STEP 7 V5.5 builds; it is delivered with a specific Service Pack update. The relevant version thresholds for the LAD/FBD/STL editor are summarized in the table below.

STEP 7 Build Editor Behavior Notes
V5.5 (base) Linear network scrolling only; no per-network expand/collapse on the title bar. Initial release; ships on the STEP 7 V5.5 DVD.
V5.5 SP1 Identical to base. Cumulative hotfix baseline; no tree view.
V5.5 SP2 Identical to base; user-installed SP2 reports (+) icon absent on every title. This is the build most often reported with the symptom "missing tree view".
V5.5 SP3 First build that exposes the (+)/(-) icons next to each network title. Installable as an in-place upgrade over V5.5 SP2.
V5.5 SP4 Adds the View menu language toggle and the Ctrl+1 / Ctrl+2 / Ctrl+3 shortcuts to switch the open block between LAD, FBD, and STL. Also includes cumulative hotfixes for SP3 issues.
V5.5 SP5 / SP6 / SPx (x ≥ 5) All later service packs retain both features. Required only when installing a hotfix flagged in the SIOS HF list.

If the editor displays every network fully expanded and no (+)/(-) symbol appears at the network title, confirm the installed build with SIMATIC Manager > Help > About. The required update is the STEP 7 V5.5 SP3 (or later) installation package from the Siemens Industry Online Support (SIOS) portal. SP3 is applied over an existing V5.5 SP2 install without re-engineering the project — close all SIMATIC components first and run the setup with administrative privileges.

Mixing installation media invalidates the build. Do not pair a STEP 7 V5.5 Professional 2010 SP3 DVD with a STEP 7 V5.5 base install on the same workstation — the editor binaries will be reverted to the base level and the tree view silently disappears. Use a single DVD set throughout.

Enabling the Expand/Collapse Network View

Once the minimum Service Pack is in place, the tree-style header is shown by default inside the LAD/FBD/STL editor. There is no registry key, project option, or "Options > Customizing" checkbox that turns the feature on or off; the presence of the (+)/(-) icons is the verification. Use the procedure below to confirm it on your installed environment.

  1. Open the SIMATIC Manager and load the S7 project from the project tree (offline or online).
  2. Browse to S7 Program > Blocks and double-click an OB, FB, or FC whose editor window contains more than ten networks so the tree depth is visible.
  3. Inspect the left margin of the network title bars. A small box with either (+) or (-) must appear at the vertical position of each title.
  4. Click the (-) box on the second network. The corresponding network body collapses to a single title line; the icon flips to (+).
  5. Click (+) on the same network. The body returns; the icon flips back to (-).
  6. Right-click any title bar to confirm the context menu still offers Insert Network, Delete Network, Go To > Location, and Properties.
  7. Repeat the test on two more blocks (an FB and an FC) to validate that tree view applies across all program-block types, not only OBs.

If any of these steps fails on a workstation that reports V5.5 SP3, the SIMATIC Manager executable has not been updated even though the framework reports a higher build. Re-run the SP3 setup with administrator privileges, restart the PC, and verify the file version of S7WUIEX.DLL against the version stamped on the DVD.

Switching Between LAD, FBD, and STL Editors

STEP 7 V5.5 SP4 introduced direct switching of the active block's editor between the three representations supported by SIMATIC. The two access paths are summarized below.

  • View menu — Inside the LAD/FBD/STL editor, choose View > LAD, View > FBD, or View > STL.
  • Keyboard shortcut — Press Ctrl+1, Ctrl+2, or Ctrl+3 while the LAD/FBD/STL editor window has keyboard focus.

The Siemens support thread used for this article explicitly identifies that V5.5 SP4 added Ctrl+1/2/3 as the language-toggle shortcut, but the exact mapping (whether Ctrl+1 selects LAD, FBD, or STL) is not stated in the user-visible documentation that the question thread references. If a specific assignment is required for a controlled document or training material, validate it on the installed Help system under Hotkeys before publishing.

Representation Use Case Display Form IEC 61131-3 Equivalent
LAD (Ladder Diagram) Discrete control logic, coil/contact topology, electrical wiring diagrams. Vertical rungs with contacts and coils. Ladder Diagram (LD).
FBD (Function Block Diagram) Boolean algebra, signal-flow diagrams, arithmetic function blocks. Boxes connected by signal-flow lines. Function Block Diagram (FBD).
STL (Statement List) Low-level mnemonic programming, indirect addressing, conditional jumps. Text-based instruction list similar to assembly. Instruction List (IL).

After switching, the SIMATIC Manager records the last representation per block in the project database; reopening the block shows the view that was active when the project was last saved. The view setting is per-block — block A may be in LAD while block B is in STL within the same station.

When the user clicks View > LAD on a block whose source view is STL, the menu item remains selectable but the editor does not change the displayed body. The block keeps its STL representation. See the next section for the constraint that drives this behavior.

STL Display Constraints

A common source of confusion on mixed-discipline teams is that a single network written in STL cannot be displayed in LAD or FBD. This is enforced by the SIMATIC Manager and is not a user error. The rule set, derived from the Siemens FAQ entry Why can you not display an STL program in FBD or in LAD?, is summarized below.

  • STL is the textual representation defined by IEC 61131-3 (Instruction List); LAD and FBD are graphical representations (LD / FBD). The STEP 7 compiler generates the active view from the source view.
  • STL source cannot be reverse-engineered to the original LAD/FBD layout — the graphical source program no longer exists once the block has been saved in STL.
  • If a block is saved in STL, the View > LAD and View > FBD commands are effectively no-ops for that block; the editor remains in STL.
  • Mixed-mode display is impossible: two different representations cannot be shown simultaneously for the same set of networks. The active block has a single current view setting.
  • Switching from LAD or FBD into STL is allowed at any time; switching back to LAD/FBD only works when STL was never used to edit the same block.
When documentation or QA requires LAD/FBD visualization for review, re-author the affected block from scratch in the target representation. Do not attempt to convert an STL block via copy/paste, source export/import, or version comparison — the resulting block remains an STL block. Plan re-authoring effort before initiating regulatory or customer-side reviews.

Saving the Window Arrangement

Engineers who toggle between language views and editor sizes frequently want the layout (split panes, docked toolbars, watch tables attached to the OB window) restored automatically across sessions. The arrangement behavior in the SIMATIC Manager, the LAD/FBD/STL editor, and HW Config is described in the Siemens KB article How can the window arrangement be saved in the SIMATIC Manager, the LAD/STL/FBD editor, and in the hardware configuration?. Use the table below as a quick reference.

Component Save Path Restoration Behavior
SIMATIC Manager (project view) Close the project — arrangement persists in the project database. Reopens with the previously docked window set.
LAD/FBD/STL editor Close the block — layout is stored alongside the block. Restored on next double-click of the block.
HW Config (station) Save station (Ctrl+S) — arrangement is written to the station data. Re-opened station uses the saved layout.
Watch table / VAT Save table (Ctrl+S) inside the watch table — arrangement written to the table object. Restored when the table is opened from the project tree.

Stored arrangements are user-specific on Windows 7 / 10 / 11 because the SIMATIC Manager stores them in the per-user profile. When project files are shared between engineers, expect docked windows, watch tables, and zoom levels to be re-applied per workstation.

Block Types and Network Organization

The tree view is implemented identically across OB, FB, FC, and DB types — only the editable content differs. A few structural points are worth keeping in mind when the block has a long network list.

Block Type Editable Content Tree View Effect
OB (Organization Block) Main, cyclic, interrupt, startup, and error OBs — structured networks of contacts/coils or boolean/textual logic. Tree depth grows with OB complexity; collapse long OBs for review.
FB (Function Block) Code with associated instance DB; supports multi-instance / static variables. Same (+/-) icons; large FBs benefit most from collapsing.
FC (Function) Pure code without instance data; parameters only via the IN/OUT/IN_OUT interface. Same (+/-) icons; commonly used for STL because no static memory is needed.
DB (Data Block) Variable declarations (not networks of executable code). DBs are not opened in the LAD/FBD/STL editor at all; tree view does not apply.

Hotkey and Menu Reference

The shortcut set below is required during daily editing. Provide it to new team members as part of workstation onboarding.

Action Shortcut Location / Requirement
Switch open block to a different language view Ctrl+1 / Ctrl+2 / Ctrl+3 LAD/FBD/STL editor with focus — requires STEP 7 V5.5+SP4.
Toggle expand/collapse network body Click (+/-) icon on network title Requires STEP 7 V5.5+SP3.
Insert network above selection Right-click network → Insert Network LAD/FBD/STL editor.
Delete selected network Shift+F8 (or right-click → Delete Network) LAD/FBD/STL editor.
Save window arrangement Close project / save block Project tree / block context menu.
Save LAD/FBD/STL editor work Ctrl+S LAD/FBD/STL editor with focus.
Reload the active view from disk Right-click block → Reload Project tree.

TIA Portal Comparison

Engineers migrating projects from STEP 7 V5.x to TIA Portal will recognize the FBD programming language defined by IEC 61131-3. The TIA Portal documentation describes FBD as a graphical language whose representation is based on the graphical logic symbols used in Boolean algebra — the same underlying model used by the SIMATIC Manager. The TIA Portal program editor always renders the tree of networks in a collapsible form (each network has its own header on the Project navigation pane), so the V5.5 SP3 feature is the historical equivalent of the structure available in current TIA Portal versions. When migrating:

  • Blocks authored in STL in V5.5 cannot be migrated to TIA Portal as LAD/FBD — the same STL constraint applies because TIA Portal uses the same source-view / display-view split as the V5.x editor.
  • Network titles and comments are preserved during migration; the collapsed/expanded state of each network is not preserved.
  • Hotfixes and Service Packs do not exist in TIA Portal in the same form — TIA Portal updates are version-based (V13 / V14 / V15 / V16 / V17 / V18 / V19) rather than SP-cumulative.

Troubleshooting Matrix

The matrix below maps the most common reported symptoms to root cause and corrective action.

Symptom Likely Cause Corrective Action
(+)/(-) icon absent on every network title. STEP 7 V5.5 SP2 or earlier installed. Apply STEP 7 V5.5 SP3 setup and reboot.
(+)/(-) icon present, but body does not collapse on click. Hotfix (HF) list not applied to the editor DLL. Install the latest cumulative hotfix from SIOS for V5.5 SP3/SP4.
View > LAD/FBD commands greyed out. Active block source view is STL; reverse conversion not supported. Re-author the block in LAD/FBD or accept STL display.
Keyboard shortcuts Ctrl+1/2/3 do nothing. Editor window does not have focus, or input map overridden. Click in the network body, retry; check Options > Customizing > Keyboard.
Layout resets every morning. User profile rotated by IT policy. Request persistent roaming profile; otherwise re-dock daily.
Wrong tree view appears after SP3 install. Project was migrated from TIA Portal via .s7z/.s7p migration. Re-open source project with original SIOS build; do not migrate mid-cycle.
Tree view works in OB1 but not in a particular FB. FB content size exceeds GUI threshold and tree depth was disabled by hotfix. Apply latest hotfix; consider splitting the FB.

Verification Procedure

After installing the Service Pack and re-opening the project, run the following end-to-end check before signing off the workstation.

  1. Confirm the installed build: Help > About > Installed Products must list STEP 7 V5.5+SP3 (or higher) and the Service Pack must match the DVD label.
  2. Open an OB with at least twenty networks and visually confirm the (+)/(-) icons.
  3. Collapse five networks; close the OB; reopen it; the five networks must still be collapsed.
  4. Press Ctrl+1, Ctrl+2, and Ctrl+3 in an FC written in LAD; confirm three view changes occur.
  5. Re-author a small FC in STL; confirm that Ctrl+1 and Ctrl+2 no longer change the view.
  6. Close the project, reopen it, and verify the docked window positions match the previous session.
  7. Document the hotfix list applied (HFx …) in the project change log so future audits can reproduce the build.

Field Commissioning Notes

  • On a commissioning laptop traveling between sites, carry the SP3/SP4 DVD separately and verify Help > About on arrival. A fresh Windows image often drops back to the V5.5 base level.
  • When the project uses both STL and LAD/FBD blocks (common in retrofit work), tag the STL blocks in the project documentation so QA knows not to request a LAD/FBD rendering.
  • Re-author STL blocks in LAD during normal working hours when the customer is available — re-authoring unblocks regulatory reviews but requires source-redrafting of every network.
  • For very long FBs (multi-hundred network) the tree-view collapse reduces scroll time but does not change the on-disk block size; the editor is the same memory footprint under SP3/SP4 as under earlier V5.5.
  • Block naming — the tree view does not affect the block name or path; collapse/expand state is purely a UI cache.

Frequently Asked Questions

Which STEP 7 V5.5 Service Pack first introduced the expand/collapse network tree view?

STEP 7 V5.5+SP3 is the first build where the (+)/(-) icons next to the network title bar appear. STEP 7 V5.5 base and SP2 do not display the icons regardless of in-editor options.

Can I switch a block between LAD, FBD, and STL while it is open?

Yes — in V5.5+SP4 use the View menu or press Ctrl+1 / Ctrl+2 / Ctrl+3. The exact mapping of each digit key is not stated in the source thread; confirm via Help > About > Hotkeys on the installed workstation before publishing a procedure.

Why does my STL block refuse to display in LAD or FBD?

STEP 7 V5.x cannot reverse-compile STL source back into a graphical view. STL blocks retain STL permanently unless they are re-authored from scratch in LAD or FBD. See the Siemens FAQ ID 16726454 for the official reason.

Can two networks in the same block be shown simultaneously as LAD and STL?

No. A block has a single active representation. Mixed-mode display (some networks in LAD, others in STL) is not supported by the LAD/FBD/STL editor at any Service Pack level.

How do I save the SIMATIC Manager window layout between sessions?

Close the project after arranging the docked windows. The layout is written to the user profile and restored on the next project open. Workspace persistence is documented in Siemens KB article 11703726 and applies separately to the SIMATIC Manager, the LAD/FBD/STL editor, and HW Config.

Back to blog