Lab#1 Implementation of Logic Gates: Objective
Lab#1 Implementation of Logic Gates: Objective
Lab#1 Implementation of Logic Gates: Objective
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:
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
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
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:
Exercise 2:
Exercise 3:
Exercise 4:
Exercise 5:
Exercise 6:
Exercise 7:
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: