IMDHMIControls LibraryShop main store

How-to

ControlLogix tag layout that keeps Citect SCADA reads light

PLC programming Published 9 min read By IMDHMI controls team

Short answer

Give Citect one controller-scoped exchange area in the ControlLogix: DINT arrays for packed status and command bits, REAL arrays for analog values, and UDTs where named members help. The layout lets the driver fetch related words in a few block reads, splits fast points from slow trends, and keeps control logic independent of the display.

On this page
  1. Why does Citect make the ControlLogix look busy?
  2. What layout replaces the SLC-style data file?
  3. How do you pack status and command bits into DINT words?
  4. Where do analog values and setpoints go?
  5. Which points should Citect poll fastest?
  6. How do you prove the layout before go-live?
  7. What breaks the layout after commissioning?
  8. Questions asked

Treat the Citect connection as a designed interface, not a browse through the controller's tag database. Put every SCADA-facing value in one controller-scoped exchange area — DINT arrays for packed status and command bits, REAL arrays for analogs — and split fast points from slow trends in the Citect scan configuration. That is the modern answer to the SLC and PLC-5 habit of parking all panel data in one data file: ControlLogix has no file numbers, but a named array such as HMI_Inputs with ten DINT elements concentrates the same data, and the driver can fetch it in a few large reads instead of hundreds of scattered ones. This article gives the layout, the arithmetic, the bit-packing rules, the scan-time split and the verification sequence that proves the result under load.

Why does Citect make the ControlLogix look busy? #

It usually does not: logic execution and communications are separate jobs in a ControlLogix controller, so slow panel updates point first at the volume, grouping and rate of Citect's reads, not at the ladder scan or at controller memory size.

Logic execution follows the scheduled tasks, programs and routines you configured. A tag that no instruction touches costs storage and adds nothing to scan time, which is why adding controller memory cannot fix a panel that updates slowly — memory is not the mechanism.

Citect generates its own work when it requests tags. The load depends on which values it asks for, how often, whether the addresses can merge into block reads, and how many clients are active. A controller can carry that traffic all day and still look slow at the display if the bottleneck sits in the driver, the network or the graphics processing.

The first diagnostic decision: watch task execution in the controller while the panel updates. If task times hold steady, the ladder is not the fault — work outward through controller communications, the network, the Citect driver and the display. If they degrade, fix that first, because no tag layout survives a controller that cannot keep its own schedule.

What layout replaces the SLC-style data file? #

Use one controller-scoped exchange area built from DINT arrays and, where named members help, user-defined types: for example HMI_Inputs declared as DINT[10] for indications, HMI_Commands as DINT[2] for operator commands, and HMI_Analogs as REAL[16] for process values and setpoints.

The habit being replaced is the legacy word block such as B10:0 through B10:10 — same idea, named tags instead of file numbers. Run the arithmetic before you create a tag, because it decides whether the area can carry the panel:

  • HMI_Inputs : DINT[10] is ten elements, indexed 0 through 9, each 32 bits: 10 × 32 = 320 indication bits.
  • HMI_Commands : DINT[2] is two words: 2 × 32 = 64 command bits, with 24 assigned here to twelve pumps (a start and a stop bit each) and 40 documented as spares.
  • HMI_Analogs : REAL[16] is sixteen floats: 16 × 4 bytes = 64 bytes, one element per analog point.
  • The whole area totals (10 + 2 + 16) × 4 bytes = 28 × 4 = 112 bytes — small enough for the driver to cover in a handful of contiguous block reads.

This sizing is an example for a small-to-mid panel; scale the element counts to your point list and keep the spare capacity deliberate rather than accidental.

Three rules make the area an interface instead of a dumping ground. Scope it at controller level, not program level, so Citect and any other client see exactly the same names. Keep commands and indications in separate arrays, so a display physically cannot write into a status word. Map internal sequencing to the exchange area through explicit copy instructions, so the machine logic never depends on a word an operator can overwrite.

Use a user-defined type when named members make the interface easier to maintain, and a plain DINT array when indexed words fit the Citect mapping better. A UDT is a contract: renaming, reordering or retyping a member is a coordinated change on both sides.

If your architecture puts another server between Citect and the controller, the companion piece on exposing PLC values through guest memory blocks covers that side; this layout is the controller-side half of the same idea.

How do you pack status and command bits into DINT words? #

Pack one direction per word: a 32-bit DINT holds 32 documented points, so group the bits by machine area or function, give every bit one owner and one meaning, and record the assignment in a bit map both teams share.

Packing is where the concentration pays off. A driver that finds sixteen pump statuses in one DINT can request that word once; sixteen scattered BOOL tags share no addresses and cannot merge into anything. The gain lives in the request pattern, not in the type, so do not treat a packed word as proof of a single network read — how Citect groups requests depends on the tag configuration and scan groups on that side. Confirm the actual transaction counts in the controller's communication diagnostics and the Citect I/O device statistics before calling the job done.

Ownership rules, in order:

  • One direction per word. Every bit of HMI_Commands belongs to the display side; every bit of HMI_Inputs belongs to the controller side; the two never share a word.
  • One meaning per bit, in writing. The bit map — element, index, point, direction — lives with the controller project and the Citect configuration, and both teams read the same document.
  • Command behavior decided in the logic. Whether a bit is momentary or maintained, how acknowledgements work, and what happens when conflicting bits arrive are controller decisions, never display-side politeness.

An example assignment for the command words: HMI_Commands[0] bits 0 through 23 carry the twelve pump start/stop pairs, bits 24 through 31 stay documented spares, and HMI_Commands[1] is entirely spare until a revision claims it — 40 spare bits in total.

Where do analog values and setpoints go? #

Keep analogs in their native type: a REAL array such as HMI_Analogs : REAL[16] holds sixteen 32-bit float values — 16 × 4 bytes = 64 bytes — and each setpoint or process value takes its own element, never a bit-packed slot.

Analogs never enter the bit packing. A forced conversion between REAL and DINT buys nothing and adds a scaling and type-conversion fault class to debug later. One element per point, grouped by update need, because that grouping is what the scan split in the next section consumes.

Do the scaling once, in the controller: the exchange area carries engineering units, so Citect, a maintenance laptop and a future historian read the same finished numbers, and nobody re-scales raw counts at the display.

Setpoints travel the command path, not the indication path, and the logic range-checks every one before it reaches a drive or the process — a mistyped display value must hit a clamp in the controller, not the vessel.

Which points should Citect poll fastest? #

Split the area by update need: operator commands, alarm bits and running statuses at one scan time, trends and totals at a much slower one — in the example panel, 60 fast points each second and 276 slow points every ten seconds.

Citect sets the poll rate per variable tag through its scan-time setting, but the split has to exist on the controller side first: alarm and interlock bits grouped into the words an operator acts on, trend and log points grouped into their own elements. Suppose the example area carries 336 scalar points — the 320 indication bits plus 16 analogs — and 60 of them are alarm or status bits an operator answers within a second. Polling those 60 each second instead of all 336 takes 276 points out of the fastest group: 1 - 60/336 = 276/336 = 0.82, an 82 percent cut in what the one-second scan carries. The split is an example, but the method is the decision: count the fast set, then shrink it to the points a person or an algorithm consumes within a second.

Match every remaining group to its consumer — trends at the trend period, totals and diagnostics at the pace reporting actually reads them. No point should poll faster than anything consumes it.

When the SCADA side is ready to consume the arrays, the guide on reading PLC tag arrays in one block request shows the request pattern that keeps an array poll to a single block read.

How do you prove the layout before go-live? #

Verify with the full point set in place, in this order: confirm controller execution is stable, check value-by-value direction and content, add points in groups while watching update times, and exercise writes, reconnects and simultaneous traffic before operators rely on the panel.

  1. Record baseline task execution times with the Citect point set disabled, so every later number has a reference.
  2. Connect a minimal test display. Read one indication group and compare every displayed value — numeric value, unit, bit position — against its controller source.
  3. Write one command at a time. Confirm Citect changes exactly the intended bit in the command array, the logic responds as designed, and no other word moves.
  4. Add the remaining display, alarm and trend points in controlled groups, and after each group check update time and transaction counts in the controller's communication diagnostics. Note any group where either number jumps.
  5. Compare each configured Citect scan time against its consumer — operator, alarm, trend — and slow down anything polling faster than it is read.
  6. Exercise simultaneous commands, changing statuses and moving analogs together, and look for stale indications, overwritten commands, unintended bit changes and type-conversion errors.
  7. Drop and restart the communication path. Confirm the link recovers on its own and no command re-fires because the connection came back.

Go-live decision: the layout passes when every displayed value matches its source, every write lands in one documented bit or element, task execution holds at baseline, and a reconnect recovers without side effects. Save the point map with both the controller project and the Citect configuration so the next engineer inherits one definition, not two.

If indications still freeze or show stale after this work, the fault has moved to timeouts and connection handling; the walkthrough on why HMI values show question marks covers that failure from the communications side.

What breaks the layout after commissioning? #

The layout decays the moment someone bypasses it: a commissioning shortcut that exposes an internal sequence bit, an undocumented spare, or a second client writing into the command word will each undo the concentration you built.

Watch for the five repeat offenders:

  • A commissioning shortcut: an internal sequence bit gets exposed because it is convenient that week. Add explicit diagnostic points when operators need visibility, and leave sequence state internal.
  • An undocumented spare: the unrecorded bit becomes the bit a later revision assigns twice. Every spare stays in the bit map until it is used.
  • A second writer: another client, laptop or test tool writing into the command array competes with the display. Other clients read the exchange area; they do not write to it.
  • A silent UDT change: renaming, reordering or retyping a member breaks the Citect map without breaking the controller build. Treat every UDT edit as a two-sided change released together.
  • Recreated sprawl: the next project phase adds HMI tags outside the exchange area because it is faster that day. The rule stays absolute — everything Citect touches lives in the exchange area.

The standing decision is one sentence: if a value needs to reach the display, it goes through the exchange area with an entry in the bit map; if it does not, the driver never sees it.

Questions asked

Do individual BOOL tags really cost 32 bits each in a ControlLogix?

The controller is a 32-bit machine and moves DINT-sized blocks most efficiently, but the case for packing is not raw memory savings. Packed DINT words give the driver large contiguous data to request together and give every point one documented owner, so the savings that matter appear in the read pattern, not in storage.

Does the same layout help when the client is an OPC server instead of Citect?

Yes. An OPC server or gateway that polls the controller benefits from the same compact interface: fewer, larger items and fast points separated from slow ones. What changes is the client-side addressing and subscription model, not the controller-side layout; the exchange area serves any client that reads it.

How many spare bits should each packed word keep?

Size each word to its natural group, then leave the unused bits documented as spares. In the example layout, 24 assigned command bits in 64 available bits leave 40 spares, enough to add a dozen points through two revisions without touching the Citect map. A word filled to 100 percent forces a remap at the first change.

What if the running plant already has Citect points scattered across controller tags?

Build the exchange area alongside the existing tags and move the Citect map over in groups: indications first, then alarms, then commands, verifying each group under load before the next. Keep both maps in service until the last group checks out, then remove the old controller tags in the next scheduled code release.

Keep reading

  • How-to

    Read Citect SCADA 2018 R2 tags from Ignition via OPC DA

    Citect SCADA 2018 R2 ships a built-in OPC DA server: enable it under the Topology activity in Citect Studio, connect Ignition's OPC DA module to it, and the Citect variable tags appear for browsing and import with no OFS, no CtAPI and no project rewrite. OPC UA exists only in later Citect releases. When Ignition and Citect run on different PCs, configure DCOM security for the account the Ignition service runs under.

    SCADA and data logging

  • How-to

    Connecting Vijeo Citect SCADA to PLCSIM without a PLC

    No Siemens driver in Vijeo Citect reaches classic PLCSIM directly: it exposes S7ProSim, an API, not a protocol. The supported no-hardware path is PLCSIM Advanced V4.0 or later with its built-in OPC UA server on the PLCSIM Virtual Ethernet Adapter; for an S7-200 there is no simulator, so test screens with local variables. Set variable tags to Digital for bits like i0.0 and m0.0 and Int for words like VW100; c0.0 is not valid counter syntax.

    SCADA and data logging

  • How-to

    Expose PLC values to an OPC server through guest memory blocks

    Copy every value the OPC server needs into a Do-more guest block with a ladder MOVE, cast 32-bit reals at an even DLV address and configure the server tag as REAL, and let clients write outputs only to a V-memory staging word the ladder moves to the physical output. DLY is data, not an output alias, and Modbus clients read through MRX and MWX.

    SCADA and data logging