XIC — Examine If Closed

XIC (Examine If Closed) passes power along a ladder rung when the referenced bit is 1 — a normally-open contact in the rungs.dev ladder simulator.

dataBit

Passes power along the rung when the referenced bit is 1. Equivalent to a normally-open contact.

Operands

NameType
dataBitBOOL

How It Works

If dataBit is 1, power passes through. If 0, power is blocked.

Example

0

Sensor

Lamp

Lamp is energized while Sensor is 1.

Practice

Try XIC in the Lamp Follow exercise — drive a lamp straight from a button input.

Common Mistakes

  • Using XIC to check that a bit is off. XIC only passes power when the bit is 1. To check for 0, use XIO.
  • Examining a non-BOOL tag — XIC only takes BOOL. For numeric comparisons, use compare instructions.

On this page