Module 7 — PLC, Controls & Automation · LEO Technical Academy
Lesson 7.4 — Ladder Logic Fundamentals: Bit Instructions (XIC, XIO, OTE)
Level 3 (2–3+ Years Experience) 🖥 Controls ⏱ 55 min Intermediate–Advanced LEO-ACE-07-004 v1.0 · 2026-11-02
📌 Training Use Only
This lesson builds knowledge. Completing it does not authorize field work, equipment servicing, LOTO, energized testing, or customer-site activity. Site rules, your supervisor, and required LEO Safety Training govern all work. Stop-Work Authority is absolute.
§01 — Learning Objectives

Learning Objectives

By the end of this lesson, the technician will be able to:

§02 — Field Scenario

Field Scenario

The Conveyor That Wouldn't 'Just Start': A conveyor won't start. The operator presses START; nothing. The electrician before you checked the motor, the starter, the overloads — all healthy. The work order is drifting toward "PLC problem, call integrator."

With authorization, you connect a laptop in monitor-only mode and find the conveyor's start rung. Ladder diagnostics is a spectator sport: the software highlights every instruction that is logically TRUE. You read the rung left to right like a sentence: START pushbutton — highlights when pressed, good. STOP pushbutton (an XIC instruction) — highlighted, good. Overload OK — highlighted. Downstream conveyor running — dark. There it is. The rung requires the downstream conveyor to be running first — an interlock nobody mentioned — and the downstream conveyor is in a maintenance bypass tonight.

Nothing was broken. The machine was obeying a rule the operator didn't know existed. You start the downstream conveyor per procedure; the rung completes; the motor runs. Total time at the panel: four minutes — because the highlighted rung shows exactly which condition is missing. The technician who can read three instructions and follow highlighting doesn't guess at interlocks; the logic names them.

§03 — Concept Overview

Concept Overview

Ladder logic is the dominant PLC programming language because it was drawn to look like the relay schematics electricians already read: two vertical power rails, horizontal rungs, conditions on the left, results on the right. A rung is a sentence: IF this combination of conditions is true, THEN do this.

The entire language stands on three instructions:

XIC — Examine If Closed ( ⊣ ⊢ symbol)

XIC asks one question: is this bit a 1? If the bit is ON, the instruction is TRUE and passes logical continuity. The name is the trap: XIC examines a bit in memory, not a physical contact. That bit might come from an input (the image table state of a pushbutton), an internal flag, a timer's done bit, or an HMI button. XIC = "true if ON."

XIO — Examine If Open ( ⊣/⊢ symbol)

XIO asks the inverse: is this bit a 0? If the bit is OFF, the instruction is TRUE and passes continuity. XIO = "true if OFF." It is the logic of absence: run the fan IF the door switch is NOT made; alarm IF flow is NOT proven.

OTE — Output Energize ( ( ) symbol)

OTE sits at the rung's right end and writes a bit: rung true → bit set to 1; rung false → bit set to 0, every scan. Two properties matter enormously in the field:

The Seal-In (Latch) Circuit — the Pattern Behind Every START/STOP

The most important rung pattern in industry:

[XIC Start_PB] --+-- [XIC Stop_PB] -- [XIC OL_OK] -- (OTE Motor_Run)

[XIC Motor_Run] -+

Press START: the rung completes, Motor_Run turns ON. The XIC Motor_Run branch in parallel with the START button now passes continuity — the output holds itself in after the button is released. Press STOP (its bit goes to 0, the XIC goes false): the rung breaks, Motor_Run drops, and the seal-in branch drops with it. Every motor start circuit, every "cycle on" latch is a variation of this pattern, and reading it fluently is the price of admission to Lesson 7.6.

§04 — How the Principle Works

How the Principle Works: The XIO Misconception and Stop-Circuit Wiring

Here is where most field misdiagnoses are born — read this section twice.

Instruction State vs. Device State Are Different Questions

An XIC is true when its bit is 1. Whether that bit is 1 when a field device is pressed, released, blocked, or clear depends on how the device is wired (NO or NC, per Lesson 6.2) — a fact the instruction symbol cannot tell you.

Why the STOP Button Is an XIC — Wired Through a Closed Contact

Naive expectation: STOP stops things, so it must be the "open" instruction. Industrial reality inverts it:

The payoff is fail-safe behavior: if the stop button's wire breaks or its terminal corrodes open, the bit goes to 0 — exactly as if STOP were pressed — and the machine stops. A broken stop circuit stops the machine instead of creating a machine that cannot be stopped. Wire the stop as NO/examine with XIO and the failure mode inverts catastrophically: a broken wire makes the stop button decorative. This NC-wired/XIC-examined convention is universal in well-built machines (and for true safety functions — E-stops, guard interlocks — hardwired safety relays/controllers rated for the task do the stopping, with the PLC merely informed; safety circuit specifics are SME/engineering territory, per Lesson 1.x boundaries).

Reading a Monitored Rung — What Highlighting Actually Claims

Monitor mode highlights each instruction that is logically true this scan — not each device that is "active." The diagnostic recipe: find the output that should be on, walk its rung left to right, and the first dark instruction is the missing condition. Then translate that instruction back through the addressing chain (Lesson 7.3) to a physical cause: dark XIC = its bit is 0 (device not made, wiring open, or upstream logic never set it); dark XIO = its bit is 1 (device made when it shouldn't be, or a flag stuck on). The highlighted-rung skill plus the image-table split from Lesson 7.1 (terminal vs. bit vs. logic) sorts virtually every "machine won't run" call into field problem or unsatisfied interlock — usually in minutes.

§05 — Reference Matrix

Bit Instruction Reference Matrix

Instruction Symbol True When Field Reading of a DARK (false) instruction Field Reading of a LIT (true) instruction
XIC (Examine If Closed) ⊣ ⊢ Bit = 1 The bit is OFF: device not actuated / NC device's circuit opened / upstream logic hasn't set the flag Bit is ON
XIO (Examine If Open) ⊣/⊢ Bit = 0 The bit is ON: device actuated when logic expects it clear / stuck flag Bit is OFF
OTE (Output Energize) ( ) Writes: rung true → 1, rung false → 0 (every scan, non-retentive) Rung has no continuity — find the first dark condition Rung complete — if the real-world load is still dead, the problem is downstream (Lesson 7.3 output chain)

Common wiring/logic pairings to memorize:

Function Field Device Wiring Instruction Why
START button NO (open until pressed) XIC True only while pressed; seal-in holds after
STOP button NC (closed until pressed) XIC Fail-safe: broken wire = stop
Overload/fault contact NC (closed when healthy) XIC Fail-safe: lost signal = trip
"Guard must be closed to run" NC interlock switch XIC Open guard or open wire both block running
"Alarm when flow lost" Flow switch NO or NC per design XIO or XIC per wiring Check the drawing — the instruction alone cannot tell you
§06 — Field Application Checklist

Field Application Checklist: Tracing a Dead Output Through Its Rung

Boundaries — absolute: Laptop connection is monitor/read-only. No edits, no forces, no mode changes — forcing I/O can start machinery and is governed by strict site authorization (Lesson 7.6 and site policy). Physical verification near moving equipment follows LOTO (Lesson 1.2); panels follow electrical safe-work rules (Lessons 1.5/5.1).

  1. Get the facts from operations first: what won't run, what the HMI says, what was happening when it stopped, what's in bypass or maintenance. (The Field Scenario's interlock would have surfaced here.)
  2. Connect in monitor mode with authorization; locate the output — by tag name, by address from the drawings (Lesson 7.3 chain), or via the software's cross-reference from the HMI object.
  3. Confirm the OTE's rung state. Rung TRUE but device dead → stop reading logic; the problem is electrical-downstream (channel LED → terminal → fuse → load, per Lesson 7.3). Rung FALSE → continue.
  4. Walk left to right; find the first dark instruction. That is the missing condition. Note its tag/address.
  5. Translate the dark instruction to the physical world: dark XIC → why is this bit 0? (Trace per Lesson 7.3: device state, wiring, input LED, image bit.) Dark XIO → why is this bit 1? If the bit is an internal flag, cross-reference where it's written and repeat on that rung — interlock chains are rungs feeding rungs.
  6. Distinguish 'broken' from 'blocked': an unsatisfied interlock (downstream not running, guard open, mode not selected) is the machine working correctly. The fix is operational — satisfy the condition per procedure — never defeating the interlock in logic or wiring.
  7. If the missing condition traces to a field fault, repair under the proper energy controls, then re-verify the rung completes and the machine starts by normal operator action.
  8. Document the blocking condition found, the root cause, and the repair — naming the rung/tag in the CMMS entry builds the site's diagnostic memory.
§07 — Knowledge Check

Knowledge Check

A mixer motor stops mid-batch and won't restart. In monitor mode (read-only, authorized), the technician finds the run rung: [XIC Start] + [XIC Mixer_Run seal-in branch] — [XIC Stop_PB] — [XIC OL_OK] — (OTE Mixer_Run). Current state: Start and the seal-in branch are dark (motor is off, button not pressed), XIC Stop_PB is dark, XIC OL_OK is lit. Pressing START lights the Start XIC momentarily but the rung never completes. The stop button on the console is not pressed and springs freely. What is the most defensible diagnosis?
§08 — Source List

Source List

← Lesson 7.3 Academy Home Lesson 7.5 →