Festo Programming Lab
Festo Programming Lab
Basic Level
Workbook
TP 301
With CD-ROM
Festo Didactic
093314 en
2
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 copy-
right material as the basis for the production of his/her own training docu-
mentation 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 and training centres, 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 plat-
forms 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 elec-
tronic systems, no matter whether in whole or in part, shall require the prior
consent of Festo Didactic.
Preface
The Festo Didactic Learning System for Automation and Technology is
designed to meet a number of different training and vocational require-
ments, and the training packages are structured accordingly:
Basic packages convey basic knowledge spanning a wide range of
technologies
Technology packages deal with important areas of open and closed-
loop control technology
Function packages explain the basic functions of automated systems
Application packages provide basic and further training closely ori-
ented to everyday industrial practice
Fig. 1:
Mounting Frame Pneumatics –
i.e. mobile workstation
Profile Plate
U = 230 V~
p = 6 MPa
Storage tray
Table of contents
Technology package TP301 13
Layout of this workbook 14
Component/exercise table 15
Equipment set TP301 16
Notes on safety 17
Operating notes 18
Section A – Course
Components of a programmable logic controller
Section B – Fundamentals
Appendix
Section C – Solutions
Solution 1: Design and commissioning of a programmable
logic controller C-3
Solution 2: Practical steps for PLC programming C-5
Solution 3: Lamp circuit C-7
Solution 4: Burglar alarm C-11
Solution 5: Press with protective guard C-15
Solution 6: Bell system C-21
Solution 7: Stamping device C-25
Solution 8: Silo control system for two bulk materials C-31
Solution 9: Fire alarm C-35
Solution 10: Drill breakage monitoring C-39
Solution 11: Activating a cylinder C-43
Solution 12: Bonding of components C-47
Solution 13: Embossing device C-53
Solution 14: Clamping device C-57
Solution 15: Lifting device for packages C-63
Solution 16: Lifting and sorting device for packages C-69
Solution 17: Stamping device with counter C-75
The allocation of components and exercises can be seen from the com-
ponent/exercise table.
optional, not included in scope of delivery of equipment set Order No. Quantity
Notes on safety
The following notes should be followed in the interest of safety:
Mount all components securely on the board.
Do not switch on compressed air until all line connections have been
established and secured.
Proceed with care when switching on the compressed air.
Cylinders may advance or retract as soon as the compressed air is
switched on.
Switch off air supply immediately if air lines become detached. This
prevents accidents.
Do not disconnect air lines under pressure.
Do not exceed the permitted working pressure of 8 bar (800kPa).
Observe general safety regulations in accordance with EN 60204-1
(IEC 60204-1).
Use only extra-low voltages of up to 24 V DC.
Observe the data sheets referring to the individual components, in
particular all notes regarding safety.
Operating notes
The following rules should be observed when constructing a circuit:
Block output 2 of the valve, if a single-acting cylinder is actuated by a
5/2-way single solenoid valve in a circuit.
Fig. 2:
Plug for output 2
of a 5/2-way valve
4 2
5 3
1
Section A – Course
Components of a programmable logic controller
To be able to explain the basic design and mode of operation Training aim
of a PLC
To be able to configure and commission a PLC
Nowadays, programmable logic controllers form part of any automation Technical knowledge
process. Fig. A1.1 illustrates the typical configuration of an automation
solution realised by means of a PLC. The control system shown repre-
sents the simpler, non-networked group of PLC applications.
Fig. A1.1:
PC / Automation via PLC
Programming device Display/
Control unit
PLC
Sensors
Actuators
Fig. A1.2:
System components PLC-program
of a PLC
Sensors Actuators
PLC program
PLC programs consist of a logic sequence of instructions. The control
program is stored in a special, electronic readable memory, the so-
called program memory of the PLC. Special RAMs with back-up battery
are used during the program development, since its contents can always
be changed again very quickly.
After commissioning and error-free function of the controller it is a good
idea to transfer the PLC program unerasably to a read-only memory,
e.g. an EPROM. If the program is executed, it will be processed in con-
tinuous cycles.
Signals
Input signals reach the PLC via sensors. These signals contain infor-
mation about the status of the system to be controlled. It is possible to
input binary, digital and analogue signals.
A PLC can only recognise and output electrical signals. For this reason,
non-electrical signals are converted into electrical signals by the sen-
sors. Sensor examples are:
Push buttons, switches, limit switches, proximity sensors
Output signals influence the system to be controlled. The signals can be
output in the form of binary, digital or analogue signals. Output signals
are amplified into switching signals via the actuators or converted into
signals of other energy forms. Actuators examples are:
Lamps, buzzers, bells, contactors, cylinders with solenoid valves,
stepper motors
Problem description A control task is to be solved via a programmable logic controller (PLC).
Familiarise yourself with the basic design of a PLC.
Positional sketch
Implementation To carry out the exercise using the worksheets, refer to Section B of the
workbook and your PLC data sheet or manual.
WORKSHEET
Question 2:
What are the basic modules making up the central control unit of a pro-
grammable logic controller?
Question 3:
How is electrical isolation achieved between sensor/actuator signals and
the PLC?
WORKSHEET
Operating voltage
Nominal voltage
Permissible voltage range
Current consumption
Inputs
Number
Input current
Input level
Outputs
Number
Switching logic
Output voltage
Output current
Configure the PLC in accordance with the notes in the relevant data
sheet or manual.
Section C – Solutions
Components of a programmable logic controller
What are the basic modules making up the main processing unit of a Question 2
programmable logic controller?
The sensor/actuator signals and the PLC are electrically isolated via an Answer
optocoupler. The main processing unit is thus separated from the exter-
nal circuit of the sensors and actuators. Interferences in these circuits
therefore cannot damage the controller.
Block diagram of an
input module
Error Optocoupler Signal to
Input- Signal
signal voltage delay the
detection control unit
Operating voltage
Nominal voltage 24 V DC
Permissable voltage range 16 to 30 VDC
Current consumption approx. 160 mA
Inputs
Number 21
of which 1 is a counter input
Input voltage 6 mA
Input level log. 0 = 0 to 5 V
log. 1 = 11 to 30 V
Outputs
Number 14 Transistor outputs
Type positive switching
Output voltage Operating voltage – 2 V