Professional Documents
Culture Documents
Allen Bradley RS Logix 5000 Basics For Mechanical Technicians Manual
Allen Bradley RS Logix 5000 Basics For Mechanical Technicians Manual
Allen Bradley RS Logix 5000 Basics For Mechanical Technicians Manual
MechanicalTechnicians
• The PLC is used to time and sequence functions that might be required in
assembly lines, robots, and chemical processing. It is designed to deal with
the harsh conditions of the industrial environment. Some of the physical
environment problems could include vibration and shock, dirt and vapors,
and temperature extremes.
• The PLC commonly has to interface with a wide variety of both input and
output devices. Some input devices include limit and pressure switches,
temperature and optical sensors, and analog- to digital converters (ADCs).
Some output devices valves, motors and cylinders, and Digital-to Analog
converts (DAC).nal computer. To avoid this confusion, it is generally referred
as programmable controller or programmable logic controller or PLC.
O-SECUL NIGERIA LIMITED
Introduction
• Before the advent of solid-state logic circuits, logical control systems were
designed and built exclusively around electromechanical relays. Relays are far
from obsolete in modern design, but have been replaced in many of their
former roles as logic-level control devices, relegated most often to those
applications demanding high current and/or high voltage switching.
• A PLC has many "input" terminals, through which it interprets "high" and
"low" logical states from sensors and switches. It also has many output
terminals, through which it outputs "high" and "low" signals to power lights,
solenoids, contactors, small motors, and other devices lending themselves to
on/off control.
• Another advantage of a PLC system is that it is modular. It can mix and match
the different types of Input and Output devices to best suit other industrial
applications.
• Both the PLC & its associated peripherals are designed so that they can be
easily integrated into an industrial control system & easily used in all
intended functions.
Based on size
• I. Micro PLC or Small PLC: It is the simplest PLC with the Power
Supply module, CPU, I / O modules and communication ports in a
single chassis. This PLC types are usually limited to a few I / O
discrete and can be expanded. There are various micro PLCs are in
the market today.
• II . Transistor based: This type of PLC are used for High speed application.
• III . SCR based: This type of plc are used for heavy load switching.
Functional Description
• A programmable controller manufactured by any company has several
common functional parts. Figure illustrates a generic PLC architecture.
Modular I/O
• Is divided by compartments into which separate modules can be plugged.
Modular I/O
Power Supply
Processor (CPU)
I/O Section
Consists of:
• Input modules
• Output modules.
Input Module
I/O Section
Output Module
• There are many components to a PLC, but most of them can be put in the
following three categories:
• Processor (CPU)
• Inputs
• Outputs
• PLCs are complex and powerful computers. But, we can describe the function of
a PLC in simple terms. The PLC takes inputs, performs logic on the inputs in the
CPU and then turns on or off outputs based on that logic. We will get into more
detail later but for now, think of it like this:
1. The CPU monitors the status of the inputs (ex. switch on, proximity sensor off,
valve 40% open, etc.)
2. The CPU takes the information that it gets from the inputs, performs logic on
the inputs
O-SECUL NIGERIA LIMITED
How Do PLCs Work?
3. The CPU operates the outputs logic (ex. turn off motor, open valve, etc.)
See the flowchart below for a visual representation of the steps above.
• Some of the inputs into the dishwasher controller would be the buttons on the
front, the water sensors and the door switch. Some of the dishwasher outputs
would be the water valves, the heat elements and the pumps. Now let’s think
about how the dishwasher uses those different components.
NOTE: Remember, the CPU is the processor in the dishwasher that is programmed
to make all the decisions we will see below. This is just like a PLC processor (CPU)
which makes logical decisions based on input status.
• The relay logic control works efficiently to perform basic ON/OFF operations by
opening or closing the relay contacts but it involves a humongous wiring. Here
we will learn about Relay Logic Control Circuit, its symbols, working and how
they can be used as Digital Logic Gates.
Working of a Relay
• Relay act as switch which is operated by a small amount of current. The relay
has two contacts-
• Normally open (NO)
• Normally Close (NC)
• In the figure given below, you can see there are two sides of a Relay.
O-SECUL NIGERIA LIMITED
Introduction of Relay Logic
• One is primary coil which acts as a electromagnet on passing current
through it and other one is secondary side having NO and NC contacts.
• When the contact position is Normally Open, the switch is Open and
hence the circuit is Open and no current flows through the circuit. When
the contact position is Normally Close, the switch is closed and the circuit
is completed and hence current flows through the circuit.
• Above figure shows the switch in NO contact position. In this figure, primary
circuit (coil) is not completed and hence no current flows through the
electromagnetic coil in that circuit.
• Therefore, the connected bulb remains off as the relay contact remains open.
• Now the above figure shows the switch in NC contact position. In this
figure, primary circuit (coil) is closed, so there is some current through
the coil connected in that circuit.
• The extreme left rail is at the supply voltage potential and is used as an
input rail. The extreme right rail is at zero potential and is used as the
output rail.
• 2. NC contact
• This symbol is used to indicate Normally Close contact. This allows the
current to pass through it and acts as a short circuit.Relay Logic Circuit
Push Button ON
• This push button allows current to flow through it to the rest of the circuit
as long as it is pressed. If we release the push button, it becomes OFF
and no longer allows the current to flow. This means in order to carry the
current the push button has to remain in the pressed state.
• The relay coil symbol is used to indicate control relay or motor starter
and sometimes even contactor or timer.
6. Pilot Lamp
• The given symbol denotes Pilot Lamp or simply a bulb. They indicate the
machine operation.
This table is realised using the relay logic circuit in the following manner –
• In this, the Pilot lamp will turn On whenever any one of the inputs
becomes one which makes the contact associated with that input
O-SECUL NIGERIA LIMITED
Introduction of Relay Logic
as normally close. Otherwise, the contact remains Normally open.
The contacts are connected in series for AND gate. This means that the
pilot lamp will turn ON if and only if both the contacts are Normally close i.e.
when both the inputs are 1.
• The pilot lamp lights up when the input is 0 so that the contact remains
normally close. As the input changes to 1, the contact changes to
normally Open and hence the pilot lamp doesn’t light up giving the output
as 0.
• As two Normally close contacts are connected in parallel, the pilot lamp
lights up when one or both the inputs are 0.
The given truth table can be implemented using the relay logic
as follows-
• Founded in 1903, before the release of the first PLC, Allen-Bradley had
already accumulated extensive experience in the world of electronics,
becoming a worldwide leader in developing new components and
technologies.
• The PLC-5 family used the 6200 series programing software originally
and then later RSLogix 5 programming software.
O-SECUL NIGERIA LIMITED
Introduction to Allen Bradley PLC
SLC series
• In 1991 the SLC500 product line was released.
• This platform was much smaller in size and had a reduced instruction
set.
• SLC was an acronym for Small Logic Controller and the first SLC500
released was an integrated package (commonly referred to as a shoe
block PLC) containing the CPU, power supply, and I/O.
• The 5/02 and 5/03 PLCs had DH485 (Data Highway serial-based
communication) and the SLC5/04 provided a faster communication
called DH+ (Data Highway Plus).
• The Micrologix family and SLC 500 PLCs used the RSLogix 500
programming software.
• In 2014, the MicroLogix family was introduced in response to address the
need for a less expensive PLC solution to compete with other
manufactures and the first MicroLogix introduced was MicroLogix 1000
supporting several types of I/O combinations.
• And like the MicroLogix, the products do not use a rack-based solution
but instead, use add-on modules to the ends of the power supply or CPU
modules.
Safety Applications –
• DeviceNet is often used for safety control and is also excellent for quality
and regulatory monitoring that may impact safety as well.
Maintenance –
• DeviceNet allows the use of smart devices which can save on equipment
and maintenance costs at the machine level. And because of its plug-
and-play capability, DeviceNet is easier to run diagnostics and
troubleshoot.
Node Capacity –
• If an installation requires less than 64 devices, adding new devices to the
system incrementally to add or enhance system performance makes
DeviceNet flexible.
Profibus
• But many of the ones listed here have been in service for decades and
have adapted and evolved into powerful systems fully capable of
managing the communication between complex devices in an equally
complex environment.
• In this session, you will learn the wiring in a PLC control panel and the
basic electrical design of a PLC system cabinet.
• Wiring interlocks need a good understanding of the logic to be
implemented as well as the electrical standards that need to be
implemented to fulfill it.
• The PLC panel consists of the main breaker switch, bus bar, circuit
breakers, relays, contactors, PLC, fuses, SMPS, terminal boards, utility
sockets, and earthing points.
Digital Inputs
• Firstly, take digital inputs.
According to sink or source wiring,
connect either 24V or 0V to the
PLC common.
• So, for example, if the common
is 24V, connect 0V to all the
respective PLC field inputs in the
terminal board.
• As one board has two pins, one will be used to provide 0V and the other
will be connected to PLC digital input.
O-SECUL NIGERIA LIMITED
PLC Wiring
• For safety, many use fuse terminal boards. This provides additional
safety to the field devices.
Digital Outputs
• Then, coming to digital outputs, the same sink and source theory applies
to it.
• So, for example, if the common is 24V, connect 0V and PLC digital
outputs to all the relays (relay has two pins, so one pin will be 0V and the
other pin will be PLC digital output).
• According to the output you want at relay output (DC or AC), connect the
wiring accordingly.
• For example, if the relay output required is 230V AC, connect the line
wire to the common and connect the NO wire to the contactor’s line
input. Connect the neutral wire to the contactor’s neutral input and thus,
the circuit is complete.
• .
• It’s too much of a mouthful to say “Wire one side of the bulb permanently
to positive and install the switch so it connects and disconnects the
O-SECUL NIGERIA LIMITED
Sink or Source? Normally Open or Normally Closed?
• It’s too much of a mouthful to say “Wire one side of the bulb permanently
to positive and install the switch so it connects and disconnects the
negative from the battery to the bulb.”
• Besides, if you say that, you don’t
sound very sophisticated.
• So someone made up terms to
shorten the instructions and help us
to sound more sophisticated.
• And these terms are…
SINK and SOURCE. I have no idea
why they chose these terms.
• They could have used any two terms: “Sink” and “Swim” would have
worked just fine; or why not “Source” and “Resource”?
• For all we care they can call these two different conditions Moe and
Larry.
O-SECUL NIGERIA LIMITED
Sink or Source? Normally Open or Normally Closed?
• The name is not important, what is important is that when you set up a
DC system to turn something on and off, you will switch either the
positive or the negative and leave the other permanently wired.
• Now, in order to communicate
intelligently, all you need to know is…
which is Sink and which is Source?
• Here is something that may surprise you:
the terms sink and source are NOT
standardized enough across the industry
to be relied on.
• As incredible as it sounds, when one
person refers to what you may call “source”
the other person may picture what you
would call “sink”. So I recommend that
you never use these terms.
• The difference between the two wirings is that in the PNP type wiring, the
relay is always connected to 0V, and +24V is switched by the sensor.
• But in the NPN type wiring, the relay is always connected to +24V and
the sensor switches the 0V connection. Regardless, the sensor is
connected to +24 and 0V to supply power to it.
How To Connect NPN/PNP Proximity Sensor To PLC
• Warning! Before attempting any wiring, make sure that the system is
powered off to prevent electric shock.
O-SECUL NIGERIA LIMITED
NPN And PNP Proximity Sensors
Identifying The Color Code Of A 3-Wire Proximity Sensor
On a 3-wire sensor, the wiring color code is as follows: (Brown: +24V, Blue: 0V,
Black: output)
If your sensor’s wires are differently colored or unsure about the color code, please
refer to its manufacturer’s datasheet.
2. Next, we will select the module that will be added to our rack. We will be
adding a basic 8 channel analog input card. Expand the Allen Bradley
Analog category and choose 1756-IF8.
3. Now, we are presented with the New Module window where you can
specify the name and description of the module. We will identify this
module based on its rack and slot position—RACK01_SLOT01 as shown
in the following screenshot:
We will demonstrate the configuration of tag types Base and Alias. We will
work through a step-by-step guide to creating and associating tags with
inputs, outputs, and memory.
Getting ready
To complete this exercise, you need to have completed the previous
recipes.
O-SECUL NIGERIA LIMITED
RSLogix Emulate 5000
How to do it...
1. First, we will create a tag using the New Tag window. You can open the
new tag window by right-clicking on the Controller Tags folder of the
Controller Organizer (to display the Controller Organizer, press Alt + 0)
and selecting New Tag (or by pressing Ctrl + W).
The first base tag will be the set point for the flow control valve FC1001,
so we will give it a text-based named association of FC1001_SP.
9. The Style dropdown allows us to modify the way the value is displayed
and the choices vary depending on the data type that is being used.
The following screenshot shows all of these settings:
11. Now, we will double-click on the Controller Tags leaf of the Controller
Organizer and view our newly added tag in the Controller Scope pane of
our project.
12. Next, we will repeat the same process for an Alias tag that will be
directly associated with the analog output of the flow control valve.
This time, we will use the Controller Tags pane to enter our new tag into
the Tags table. At the bottom of the Controller Tags pane, there is a tab
labeled Edit Tags and, if we click on that tab, we can type a tag into the
bottom row of the table as if we were adding it to a spreadsheet.
14. In the Alias for column, select the data outputted from the analog input
card. We added Local:1:I.Ch0Data as shown in the following
screenshot:
15. Finally, set the description to FLOW CONTROL VALVE 1001 PROCESS
VALUE.
14. In the Alias for column, select the data outputted from the analog input
card. We added Local:1:I.Ch0Data as shown in the following
screenshot:
15. Finally, set the description to FLOW CONTROL VALVE 1001 PROCESS
VALUE.
• When you specify the scope as the controller itself (FirstController in our
example), the tag is accessible globally, meaning it can be accessed from
all tasks and programs.
• Later, we will create programs and define tags that have a scope for a
particular program and cannot be accessed outside that specific program.
• Now we will start to create some PLC programs for our newly created
project.
• We are going to add an alarm that will be triggered if the valve position set
point and current analog input position of the valve differ for more than five
seconds.
How to do it...
1. Open Controller Organizer and expand the leaf Tasks | Main Tasks |
Main Program. Right-click on Main Program and select New Routine as
shown in the following screenshot:
3. For our newly created routine to be executed with each scan of the PLC,
we will need to add a reference to it in MainRoutine that is executed with
each scan of the MainTask task.
5. Next, we will add a Jump To Subroutine (JSR) element that will add our
newly added Ladder Diagram program to the main task and ensure that
it is executed with each scan.
7. Next, we will make some modifications to the JSR routine so that it calls
our newly added Ladder Diagram. Click on the Routine Name parameter
of
the JSR element and select the VALVES routine from the list as shown in
the following screenshot:
9. Repeat this process for the other optional parameter: Return Par.
10. Now that we have ensured that our newly added Ladder Logic routine will
be scanned, we can add the elements to our Ladder Logic routine
.
Double-click on our VALVES routine in the Controller Organizer tab under
the MainTask task.
11. Find the Timer/Counter element group and click on the TON (Timer On
Delay) element to add it to our Ladder Diagram.
12. Now we will create the Timer object. Enter the name in the Timer field as
FC1001_TON. Right-click on the TIMER object tag name we just entered
O-SECUL NIGERIA LIMITED
RSLogix Emulate 5000
and select New "FC1001_TON" (or press Ctrl + W).
13. In the New Tag form that appears, enter in the description FAULT TIMER
FOR FLOW CONTROL VALVE 1001 and click on OK to create the new
TIMER tag.
14. Next, we will configure our TON element to count to five seconds (5,000
milliseconds). Double-click on the Preset parameter and enter in the
value 5000, which is in milliseconds.
15. Now, we will need to add the condition that will start the TIMER object
. We will be adding a Less Than (LES) element from the Compare element
group. Be sure to add the element to the same Ladder Logic Rung as the
Timer on Delay element.
16. The LES element will compare the valve position with the valve set point
and return true if the values do not match. So set the two parameters of
the LES element to the following:
FC1001_PV
FC1001_SP
O-SECUL NIGERIA LIMITED
RSLogix Emulate 5000
and select New "FC1001_TON" (or press Ctrl + W).
13. In the New Tag form that appears, enter in the description FAULT TIMER
FOR FLOW CONTROL VALVE 1001 and click on OK to create the new
TIMER tag.
14. Next, we will configure our TON element to count to five seconds (5,000
milliseconds). Double-click on the Preset parameter and enter in the
value 5000, which is in milliseconds.
15. Now, we will need to add the condition that will start the TIMER object
. We will be adding a Less Than (LES) element from the Compare element
group. Be sure to add the element to the same Ladder Logic Rung as the
Timer on Delay element.
16. The LES element will compare the valve position with the valve set point
and return true if the values do not match. So set the two parameters of
the LES element to the following:
FC1001_PV
FC1001_SP
O-SECUL NIGERIA LIMITED
RSLogix Emulate 5000
16. The LES element will compare the valve position with the valve set point
and return true if the values do not match. So set the two parameters of
the LES element to the following:
FC1001_PV
FC1001_SP
17. Now, we will add a second Ladder Logic Rung where a latched fault
alarm is triggered after TIMER reaches five seconds.
18. Right-click under the first Ladder Logic Rung and select Add Rung
(or press Ctrl + R).
20. Click on ? above the Examine On tab and select the TIMER object's
Done
property, FC1001_TON.DN, as shown in the following screenshot.
Now, once the valve values are not equal, and the TIMER has completed
its count to five seconds, this Ladder Logic Rung will be activated as
shown in the following screenshot:
21. Next, we will add an Output Latched element to this Ladder Logic Rung.
Click on the Output Latched element from the Favorites element group
with our new rung selected. O-SECUL NIGERIA LIMITED
RSLogix Emulate 5000
122. Click on ? above the Output Latched element and type in the name of a
new base tag we are going to add as FC1001_FLT. Press Enter or click
on the element to complete the text entry.
23. Right-click on FC1001_FLT and select New "FC1001_FLT" (or press Ctrl
+ W).
24. Set the following values in the New Tag form that appears:
Description: FLOW CONTROL VALVE 1001 POSITION FAULT
Type: Base
Scope: FirstController
Data Type: Bool
25. Click on OK to add the new tag. Our new tag will look like the following
screenshot:
26. It is considered bad practice to latch a bit without having the code to
unlatch the bit directly below it. Create a new BOOL type tag called
ALARM_RESET with the following properties:
Name: ALARM_RESET
Description: RESET ALARMS
Type: Base
Scope: FirstController
Data Type: BOOL
27. Click on OK to add the new tag. Then add the following coil and OTU to
unlatch the fault when the master alarm reset is triggered.
28. Finally, we will add a comment so that we can see what our Ladder
Diagram is doing at a glance.
29. Right-click in the far-right area of the first Ladder Logic Rung (where the 0
is) and select Edit Rung Comment (Ctrl + D).
Copying and pasting Ladder LogicLadder Logic Rungs and elements can be
copied and pasted within your ladder routine.
Simply select the rung or element you wish to copy and press Ctrl + C. Then,
to paste the rung or element, select the location where you would like to
paste it and press Ctrl + V.
2. The Configure Drivers window allows you to add Driver to the Configured
Drivers list.
In the Available Driver Types group box, use the dropdown and select the
EtherNet/IP Driver option, and then click on the Add New… button.
3. Next, a window will appear asking you to specify the name of Driver; use
the default driver name and click on OK.
8. The Who Active window will appear and allow you to specify the path to
your PLC. Expand the AB_ETHIP driver we added using RSLinx, select
your PLC, and then click on the Download button.
2. The Who Active window will appear. Use the network browser tree to
select
your PLC on the network.
• If you upload a project from a PLC to a new project, the newly created
project will be missing all comments and descriptions If someone adds
new tags, descriptions, and comments to a program and downloads it to a
PLC and you upload it to your local program that does not have the newly
added tags, descriptions, and comments, your project will be missing the
recently added descriptions and comments
4. Now, the tricky part with an online change in RSLogix 5000 is that we
cannot make modifications to an existing Ladder Logic that is currently
running. However, we can add new Ladder Logic Rungs.
So the workaround for editing rung is to copy and paste an existing rung,
modify it, and then delete the old rung. So, let's copy the existing rung at
position one by right-clicking on it and selecting Copy (or press Ctrl + C).
5. Next, we will paste our rung under the existing rung by right-clicking on it
and selecting Paste (or press Ctrl + V).
6. After pasting the rung, you will notice that iiiii will appear to the left of the
rung indicating that it is pending insertion.
8. After deleting the old rung, you will notice that ddddd appears to the left of
the rung indicating that it is pending deletion.
9. Now we can make our modification to our newly inserted rung. Choose the
rung we have inserted and click on the Examine Off element to add it.
10. Click on ? above the Examine Off element and associate it with the
POWER_FAILURE tag. The following screenshot displays the Examine
Off element with the associated tag.
11. The changes we have made to the routine will not execute until we
finalize our program (or accept, test, and assemble it). From the drop-
down menu, navigate to Logic | Online Edits | Finalize All Edits in
Program (or press Ctrl + Shift + F).
12. A dialog box will appear confirming that you want to finalize all edits to the
program. Click on Yes.
13. After finalizing the edits, you will notice that the iiiii and ddddd indicators
have disappeared and the new logic is now live.
• A very common HMI that you all encounter on a regular basis would be
an ATM machine.
• The screen and pushbuttons allow you to operate the machine to
dispense a certain amount of money, or to deposit money.
• An HMI isn’t a particular piece of hardware but rather a screen that allows a user
to interact with a device. HMIs can also be called Operator Terminals, Local
• Water and wastewater facilities have utilized this for years by coupling an
HMI with a PLC. They are able to monitor remote locations, like water
pumps, as well as equipment inside the plant.
• You probably get the idea now that an HMI is the operating panel and
monitoring screen. But how does the HMI actually connect to the
machine to be able to control and monitor it? Let’s take a look.