IMDTouchKnowledge BaseShop main store

Explainer

Why HMI I/O remapping needs predefined PLC layouts

HMI and touchscreens Published 8 min read By IMDTouch engineering team

Short answer

Program the terminal assignments you are willing to support as named layouts, and let a protected maintenance screen write one integer value that selects a complete layout in the PLC. One accepted value equals one full assignment, committed only while the affected function is inhibited. The screen reroutes the program, not the field wiring, and it cannot restore a worn relay contact: that path must be measured.

On this page
  1. One accepted value, one complete layout
  2. Requested, active and permitted are separate values
  3. One final routing section, one write per output
  4. The duplicated-output alternative
  5. What the technician changes at the terminals
  6. Screen fault or worn contact: four checks
  7. Worked example: three layouts in one register
  8. Spare inputs add a polarity check
  9. Questions asked

The reliable way to let an operator reassign an I/O point from the HMI is to program every assignment you are willing to support as a named layout, up front, and let a protected maintenance screen write a single integer value that selects one complete layout in the PLC. One accepted value equals one full terminal assignment, and the change is committed only while the affected function is inhibited. The screen cannot do the rest: it reroutes program logic, not copper. A worn relay contact is found with a meter, and the load conductor still moves by hand on an isolated circuit. Here is how the layouts, the routing section and the terminal work fit together, and how to tell a screen fault from a bad contact.

One accepted value, one complete layout #

Give the maintenance screen a fixed list of layouts, not free terminal entry. For one failed relay output the list holds two entries: the original assignment through its own terminal, and the replacement through a checked spare. Each entry names every terminal it touches, so a single selector value means 'the function demand drives the spare and the original output stays off': a whole configuration, not one wire.

Store the selector in one integer register, one MI written in a single HMI operation and validated by one range check, rather than a chain of linked bits. A set of MBs can be left half-changed, and every combination you never approved, including the intermediate states while the bits settle a scan apart, has to be trapped before it reaches an output. Approve a layout only after its electrical compatibility and its interaction with the rest of the machine are checked; an unverified spare stays off the list. Show each layout's terminal diagram by switching HMI images with an integer variable value driven by the active-layout register, and keep the same list on a controlled wiring document the technician can carry.

Requested, active and permitted are separate values #

Three values must exist separately, or the screen will lie to you.

Value Where it lives What it tells you
Requested layout Protected maintenance screen, written to the selector register The assignment the operator asked for
Active layout PLC routing logic, read back to the HMI The assignment actually driving the terminals
Change permission PLC machine-state logic Whether a reassignment may be accepted now
Terminal instruction Maintenance screen and controlled wiring document Which conductor the technician must move

Display requested and active side by side. A screen that shows only the request presents a rejected change as done, and a value that appears on screen without ever reaching the controller is its own failure mode, the one behind why an HMI edit box shows a value that was never set. Before any selection is wired into logic, confirm that each value has exactly one terminal description behind it.

One final routing section, one write per output #

Keep machine-function logic and physical-output assignment apart. The function logic computes each demand once; a final routing section applies those demands to the terminals the active layout selects. In the replacement layout the spare receives the demand and the original output is written off, and every earlier reference to the original terminal is deleted so that no old rung reasserts it.

Write each physical output exactly once. Two writes to the same coil make its final state depend on execution order; in an IEC 61131-3 ladder program, rungs execute in sequence and the last write wins, which can mask a routing error through weeks of testing. Reject every selector value outside the approved list, hold the affected outputs off while no valid assignment is active, and commit the whole layout in one operation with the function inhibited. Never reassign single outputs while the machine runs.

The duplicated-output alternative #

Where several spare relays exist, there is a simpler scheme: give the responsible functions duplicate outputs so both relays receive the same command. The repair then consists of moving the load wire to the backup terminal, with no download and no selector. The cost is one output committed per duplicated function and a terminal drawing that shows which position is loaded. Never parallel the two contacts to gain redundancy: a welded contact on one path keeps the load energized through the other and defeats the shutdown. Before the function is enabled, confirm that only the intended terminal carries the load.

What the technician changes at the terminals #

  1. Inhibit the affected function, record the active layout, and identify the conductor on the failed terminal.
  2. Check the replacement terminal against the controller's own electrical data: output type, rated voltage and whether it covers AC, DC or both, load rating, common arrangement (some relay modules provide Form C contacts and publish surge-protected outputs for AC or DC loads), and the supply.
  3. Isolate the circuit, move the conductor, and update the terminal identification and the wiring record.
  4. Select the replacement layout and confirm the controller accepts it while the function remains off.
  5. Restore the circuit under the site's commissioning procedure and test the function deliberately.

An HMI selection is not an isolation device: IEC 60204-1 requires a hardware means of isolating the machine from its supply, and that step is what makes rewiring safe. The machine's safety functions stay independent of the maintenance selector.

An RC snubber across the driven AC coil suppresses the switching transients the inductive load generates; its voltage rating and suppression characteristics are chosen for that coil and that circuit. Suppression lowers the stress that wears out the next contact. It does not restore a damaged relay and it does not make an undersized contact adequate for the load. If the same output wears out repeatedly, the lasting change is a controller whose solid-state outputs drive field-replaceable interface relays: check output compatibility, isolation, coil demand, contact duty and suppression before changing hardware, then verify that the new circuit both operates and releases.

Screen fault or worn contact: four checks #

A correct screen indication proves one thing only: the state of the value driving the indication. It does not prove that a relay contact conducts. Trace in order from the displayed function through its linked operand, the controller logic and the physical terminal, then match the observation to the table.

What you observe Where to look Decision
Screen selection changes, requested value does not HMI object binding and write permission Repair the screen-to-operand link; the PLC never saw the request
Requested value changes, active layout does not Validation and change-permission logic Clear the rejection condition before touching any wiring
Active layout correct, output command absent Function demand, interlocks, routing section Find the missing command or the conflicting assignment
Output command present, load does not energize Contact, supply, common, conductor, load Measure the electrical path; the HMI binding is not the fault

Under controlled test, compare the output command with the voltage at the terminal and at the load: a worn contact shows a true command and no voltage across the load. Where an external HMI communicates through a driver, confirm its connection targets the intended controller and operand; on an integrated screen, follow the local object binding straight to the operand and do not look for a communications fault where no link exists.

Worked example: three layouts in one register #

Illustrative example. One controller remaps two functions, A and B. Function A runs on terminal O1 with spare O5; function B runs on its original terminal with its own spare. Three layouts are approved: 1 puts both functions on their originals, 2 moves A to O5, and 3 puts A on O5 and B on its spare. The selector register accepts only the values 1, 2 and 3.

If the same coverage were built from one bit per assignment, four bits in this example, the operators could set 2^4 = 2 x 2 x 2 x 2 = 16 combinations, of which three are approved. The program would have to trap 16 - 3 = 13 invalid combinations, including states that energize both the original and the spare of one function. One register limited to 1, 2, 3 is checked by a single range test, and the HMI writes it in one operation.

The decisions: value 1 routes A to O1 and B to its original with both spares off; value 2 routes A to O5 and holds O1 off; value 3 routes both functions to their spares and holds both originals off. Any other value, including 0 and a negative value, is rejected and the affected outputs stay off.

Spare inputs add a polarity check #

An input on a software-selected spare must see the same signal convention as the failed input: a normally-closed or normally-open field circuit with matching sinking or sourcing wiring. Otherwise the same wire position reads as the opposite state and the function inverts. Route input remapping through the same layout selector and the same final routing section as the outputs, and name the input terminal in each layout's diagram; a backup input wired in parallel works only when both inputs expect the same polarity. Keep safety-related inputs in the machine's safety circuit, not on a software-selectable spare.

In every case the split of work is the same. The HMI chooses among layouts you approved and wired. The PLC validates the choice and commits it with the function inhibited. The contact, the conductor and the coil are handled with a meter and a screwdriver, never with a screen.

Questions asked

Should the layout selector be visible during normal production?

No. The selector belongs on a protected maintenance screen behind a password or permission level, and the production screens show only the active layout read back from the PLC. An operator who can change routing mid-production could move a running function to an unwired terminal; the change-permission logic blocks the write, and hiding the entry point removes the daily temptation.

Why not let the operator type any terminal number instead?

Free terminal entry lets two functions land on one output, or a function land on a terminal rated for the wrong load class, and the program would have to validate every combination at run time. A fixed list moves that validation to commissioning, where each entry is checked once against the electrical data and the wiring document; afterwards the program only rejects values outside the list.

Is duplicating outputs on two relays simpler than a selector?

Where spare relays exist, yes: both receive the same command and the repair is moving one wire, with no download and no HMI change, which suits sites with no programming support. The cost is one output committed per function and a terminal drawing showing which position is loaded. Never parallel the two contacts for redundancy, because a welded contact on one path keeps the load energized through the other.

What happens to the selected layout after a power cycle?

The selector register must be retentive. If it resets to its initial value at power-up, the program silently returns to the original assignment while the conductor still sits on the spare, so the function commands a terminal nothing is wired to. Check the register's retention setting in the controller configuration and verify the active layout on the HMI after every power-up.

Does the RC snubber fix the contact, and what about a DC coil?

No. Across an AC coil the RC network limits the switching transients that wear the next contact, and its voltage rating and suppression values are chosen for that coil and circuit. A DC coil is usually suppressed with a flyback diode instead. Either way, a contact that no longer conducts is replaced, and suppression does not make an undersized contact adequate.

Keep reading

  • Explainer

    Why WinCC button visibility needs one PLC bit for two conditions

    A WinCC Comfort or Basic panel's visibility animation references one controlling tag, so you AND the two conditions in the PLC and bind that single Boolean result to the button. Unified, V7 and Professional editions can also evaluate both tags HMI-side. The overlay-rectangle and multiplex-tag workarounds are not acceptable substitutes for one PLC bit.

    HMI and touchscreens

  • How-to

    PLC timer value on an HMI: start, stop and show after a win

    Time the run in the PLC, not on the panel. A TONR accumulator runs while Sensor 1's run-active bit is high, Sensor 2 copies the elapsed value into a result tag and sets the win bit, and the KTP600 shows that one tag on an I/O field while the PLC-driven screen change opens the winning screen.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Start and Stop buttons do not control an S7-300 output

    The Start and Stop buttons do nothing because E0.0 and E0.1 are S7-300 input image addresses: the CPU refreshes them from the input modules every scan, so an HMI write cannot survive. Step 7 simulation changes the simulated input state itself, which is why the LED follows it. Move the two commands to memory bits such as M0.0 and M0.1, latch them in the PLC, and let the program drive A4.0.

    HMI and touchscreens

EasyBuilder Pro animation loop needs an address-driven position