IMDHMIControls LibraryShop main store

How-to

Ladder mixed display line allocation hides address fields

PLC programming Published 8 min read

Short answer

Set the address line count to 0 under Tools > Project Settings > Program > Languages > LD > Mixed Display and each ladder rung draws only the symbol and comment; the counts are project-wide. A Project. prefix inside the name is a DFB scope qualifier, removed only by passing the variable through an input or in/out pin.

On this page
  1. Where does Control Expert control what a ladder rung displays?
  2. How do you hide the address field so only the name and comment show?
  3. Example: how many editor lines does a name-and-comment layout save?
  4. How do you get multi-line comments, say 15 characters per line?
  5. Why does the name still show Project. after the address is hidden?
  6. How do you replace a Project-qualified name with a DFB pin?
  7. What should you check after changing the project-wide display settings?
  8. Questions asked

Both halves of this have answers, and they are two different settings. In EcoStruxure Control Expert, the comment, the symbolic name, and the controller address that hang off a ladder operand each get their own line count under Tools > Project Settings > Program > Languages > LD > Mixed Display; set the address count to 0 and the rungs draw only name and comment. The Project. you see in front of a name such as Project.PE02_1 is not that address field: it is a scope qualifier marking a reference from inside a DFB out to a project variable, and no display setting removes it — the block has to take the variable through a pin instead. This article walks the whole job: hiding the address field, sizing the comment lines, reading the qualifier, and wiring the pin that makes it go away.

Where does Control Expert control what a ladder rung displays? #

The project's Mixed Display page — Tools > Project Settings > Program > Languages > LD > Mixed Display — holds a separate line count for the comment, for the symbol, and for the address, and each count is an integer you set independently of the other two.

A ladder operand can draw three text fields at once: its comment, its symbolic name, and the controller address behind it. The counts reserve editor lines for those fields; nothing else about the operand changes. Because the page sits in Project Settings, one edit covers every LD section in the program, not just the rung stack you were staring at. It is also fully reversible: put a count back and the field returns, with nothing else in the project disturbed.

How do you hide the address field so only the name and comment show? #

Set the address line count to 0 in that dialog while keeping at least one line for the symbol and the comment, and every ladder section in the project stops drawing the separate address field.

Work it in this order:

  1. Open a ladder section that shows all three fields and pick one operand to watch — a contact named PE02_1 is a good test case, because it draws a comment, an address, and a symbol together.
  2. Open Tools > Project Settings > Program > Languages > LD > Mixed Display and read the three current line counts.
  3. Change only the address count; leave the symbol and comment counts at their current values so names and comments keep the space they had.
  4. Confirm the dialog and reopen the section: the watched operand now draws its symbol and its comment, and the separate address field is gone.
  5. Check two or three other sections too, including your densest rung stack, because the change reaches well beyond the section you opened.
  6. If the target is the name alone, bring the comment count down the same way and leave the symbol count untouched.

A count pulled down to nothing suppresses the drawn field; it deletes neither the comment text nor the address itself. The variable keeps its address, and the controller never notices — only the editor stops printing it.

Example: how many editor lines does a name-and-comment layout save? #

Choose 1 symbol line, 2 comment lines, and 0 address lines and each operand draws 3 text lines instead of the 4 it draws with the address kept, so a 10-rung section with 2 operands per rung reserves 60 editor lines instead of 80.

Run it on allocations you enter, not vendor defaults:

  • Lines per operand, name-and-comment layout: 1 symbol + 2 comment + 0 address = 3 lines.
  • Lines per operand with the address kept: 1 + 2 + 1 = 4 lines.
  • One rung with a contact and a coil, 2 operands: 2 × 3 = 6 lines against 2 × 4 = 8.
  • A 10-rung section: 10 × 6 = 60 lines on screen against 10 × 8 = 80.
  • Saving: 80 − 60 = 20 lines, and at 6 lines per rung that is 20 ÷ 6 ≈ 3 extra rungs in view.

Push the comment allocation to 3 and the math follows it: 1 + 3 = 4 lines per operand with the address still suppressed, and the 10-rung section is back to 80 — comment space you grant is rung visibility you spend. Read the per-operand total off your own dialog before trusting the rung count on your screen.

How do you get multi-line comments, say 15 characters per line? #

The comment count sets height, not width: there is no field in that dialog for characters per line, so a 15-character line shape comes from raising the count to 2 or 3 and writing the comment to fit the wrap the editor chooses.

Test with the longest comment in the section, not a short one — a thin allocation that flatters a note like "pump ready" will still mangle a sentence about interlocks. If a comment reads badly at any reasonable count, shorten the text instead: one clause per line, one device per clause. And if the rungs stay cramped once the layout is honest, the language is the next decision, not the layout — the guide on which IEC 61131-3 PLC language to use for each control task sorts ladder against function block and structured text by the job.

Why does the name still show Project. after the address is hidden? #

Because Project.PE02_1 is not the address field — the Project. part is a scope qualifier the editor prints when a section inside a DFB reads or writes a variable that belongs to the project outside that block, and no line count can touch it.

Check where the section lives before you edit the operand. Inside a DFB, the qualified name means the block's logic reads or writes a variable that belongs to the project outside the block — that is the entire story of the prefix, and it is information, not clutter. The drawn address and the qualifier are unrelated: one is what the editor shows, the other is what the code means, so masking the drawn text never shortens the name, and hand-stripping the qualifier can change name resolution or break the build. If no DFB sits above the section, open the variable's declaration first — the qualifier is telling you the reference is not the local name it appears to be.

How do you replace a Project-qualified name with a DFB pin? #

Add an input pin when the block only consumes the variable or an in/out pin when the block must also write it, connect the project variable at each call, and the block's own logic then uses its interface name, so the qualifier disappears.

Decide by data direction:

What the block does with the variable Pin to add Check before editing
Consumes the value only Input Pin type matches the variable, and every call site can supply it
Reads it and writes it back In/out Every caller accepts the block changing its variable
Direct project access is deliberate None — keep the qualified name The coupling is documented so the next engineer keeps it

An in/out pin passes the caller's variable by reference, so the block writes through to it — the comparison of in versus in/out DFB array passing on M580 hardware shows both behaviors at the call.

  1. Open the DFB's interface, add the pin, and type it to match the external variable; the local name is yours to choose — Level_PV in this worked case.
  2. Replace every Project.PE02_1 reference in the block body with the pin name.
  3. Connect PE02_1 to the pin at every call site of the block.
  4. Build the project and clear unresolved-name and type errors before testing anything.

This is a program change, unlike every display edit above: prove the modified block on a bench setup or a stopped line before you download it to a machine that runs. If the block is headed for Machine Expert later, the walkthrough on migrating derived function blocks to Machine Expert is written for exactly that move.

What should you check after changing the project-wide display settings? #

Reopen three ladder sections — the one you started from, your densest rung stack, and any section someone else maintains — and confirm the symbol still reads, the comment still fits, and nothing you need during a breakdown has been hidden with the address.

  • The build is unchanged. Line allocations are editor presentation, so the project compiles to the same executable and nothing new goes down to the controller — no rebuild, no download, no retest of logic.
  • The other sections still read. Symbols visible, comments whole, and no section lost something a technician needs mid-shift because the layout was tuned around one rung stack.
  • The pin change, if you made one, is the exception: it changed the program, so it rides the build, the download, and the bench test from the previous section.

End state, case by case: address field unwanted — the address count goes to nothing and stays there; comment too tall or clipped — size the comment count and write the text to the wrap; qualifier on a name inside a block — add the pin the data direction calls for; deliberate project-scope access — keep the qualified name and document why. Everything else is presentation, and it comes back the moment you raise a count.

Questions asked

Will the line counts I choose follow the project to another engineer's seat?

Yes. The allocations live in the project's settings, so the rung layout travels with the project file rather than with the PC that edited it. A colleague opening the same project sees your counts, and if they raise one back, that change belongs to the project too.

Can I still search for an operand after hiding its address line?

Yes. The hidden line is drawing only; the address stays attached to the variable in the project data. Press Ctrl+F and search for the address, or right-click an address elsewhere in the project and use Find All References, and the editor still lists every rung that uses it.

Is this dialog the same in releases still named Unity Pro?

Yes. The package shipped under the Unity Pro name before the Control Expert rename, and Tools > Project Settings is the same hub there — look for the ladder display options in that same tree rather than in a per-section menu.

Do the line counts apply to function block diagram sections too?

No. The Mixed Display page sits under the LD branch of Program > Languages, so it governs ladder sections; each language has its own branch in that same tree. A count you change for ladder does not rewrite how function block or structured text sections draw.

Keep reading

  • How-to

    Build a siren pulse count sequence in S7-1200 ladder logic

    Use a positive-edge request to load a target of 3, 2, or 1 pulses, then run a four-state ladder sequence — idle, start, stop, count — that drives Q6.2 (START) and Q6.1 (STOP) from separate states so the two SIMOCODE Pro V commands never overlap. With a 2.0 s on-time and a 1.0 s gap, the three patterns finish in 11.0 s, 7.0 s, and 3.0 s.

    PLC programming

  • How-to

    How to build ladder logic practice projects in STEP 7

    Get STEP 7 ladder practice projects from the vendor's own support portal and from the samples the installer already placed on your PC, not from a copy of a book's bundled disk. Then rebuild three circuits yourself: a start/stop latch with overload interlock, an on-delay timer sequence, and an up/down counter.

    PLC programming

  • How-to

    How to OR a comparator with a contact in Machine Expert HVAC ladder

    Machine Expert - HVAC will not build a GT comparator block inside a ladder parallel branch. Get the same Boolean OR by splitting the logic across two networks or by replacing the block with an expression combined through an OR block, then verify all four input combinations before download.

    PLC programming