Examine If Closed (XIC)
The XIC instruction examines the data bit to set or clear the rung condition.
Available Languages
Ladder Diagram
Operands
Ladder Diagram
Operand | Data Type | Format | Description |
---|---|---|---|
Data bit | BOOL | tag | Bit to be tested. There are various operand addressing modes possible for the data bit, see Bit Addressing for examples. |
Affects Math Status Flags
No
Major/Minor Faults
None specific to this instruction. See Index through arrays for array-indexing faults.
Execution
Ladder Diagram
Condition/State | Action Taken |
---|---|
Prescan | N/A |
Rung-condition-in is false | Set Rung-condition-out to Rung-condition-in |
Rung-condition-in is true | If DataBit is true, rung-condition-out is set to true. If DataBit is false, rung-condition-out is cleared to false. |
Postscan | N/A |
Example 1
Ladder Diagram
If Limit_Switch_1 is true, the next instruction is enabled.
Example 2
Ladder Diagram
If S:V is true (generated by MOV), the next instruction is enabled.
Example 3
Ladder Diagram
XIC Access LINT Number
Axis_04 is an AXIS_CIP_DRIVE tag.
Test_Axis_00 is an Alias for Axis_04.
The AXIS_CIP_DRIVE type has a LINT member called CIPAxisFaults.
BusUndervoltageULFault is a bit member of CIPAxisFaults.
Test_Axis_00.BusUndervoltageULFault is bit 34 of CIPAxisFaults. The bit 34 value is 0x400000000.
If Test_Axis_00.BusUndervoltageULFault is true, this enables the next instruction.
Provide Feedback