Programmable Logic Controller EEC 246 Theory
Programmable Logic Controller EEC 246 Theory
UNESCO
VOCATIONAL EDUCATION
REVITALISATION PROJECT
PROJECT-PHASE II
NATIONAL DIPLOMA IN
ELECTRICAL ENGINEERI
ENGINEERING
NG TECHNOLOGY
PROGRAMMABLE LOGIC
CONTROLLERS - PLC
COURSE CODE
CODE: EEC 246
PRACTICAL
Version 1: December 2008
TABLE OF CONTENTS
Semester 4
Credit Hours 3
Theoretical 1
Practical 2
Week14………………………………………………………………………Conveyor
General Objectives
1. Know general PLC issues
2. To be able to write simple ladder logic programs.
3. Understand the operation of a PLC.
4. Execute and run programmable controller programs with actual loads.
5. Identify and isolate common problems encountered in the control systems of
automated facilities.
The student should be able to: -
1) Compare between the different types of PLC's.
2) Construct the inputs and outputs of the PLC.
3) Install the PLC wiring according to the diagram.
4) Carry out some practical skills on PLC operating.
5) Follow the ladder format (layout) and make a design to the ladder diagrams.
6) Writes a simple ladder logic programmed to satisfy the ladder layout.
7) Connect and execute and run programmable controller programs with actual loads.
8) Detect the different types of troubleshooting.
9) Design, execute and run a suitable programmed to run a timer.
10) Design, execute and run a suitable programmed to run a lamp or motor controller.
11) Design, execute and run a suitable programmed to run an ac motor.
12) Design, execute and run a suitable programmed to run a dc motor.
13) Design, execute and run a suitable programmed to run a pump with time delay.
14) Design, execute and run a suitable programmed to run a compressor with a time
delay.
Identification of system parts
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.
Systems and processes requiring "on/off" control abound in modern commerce
and industry, but such control systems are rarely built from either electromechanical
relays or discrete logic gates. Instead, digital computers fill the need, which may be
programmed to do a variety of logical functions.
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. In an
effort to make PLC's easy to program, their programming language was designed to
resemble ladder logic diagrams. Thus, an industrial electrician or electrical engineer
accustomed to reading ladder logic schematics would feel comfortable programming a
PLC to perform the same control functions.
PLC's are industrial computers, and as such their input and output signals are
typically 120 volts AC, just like the electromechanical control relays they were
designed to replace. Although some PLC's have the ability to input and output low-
level DC voltage signals of the magnitude used in logic gate circuits, this is the
exception and not the rule.
Inside the PLC housing, connected between each input terminal and the
Common terminal, is an optic
optic-isolator device (Light-Emitting
Emitting Diode) that provi
provides an
electrically isolated "high" logic signal to the computer's circuitry (a photo
photo-transistor
interprets the LED's light) when there is 120 VAC power applied between the
respective input terminal and the Common terminal. An indicating LED on the front
panel
anel of the PLC gives visual indication of an "energized" input:
Output signals are generated by the PLC's computer circuitry activating a
switching device (transistor, TRIAC, or even an electromechanical relay), connecting
the "Source" terminal to any of the "Y-"" labeled output terminals. The "Source"
terminal, correspondingly, is usually connected to the L1 side of the 120 VAC power
source. As with each input, an indicating LED on the front panel of the PLC gives
visual indication of an "energized" out
output:
In this way, the PLC is able to interface with real
real-world
world devices such as
switches and solenoids.
The actual logic of the control system is established inside the PLC by means of
a computer program. This program dictates which output gets energize
energizedd under which
input conditions. Although the program itself appears to be a ladder logic diagram, with
switch and relay symbols, there are no actual switch contacts or relay coils operating
inside the PLC to create the logical relationships between input aand
nd output. These are
imaginary contacts and coils, if you will. The program is entered and viewed via a
personal computer connected to the PLC's programming port.
If the pushbutton switch is pressed, however, power will be sent to the PLC's
X1 input. Any and all X1 contacts appearing in the program will assume the actuated
(non-normal)
normal) state, as though they were relay contacts actuat
actuated
ed by the energizing of a
relay coil named "X1". In this case, energizing the X1 input will cause the normally
normally-
open X1 contact will "close," sending "power" to the Y1 coil. When the Y1 coil of the
program "energizes," the real Y1 output will become energiz
energized,
ed, lighting up the lamp
connected to it:
The true power and versatility of a PLC is revealed when we want to alter the
behavior of a control system. Since the PLC is a programmable device, we can alter its
behavior by changing the commands we give it, without having to reconfigure the
electrical components connected to it. For example, suppose we wanted to make this
switch-and-lamp circuit function in an inverted fashion: push the button to make the
lamp turn off, and release it to make it turn on. The "hardware" solution would require
that a normally-closed pushbutton switch be substituted for the normally-open switch
currently in place. The "software" solution is much easier: just alter the program so that
contact X1 is normally-closed rather than normally-open.
In the following illustration, we have the altered system shown in the state
where the pushbutton is inactivated (not being pressed):
In this next illustration, the switch is shown actuated (pressed):
One of the advantages of implementing logical control in software rather than in
hardware
ardware is that input signals can be re
re-used
used as many times in the program as is
necessary. For example, take the following circuit and program, designed to energize
the lamp if at least two of the three pushbutton switches are simultaneously actuated:
Too build an equivalent circuit using electromechanical relays, three relays with
two normally-open
open contacts each would have to be used, to provide two contacts per
input switch. Using a PLC, however, we can program as many contacts as we wish for
each "X" input
nput without adding additional hardware, since each input and each output is
nothing more than a single bit in the PLC's digital memory (either 0 or 1), and can be
recalled as many times as necessary.
Furthermore, since each output in the PLC is nothing m
more
ore than a bit in its
memory as well, we can assign contacts in a PLC program "actuated" by an output (Y)
status. Take for instance this next system, a motor start
start-stop control circuit:
If we were to press the "Start" button, input X1 would energize, thus "closing"
the X1 contact in the program, sending "power" to the Y1 "coil," energizing the Y1
output and applying 120 volt AC power to the real motor contactor coil. The parallel
Y1 contact will also "close," thus latching the "circuit" in an energized state:
Now, if we release the "Start" pushbutton, the normally-open
open X1 "contact" will
return to its "open" state, but the motor will continue to run because the Y1 seal
seal-in
"contact" continues to provide "continuity" to "power" coil Y1, thus keeping the Y1
output energized:
To stop the motor, we must momentarily press the "Stop" pushbutton, which
will energize the X2 input and "open" the normally
normally-closed
closed "contact," breaking
continuity to the Y1 "coil:"
When the "Stop" pushbutton is released, input X2 will de
de-energize,
energize, returning
"contact"
ntact" X2 to its normal, "closed" state. The motor, however, will not start again until
the "Start" pushbutton is actuated, because the "seal
"seal-in"
in" of Y1 has been lost:
In addition to input (X) and output (Y) program elements, PLC's provide
"internal" coils
ls and contacts with no intrinsic connection to the outside world. These
are used much the same as "control relays" (CR1, CR2, etc.) are used in standard relay
circuits: to provide logic signal inversion when necessary.
With each module having sixteen "points" of either input or output, this PLC
has the ability to monitor and control dozens of devices. Fit into a control cabinet, a
PLC takes up little room, especially considering the equivalent space that would be
needed by electromechanical relays to perform the same functions:
Objectives:-
Problem: Develop a program that will cause output D to go true when switch
A and switch B are closed or when switch C is closed to:
1) Create ladder logic diagram.
2) Enter download and operate simple programs
MATERIALS REQUIRED:-
PROCEDURE:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1. First turn OFF the power supply and then connect the circuit diagram as show
in fig (1.1) using the PC base unit: (FX0-14MR-E).
2. Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
6. Turn ON the powerr supply and set the RUN/STOP switch of the PC to RUN.
7. Test the operation of the program. Explain how this program operates.
8. Observe the out put devices, how does the output device respond?
Figure
1.1Sample
Solutions for
Logic Case Study
END
Table (1.
(1.1) Instruction table
SKILL EVALUATION
P.W 1
Not
No. Skills Achieved Remarks
Achieved
Understanding the main
1
function of the PLC’s
Understanding the PLC
2 implementation of an
Problem
Select the required
3
equipment
Date: / /
Date: / /
WEEK 7
Objectives:-
Problem: Develop a program that will cause output D to be on when push
button A is on, or either B or C is on to:
1) Create ladder logic diagram.
2) Enter download and operate simple programs
MATERIALS REQUIRED:-
PROCEDURE:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (2.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
7) Test the operation of the program. Explain how this program operates.
8) Observe the out put devices, How do the output device respond?
END
Table (2.
(2.1) Instruction Table
SKILL EVALUATION
P.W 2
Not
No. Skills Achieved Remarks
Achieved
Understanding the main
1
function of the PLC’s
Understanding the PLC
2 implementation of an
Problem
Select the required
3
equipment
Date: / /
Date: / /
WEEK 8
Objectives:-
Problem: Develop Ladder Logic for a car door/seat belt safety system. When the
car door is open, and the seatbelt is not done up, the ignition power must not be
applied. If all is safe then the key will start the engine to:
1) Create ladder logic diagram.
2) Enter download and operate simple programs
Materials required:
• Programmable controller: (PC base unit: Fxo-14Mr-E).
• The handy programming panel (HPP): (FX-10P-E).
• The program cable: (FX-20P-CABO).
• Power supply: 0-24v dc source.
• Two switches or contactors.
• Two lamps: 12v dc.
• Motor: 24v.
Procedure:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (3.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
6) Turn ON the power supply and set the RUN/STOP switch of the PC to RUN.
7) Test the operation of the program. Explain how this program operates.
8) Observe the out put devices, How do the output device respond?
Not
No. Skills Achieved Remarks
Achieved
Understanding the PLC
1 implementation of a TIMER
gate ladder.
Select the required
2
equipment.
Date: / /
Date: / /
WEEK 9
Objectives:-
Problem: Design a motor controller that has a forward and a reverse button. The
motor forward and reverse outputs will only be on when one of the buttons is
bushed.
When both buttons are pushed the motor will not work.
1) Create ladder logic diagram.
2) Enter download and operate simple programs
Materials required:
Procedure:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (4.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX
(FX-10P-E)
E) for programming makes sure the toggle
switches are set on input and output.
5) Study the program you just entered, but do not test it yet. How will this
program operate?
6) Turn
urn ON the power supply and set the RUN/STOP switch of the PC to RUN.
7) Test the operation of the program. Explain how this program operates.
Figure 4.1
.1 motor forward .reverse case studies
ADDRESS INSTRUCTION DATA
Not
No. Skills Achieved Remarks
Achieved
Understanding the PLC
1 implementation of a motor
forward/reverse
Select the required
2
equipment.
Date: / /
Date: / /
WEEK 10
Basic Counters AND TIMER
Objectives:-
Problem: Develop the ladder logic that will turn on an output light.15 seconds after
switch A has been turned on.
1) Create ladder logic diagram.
2) Enter download and operate simple programs
Materials required:
Procedure:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (5.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
6) Turn
urn ON the power supply a
and
nd set the RUN/STOP switch of the PC to RUN.
7) Test the operation of the program. Explain how this program operates.
8) Observe the out put devices, How do the output device respond?
Not
No. Skills Achieved Remarks
Achieved
Understanding the PLC
1 implementation of a logic
case study.
Select the required
2
equipment.
Date: / /
Date: / /
WEEK 11
Objectives:-
Problem: Develop the ladder logic that will turn on a light. After switch A has been
closed 10 times. Push button B will reset the counters.
1) Create ladder logic diagram.
2) Enter download and operate simple programs
Materials required:
Procedure:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (6.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
6) Turn ON the power supply and set the RUN/STOP switch of the PC to RUN.
7) Test the operation of the program. Explain how this program operates.
8) Observe the out put devices, How do the output device respond?
Figure
6.1 a
simple
counter
Example
ADDRESS INSTRUCTION DATA
Not
No. Skills Achieved Remarks
Achieved
Understanding the PLC
1 implementation of a logic
case study.
Select the required
2
equipment.
Date: / /
Date: / /
WEEK 12
More Timers and counters
Objectives:-
Problem: Develop a program that will latch on an output B20 seconds after input A
has been turned on. After (A) is pushed. There will be a 10 second delay until A can
have any effect again. After (A) has been pushed 3 times. B will be turned off.
1) Create ladder logic diagram.
2) Enter download and operate simple programs
Materials required:
Procedure:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (7.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
5) Study the program you just entered, but do not test it yet. How will this
program operate?
6) Turn ON the power supply and set the RUN/STOP switch of the PC to RUN.
7) Test the operation of the program. Explain how this program operates.
8) Observe the out put devices, How do the output device respond?
Figure 7.1
.1 a more complex timer counter example
ADDRESS INSTRUCTION DATA
Not
No. Skills Achieved Remarks
Achieved
Understanding the PLC
1 implementation of a logic
case study.
Select the required
2
equipment.
Date: / /
Date: / /
WEEK 13
Dead man switch
Objectives:-
Problem: A motor will be controlled by two switches. The Go switch will start the
motor and the stop switch will stop it. Stop switch was used to stop the motor. When
the motor is active a light should be turned on. The stop switch will be wired as
normally closed
1) Create ladder logic diagram.
2) Enter download and operate simple programs
Materials required:
• Motor: 24v.
Procedure:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (8.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
6) Turn ON the power supply and set the RUN/STOP switch of the PC to RUN.
7) Test the operation of the program. Explain how this program operates.
8) Observe the out put devices, How do the output device respond?
Figure 8.1
Dead man
switches
Not
No. Skills Achieved Remarks
Achieved
Understanding the PLC
1 implementation of a logic
case study.
Select the required
2
equipment.
Date: / /
Date: / /
WEEK 14
Conveyor
Objectives:-
Problem: A conveyor is run by switching on or off a motor. We are positioning parts
on the conveyor with an optical detector. When the optical sensor goes on, we want
to wait 1.5 seconds, and then stop the conveyor. After a delay of 2 seconds the
conveyor will start again. We need to use a start and stop button - a light should be
on when the system is active.
1) Create ladder logic diagram.
2) Enter download and operate simple programs
Materials required:
Procedure:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (9.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
3) Write the program in table ((14.1).
5) Study the program you just entered, but do not test it yet. How will this
program operate?
6) Turn ON the power supply and set the RUN/STOP switch of the PC to RUN.
7) Test the operation of the program. Explain how this program operates.
8) Observe the out put devices, How do the output device respond?
Not
No. Skills Achieved Remarks
Achieved
Understanding the PLC
1 implementation of a logic
case study.
Select the required
2
equipment.
Date: / /
Date: / /
WEEK 15
Accept/Reject Sorting
Objectives:-
Problem: For the conveyor in the last case we will add a sorting system. Gages
have been attached that indicate good or bad. If the part is good, it continues on. If
the part is bad, we do not want to delay for 2 seconds, but instead actuate a
pneumatic cylinder.
1) Create ladder logic diagram.
2) Enter download and operate simple programs
Materials required:
Procedure:
NOTE: Confirm that RUN/STOP switch of the PC is set to STOP before Continuing.
1) First turn OFF the power supply and then connect the circuit diagram as show
in fig (15.1) using the PC base unit: (FX0-14MR-E).
2) Prepare the HPP unit (FX-10P-E) for programming makes sure the toggle
switches are set on input and output.
3) Write the program in table ((15.1).
5) Study the program you just entered, but do not test it yet. How will this
program operate?
6) Turn ON the power supply and set the RUN/STOP switch of the PC to RUN.
7) Test the operation of the program. Explain how this program operates.
opera
8) Observe the out put devices, How do the output device respond?
Not
No. Skills Achieved Remarks
Achieved
Understanding the PLC
1 implementation of a logic
case study.
Select the required
2
equipment.
Date: / /
Date: / /