XIC — Examine If Closed
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
XIC(Sensor)OTE(Lamp)
Lamp is energized while Sensor is 1.
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