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
| Name | Type |
|---|---|
dataBit | BOOL |
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
XICto check that a bit is off.XIConly passes power when the bit is1. To check for0, useXIO. - Examining a non-
BOOLtag —XIConly takesBOOL. For numeric comparisons, use compare instructions.
Related
- XIO — the inverted counterpart
- OTE — the output coil typically paired with
XIC - Bit instructions overview
Bit Instructions Overview
Reference for Ladder Logic bit instructions in rungs.dev — XIC, XIO, OTE, OTL, OTU, and ONS — the contacts and coils that examine or control a single BOOL value.
XIO — Examine If Open
XIO (Examine If Open) in rungs.dev passes power along the rung when the referenced bit is 0 — a normally-closed contact.