PLC Applications (Level Control)
PLC Applications (Level Control)
PLC Applications
Level Process Control
Printed in Canada
All rights reserved
ISBN 978-2-89640-310-3 (Printed version)
Legal Deposit – Bibliothèque et Archives nationales du Québec, 2008
Legal Deposit – Library and Archives Canada, 2008
The purchaser shall receive a single right of use which is non-exclusive, non-time-limited and limited
geographically to use at the purchaser's site/location as follows.
The purchaser shall be entitled to use the work to train his/her staff at the purchaser’s site/location and
shall also be entitled to use parts of the copyright material as the basis for the production of his/her own
training documentation for the training of his/her staff at the purchaser’s site/location with
acknowledgement of source and to make copies for this purpose. In the case of schools/technical
colleges, training centers, and universities, the right of use shall also include use by school and college
students and trainees at the purchaser’s site/location for teaching purposes.
The right of use shall in all cases exclude the right to publish the copyright material or to make this
available for use on intranet, Internet and LMS platforms and databases such as Moodle, which allow
access by a wide variety of users, including those outside of the purchaser’s site/location.
Entitlement to other rights relating to reproductions, copies, adaptations, translations, microfilming and
transfer to and storage and processing in electronic systems, no matter whether in whole or in part, shall
require the prior consent of Festo Didactic.
Information in this document is subject to change without notice and does not represent a commitment on
the part of Festo Didactic. The Festo materials described in this document are furnished under a license
agreement or a nondisclosure agreement.
Festo Didactic recognizes product names as trademarks or registered trademarks of their respective
holders.
All other trademarks are the property of their respective owners. Other trademarks and trade names may
be used in this document to refer to either the entity claiming the marks and names or their products.
Festo Didactic disclaims any proprietary interest in trademarks and trade names other than its own.
Safety and Common Symbols
The following safety and common symbols may be used in this manual and on
the equipment:
Symbol Description
Symbol Description
Direct current
Alternating current
Equipotentiality
On (supply)
Off (supply)
The aim of the present series of PLC applications is to integrate the basic
principles previously acquired by designing small-scale systems that can be
found in the real world. Through practical examples, students will gain a strong
knowledge of the PLC field of study.
We hope that your learning experience with the PLC Training System will be the
first step of a successful career.
The present manual includes five Job Sheets that introduce students to PLC
control of the Level-Process Training System, Model 8075-6. Throughout the
manual, students will learn how to program, connect, operate, and troubleshoot
different configurations.
Prerequisite
Safety considerations
Safety symbols that may be used in this manual and on the equipment are listed
in the Safety Symbols table at the beginning of the manual.
Safety procedures related to the tasks that you will be asked to perform are
indicated in each exercise.
Control systems can be harmful when not used properly. Before performing any
of the exercises in this manual, make sure that you respect the following general
guidelines:
• Put your safety glasses on.
• Avoid wearing any loose clothing (e.g., tie, long sleeves, jewelry).
• Have your hair tied out of the way if it is long.
• Clean your work area if necessary.
• Be careful not to spill water on the PLC and the system electrical
components.
Remember that you should never perform an exercise if you have any reason to
think that a manipulation could be dangerous to you or your teammates.
Systems of units
Units are expressed using the International System of Units (SI) followed by units
expressed in the U.S. customary system of units (between parentheses).
Appendices
Appendix B: Ladder Program Design, presents two different methods that can
be employed to program a PLC ladder program.
Accuracy of measurements
The numerical results of the hands-on exercises may differ from one student to
another. For this reason, the results and answers given in this manual should be
considered as a guide. Students who correctly performed the exercises should
expect to demonstrate the principles involved and make observations and
measurements similar to those given as answers.
Batch Process
Batch processes
A way to realize this in practice is to use a condition that is only true during the
first processor scan. With Micrologix Controllers from Allen-Bradley, S:1/15 is a
reserved status bit that is only actuated during the first pass. As an example,
Figure 14 shows how all outputs of slot 0 can be reset at the beginning of the
a
program.
The instruction CLR (clear) sets all the bits in a word to zero.
Figure 15 shows the data file of a timer instruction. The timer status bits that you
can use to control relay-type (XIO and XIC) instructions in your program are
(timer T4:0 given as an example):
• Done bit (T4:0/DN): Set to logic state 1 when the accumulated value
becomes equal to the preset value, and reset to logic state 0 when the
rung becomes false.
• Timer timing bit (T4:0/TT): Set to logic state 1 when the TON rung is
true and the accumulated value is less than the preset value.
• Timer enable bit (T4:0/EN): Set to logic state value 1 when the TON
rung is true.
The timer status words that you can use in your program's comparison
instructions are (timer T4:0 given as an example):
• Preset value word (T4:0.PRE): Final value the accumulated value must
reach to stop timing and set the done bit.
• Accumulated value word (T4:0.ACC): Value accumulated since the
timer was last reset to zero.
Alarms
A good PLC program must be able to cope with all the possible states that the
system can be found in. This includes all the faulty conditions resulting from a
physical failure. For example, the high-level float switch of the Level-Process
Training System may stop working, causing water to spill from over the top of the
cylinder. If this situation occurs, the program should inform the operator, through
an alarm routine, that an unusual situation is happening. In this particular case, a
second float switch may be installed higher on the cylinder to set the alarm and
avoid damage if it ever gets triggered.
Alarms are particularly important when the system is not under direct operator
supervision. Serious alarms may require shutting down the whole process
automatically. Safety here is the main issue.
Batch Process
PROCEDURE
Make sure you are wearing appropriate protective equipment when performing
the jobs. You should never perform a job if you have any reason to think that a
manipulation could be dangerous for you or your teammates.
a
with the alarm).
Some items connected will only be used in the second part of the procedure
section.
Alarm float
switch
EN
HL float
switch
Capacitive
switch
Wall
outlet
2. The ladder program that you are about to write will control a batch process in
which a liquid enters a tank until a given level is reached. The liquid is then
heated and mixed for a predetermined time period (30 seconds) after which it
is evacuated.
The system will work in four different states, as shown in Figure 19.
T1 T2 T3
(START_PB) (HIGH_FS) (TIMER/DN)
First
scan
S1 S2 S3 S4
T4
(LOW_CS)
• State 1 (IDLE): Begins when the program is started (upon first scan) or
after a cycle is completed (when the liquid level is low). Ends when the
START pushbutton is pressed.
• State 2 (FILL): Begins when the START pushbutton is pressed in IDLE
state. Ends when HIGH_FS is triggered.
• State 3 (HEAT): Begins when HIGH_FS is triggered in FILL state. Ends
when the timer is done (after 30 seconds).
• State 4 (EMPTY): Begins when the timer is done in HEAT state. Ends
when the capacitive switch stops detecting water.
Table 6 shows the different outputs that are triggered in each state.
HEATER (O:0/2)
HEAT (3)
MIXER (O:0/3)
The ladder program should only use the RSLogix instructions part of the
following list:
3. Start RSLogix Micro and write a ladder program satisfying all the previous
conditions. Refer to Appendix B if necessary.
Test and comment your ladder program. Correct the program if it does not
behave as expected.
Alarm Implementation
8. Modify the program of the first part of the procedures by creating a fifth state
called FAULT. The new program will work according to Figure 20 state
diagram. The system will be in State 5 (FAULT) when the alarm float switch
is triggered or when the emergency stop pushbutton is pressed. This state
actuates PLC output 5 (I:0/5) for indicating purpose. The system returns to
State 1 (Idle) when the reset pushbutton is pressed.
T9 S5 T8
(ALARM_RES) (ALARM_COND)
T5 T7
(ALARM_COND) (ALARM_COND)
T6
(ALARM_COND)
T1 T2 T3
(START_PB) (HIGH_FS) (TIMER/DN)
First
scan
S1 S2 S3 S4
T4
(LOW_CS)
Figure 20. State diagram of Job Sheet 3 (with the alarm).
9. Download your ladder program to the PLC. Test and comment your ladder
program. Correct the program if it does not behave as expected.