Back to tutorials
PLC Instructions

PLC Programming Fundamentals - XIC Instruction

By
Vladimir Romanov
Table of Contents

Introduction

The XIC, also known as Examine If Closed, instruction is one of the fundamental instructions used in ladder logic programming for Programmable Logic Controllers (PLCs). This instruction is always found on the left side of a ladder rung and will verify if the specified bit is in a logic HIGH state. If that’s the case, the instruction will evaluate to true and allow the rest of the rung to execute.

Example & Usage of XIC

Here’s a real-world scenario of an XIC instruction:

  1. A Micrologix 1100 Allen Bradley PLC is used to control a process.
  2. A normally open push button (“System Start”) is connected to Input 0 (I0/0 of the PLC).
  3. An operator presses the button.
  4. The XIC instruction is tied to I0/0.
  5. The XIC instruction evaluates to TRUE while the button is pressed.
  6. The XIC instruction evaluates to FALSE while the button is released.

Programming example in RSLogix 500:

PLC XIC INstruction RSLogix 500

Data Types Allowed for XIC

The XIC instruction will work with the following data types within the RSLogix 500 environment:

  • Boolean – The XIC may only evaluate TRUE/FALSE or 1/0 or HIGH/LOW.

Important Notes

  • Note 1 – The XIC instruction was initially used to evaluate the status of inputs landed on the PLC. However, it may be used on any boolean within the program. In other words, it can examine if any boolean within the program is energized. This makes the XIC instruction powerful and versatile.

Video Tutorial

Back to tutorials

Related Tutorials

Advanced

PowerFlex 525 Parameter, Input and Output Programming Tutorial in RSLogix Studio 5000

The PowerFlex 525 series of Variable Frequency Drives from Allen Bradley is highly utilized and respected within the automation field. The drives are compact, versatile and easy to use. We’ve written an extensive tutorial on how to get started with these drives in a previous tutorial; it covers how to initialize the drive, connect it to an EtherNet/IP based PLC and how to set the right parameters. In this tutorial, we’re looking to expand on the concepts and demonstrate a way to access and utilize the multiple Input and Output options available on the drive. The reason you may want to utilize the IO is to save money on purchasing external components, integrate instrumentation into your drive and save floor space, wiring and cost. We’ve seen the need to integrate closely related sensors into a PowerFlex 525 application; this would be the right way to do it.

By
Vladimir Romanov
Advanced

Publishing MQTT Data Using Opto 22 groov EPIC PAC

MQTT is a communication protocol that has taken off in the IIoT community. It’s a light-weight, efficient protocol that works through a publisher / broker / subscriber model. It creates an easy way for field devices to communicate and retrieve data from a single location. In this article, we’ll go over MQTT and dive into an example of how you can publish data using a groov EPIC PAC and retrieve the data using a MQTT client.

By
Vladimir Romanov
Intermediate

HMI Design - Best Practices for Effective HMI Screens

HMI Design is the practice of building HMI screens that are intuitive to the end user, pleasing to the eye and are efficient to operate. As control systems within manufacturing are migrated from traditional push button designs to primarily operated from HMI displays, HMI Design has become trivial to any new installation.Although there is a wide range of HMI based systems, the basic principles of good design remain the same. Different industries may dictate different patterns of layout for their systems, but the good practices remain.

By
Vladimir Romanov