Lab#1 Implementation of Logic Gates: Objective

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Lab#1

Implementation of Logic Gates

Objective:
To understand the operation of OTE, XIC and XIO and simulate the given tasks in Allen
Bradley PLC.

Introduction
In this section we will cover some of the basic instructions used in PLC programming. These
instructions are some of the most used instructions in PLC programming. Once we explain in detail the
instructions then we will have a look at how we can implement and used those instructions in real life
application.

Instructions:

 XIC - Examine if Closed


 XIO - Examine if Open
 OTE - Output Energize
 OSR - One-Shot Rising

XIC Examine if Closed

Symbol

Definition
 Examines a bit for an On condition
 Use the XIC instruction in your ladder logic to determine if a bit is ON.
 0 = False
 1 = True

Devices
 Start/Stop push buttons
 Selectors
 Limit switch
 Proximity switch
 Light
 Internal bit

1
XIO Examine if Open

Symbol

Definition
 Examines a bit for an off condition.
 Use an XIO instruction in your ladder logic to determine if a bit if off.
 1 = True
 0 = False

Devices
 Start/Stop push buttons
 Selectors
 Limit switch
 Proximity switch
 Light
 Internal bit

OTE Output Energize

Symbol

Definition
 Turns a bit on or off
 Use OTE instruction in your ladder logic to turn on a bit when rung condition is evaluated as
true.

Devices
 Light
 Motor run signal
 Internal bits

OSR One-Shot Rising

Symbol

Definition
 Triggers a one-time event.
 The OSR instruction is a retentive input instruction that triggers an event to occur only one
time. Use the OSR instruction when an event must start based on change of state of the rung
from false to true.
 When the input instruction goes from false to true, the OSR instruction conditions the rung so
that the output goes true for one scan. The output goes false and remains false for successive
scans until the input makes another false to true transition.

2
LAB TASKS:
Exercise 1:

Implementation of AND gate using simple ladder logic.

Exercise 2:

Implementation of OR gate using simple ladder logic.

Exercise 3:

Implementation of NOR gate using simple ladder logic.

Exercise 4:

Implementation of NAND gate using simple ladder logic.

Exercise 5:

Implementation of NOT gate using simple ladder logic.

Exercise 6:

Implementation of XOR gate using simple ladder logic.

Exercise 7:

Implementation of XNOR gate using simple ladder logic.

Exercise 8:

Build an alarm system. Let's assume that we have 3 signals (Inputs) that we get from the field that warn
us about some kind of fire danger.
 Any 1 signal turn the warning light on;
 Any 2 signals will sound the siren.
 All 3 signals will start the water spray system.

Exercise 9:

A PLC motor controller has a START button and two STOP buttons. The motor is to run if START
button is Pressed. Motor stops by depressing any STOP button stops. Construct a LAD for this motor
control task. Use the following symbols for the inputs and output:

START Button-1 START1


STOP Button-1 STP1
STOP Button-2 STP2
MOTOR Starter MOTOR

You might also like