Professional Documents
Culture Documents
PLC Applications
Wind Turbine
1-800-Lab-Volt
www.labvolt.com
85303-20
|3085303200000+~
PLC Applications
Wind Turbine
A
ELECTRIC POWER / CONTROLS
PLC APPLICATIONS
WIND TURBINE
by
the Staff
of
Lab-Volt Ltd.
ISBN 978-2-89640-331-8
Printed in Canada
June 2009
Foreword
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.
III
IV
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VII
V
VI
Introduction
The present manual includes five Job Sheets that introduce students to PLC control
of the Wind Turbine System, Model 8075-50. Throughout the manual, students will
learn how to program, connect, operate, and troubleshoot a simple nacelle control
unit PLC.
Prerequisite
Before performing the Job Sheets in this manual, it is recommended to review Lab-
Volt's Programmable Logic Controller, Basic Principles Using the Programming
Software student manual (P/N 36017), which explains how to use the programming
software and the most common PLC instructions. If any difficulty is encountered
while performing the exercises, the programming software's user guide and help
menu can assist students in problem solving.
Safety Considerations
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:
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.
Equipment Required
The following items are required to perform the exercises in this manual:
Note: The ladder programs shown in the student's and the instructor's
manuals were written with Rockwell's RSLogix 500 programming software
for use with an Allen-Bradley MicroLogix PLC. However, equivalent ladders
can be written for other PLC models.
VII
Introduction (cont’d)
WARNING!
The nacelle (Model 3297) is designed to rotate around its yaw axis with the
assistance of the electrical motor. Avoid manually turning the nacelle as this
may damage the clutch.
Appendices
Appendix B: Ladder Program Design, presents two different methods that can be
employed to program a PLC ladder program.
Appendix C: Boolean Algebra and Digital Logic, shows the logical relationships
that can be employed with normally-open (NO) and normally-closed
(NC) contacts.
VIII
1
The energy needs of the world population are continuously increasing along with the
development of new technologies and the industrialization of emergent countries.
Electricity is one such indispensable resource needed in many aspects of modern
life. It is usually generated in power plants of the thermal type which uses one sort
or another of fuel (coal, petroleum, fissionable elements…) to cause a heat-
generating reaction driving turbines to produce electricity. Each method has its
drawbacks such as environmental pollution, management of dangerous waste and
limited supply of fuel. Power plants using renewable resources are becoming much
more prevalent as the focus is shifting towards environmentally-sound methods of
electricity production. Energy produced by such plants comes from a natural
resource – such as water, sunlight, wind, tide – acting as a substitute to conventional
fuel in the power-generation process.
A wind turbine is a device designed to extract the energy stored in the wind in order
to convert it to electricity. The wind is naturally blowing at various speeds and from
different directions as time passes. Once a location with a good wind potential has
been found, a wind turbine or an array of them can be installed to harness that
energy. The wind will propel the aerodynamically-designed blades of the rotor up to
some angular speed thus driving a power generator inside the nacelle of the wind
turbine to produce electricity.
The nacelle is the nerve center of the wind turbine. It typically includes all the
mechanical devices (shafts, gearbox…) necessary to transmit mechanical power
from the hub of the rotor to the generator. It also contains a braking system to slow
or stop the rotor, a system to control the orientation of the nacelle on its yaw axis,
and a control unit automating the operating procedures according to the wind
conditions or the maintenance needs. Other essential parts of the nacelle are the
meteorological instruments required to monitor the speed of the wind (anemometer)
and its direction (wind vane).
Figure 1-3 shows the Wind Generator from Lab-Volt. It is a device used to produce
a constant wind whose strength, as measured by the anemometer, can be varied
simply by moving the generator towards or away from the measuring instruments of
the nacelle.
1. Wind Outlet
2. ON/OFF Switch
3. 24 V DC Power Input
The control unit inside a nacelle is effected in the simulation by a PLC module
monitoring the outputs of the instruments to control and optimize the operation of the
wind turbine.
The PLC has control over the yaw motor of the nacelle to track the wind or move
away from it as the situation dictates. The different programs necessary to implement
the control routines proposed in the following job sheets will have to be programmed
on the PLC with the help of a computer running a ladder programming software.
The anemometer is the device measuring the speed of the wind as it blows on the
wind turbine. The Wind Speed output is a frequency output, a pulse being generated
every time the anemometer completes a revolution.
In the following job sheets it will be required to evaluate the wind speed. This is of
prime importance given that a typical wind turbine starts operating at a wind speed
above 4 m/s (about 15 km/h – 9 mph) and has to cut-off to avoid damaging its
components when the speed gets higher than 17 m/s (about 60 km/h – 37 mph).
Using a timer allows for the calculation of the wind speed when a dividing component
is added to the ladder logic. A counter can be added to the design if the wind speed
is to be averaged over the course of a few revolutions.
Divide Instruction
Precise scaling of the anemometer is not required for the following job sheets. A
value for X (see previous paragraph) must be determined such that the calculated
wind speed in the strongest wind condition attainable – i.e. when the wind generator
is closest to the nacelle – is about 65 km/h (40 mph).
OBJECTIVES
PROCEDURE
G 1. The first step in using the wind turbine application is to establish the
requirements of the control routine. The program to be written for this Job
Sheet must allow you to perform the following tasks:
• The wind speed is calculated using a timer and a divider. A pilot light is
energized whenever the wind becomes too weak to drive the wind
turbine (15 km/h – 9 mph) and another one lights up if it becomes too
strong (60 km/h – 37 mph).
PLC
PLC ADDRESS CONNECTED TO / USED AS
TERMINALS
G 4. Think of an efficient ladder design to calculate the speed of the wind. You
should be able to write a program with as few as two rungs using only XIC,
XIO, NEQ, DIV, and TON instructions. The NEQ (Not Equal) instruction is
necessary to avoid division by zero. Such an undefined operation results in
a computational error and must be avoided. The speed value should be
stored in a file as a Float by choosing destination F8:0. Sketch this ladder
program in the space provided.
G 5. Two pilot lights are used to indicate if specific wind conditions are met or
not. Using comparator logic, translate those conditions into a short ladder
program which you can draw in the space provided.
Reminder:
O:0/4 is lit if the wind speed is greater or equal to 60 km/h (37 mph).
O:0/5 is lit if the wind speed is lower or equal to 15 km/h (9 mph).
Can you think of another indicator which might be useful in the context of a
wind turbine operation? How would you proceed to implement it?
G 6. Start RSLogix 500 and compile all the results obtained so far in a single
ladder program.
Name: Date:
Instructor's approval:
Changes in the strength of the wind (a strong gust of wind for instance) will induce
sudden loads on the mechanical components of a wind turbine. As well, abating
winds can quickly bring the rotor to a standstill. This must be taken into account by
the engineers designing wind turbines as they must devise ways to attenuate those
nuisances and their impact on energy production.
This job sheet builds upon the previous one by implementing an automatic tracking
mode on top of the wind speed measurements and manual control of the nacelle
orientation.
All the operations encountered so far were digital. This means that the different
inputs and outputs were either closed or open: there was no in-between. Not
surprisingly, some devices do require the use of a continuous signal, i.e. analog
signal, to convey information more efficiently. This is the case of the wind vane which
outputs an electrical signal whose tension is proportional to its orientation. A reading
of 0 V out of a possible 10 V means that the wind vane is at its origin (It could be
pointing North if calibrated according to this choice) whereas a reading of 5V would
mean the wind vane is halfway through its cycle (and now pointing South). Of
course, intermediary output levels can be produced, making it possible to
discriminate the orientation of the wind vane up to the precision of the instruments.
Because the PLC is digital, a device must be able to manage analog signals and
translate them for the PLC: This is the role of the analog I/O expansion module. Input
0 of the expansion module will be used to read the input of the wind vane. The result
will be a binary number stored in I:1.0.
Note: Adding the Analog Expansion Module to the PLC requires specifying
in the I/O Configuration of RSLogix 500 that the module is connected to
the PLC. Select the corresponding part in RSLogix's menu.
The orientation of the incoming wind is chosen by the user by aligning the arrowhead
of the wind vane with the desired direction and locking it in place by snugging up the
knob of the wind direction selector.
This analog apparatus measures the orientation of the incoming wind with respect
to the nacelle’s current position. This means that when the tail of the wind vane is
aligned with the rear of the nacelle (the C-shaped part connected to the yaw motor),
a constant output will be produced. If the wind direction changes in a clockwise
manner, the output voltage will increase until a maximum of 10 V is reached to then
jump discontinuously to 0 V and continue increasing. In a similar manner, a rotation
in the counter-clockwise direction will cause a decrease in the output voltage until
the minimum of 0 V is reached to then jump discontinuously to 10 V and continue
decreasing.
SCP Instruction
The Scale with Parameters (SCP) instruction produces a scaled linear relationship
between the specified input and output. For instance, to convert input I:1.0 having
a value of 500 (minimal input value of 0 and maximal input value of 2000) into a new
scale (minimal scaled value of 0 and maximal scaled value of 10000) one would
proceed as in Figure 2-1. The result, 2500, is stored in L9:0, a file for long integers
(integers with thirty-two bits, four bytes, or two words).
LIM Instruction
The Limit Test (LIM) instruction provides a simple method to test an input (Test)
according to logical conditions. To test whether input F8:0 is larger or equal to 5 (Low
Limit) and smaller or equal to 30 (High Limit) one would proceed as in Figure 2-2.
The result is a true rung if the input is within the specified parameters, a false one
otherwise.
OBJECTIVES
• Learn to use an analog device and a PLC to measure the direction of the wind.
PROCEDURE
G 1. The control routine of this job sheet is an improvement over the preceding
one. Review the required specifications for this project:
• The analog output of the wind direction output must be read and
rescaled by the PLC (saved in L9:0).
• A limit instruction will test the wind speed to make sure the wind turbine
is in its operating range. This condition will be saved as a control bit (in
B3:0/0).
XIC - XIO - OTE - TON - DIV - NEQ - LIM - SCP - GRT - LES -
GEQ - LEQ
G 2. The I/O connections are the same as those of Job Sheet 1 (see Table 1-1)
with the following additions:
CAUTION!
The analog input module which is part of the PLC has two
input modes available. One is for current signals while the
other is for voltages. Only the voltage mode must be used in
the context of this experiment and the upcoming ones. To
avoid damaging the equipment, make sure switches 1 and 2
are both in the OFF position as this corresponds to the
voltage mode. Refer to Figure 2-4.
G 3. Start RSLogix 500, open the program of Job Sheet 1 and save it under a
different name.
G 4. Open file I1- INPUT and observe line I:1.0. This string of 0 and 1 is a binary
number related to the angular position of the wind vane relative to the
nacelle. If you prefer a decimal representation, simply choose that option in
the radix pull-down menu in the lower-right corner of the window.
As you turn the wind vane, observe how this number changes. What are its
maximal and minimal values?
Maximum Value:
Minimum Value:
G 6. The wind vane can be used to determine the orientation of the wind with
respect to the nacelle. First, make sure you understand how the value of
L9:0 is modified as the wind or the nacelle changes its orientation.
Experiment with the set-up and make sure you can answer the following
questions:
• What happens to the scaled value as you change the orientation of the
wind vane in the clockwise direction? In the counter-clockwise
direction?
• What value do you obtain when the wind vane is aligned with the
nacelle? Is this value the same whatever the orientation of the nacelle
is?
Name: Date:
Instructor's approval:
The two precedent job sheets allowed for the programming of a control routine
typical of a wind turbine. However, more parameters must be considered to really
account for the complexity of a wind turbine. In this Job Sheet, emphasis will be
given to the number of turns made by the wind turbine around its yaw-axis as it
tracks the wind during its automated routine.
This seemingly minor parameter becomes crucial when you consider the fact that,
in most models of horizontal-axis wind turbines, power cables run from the power
generator in the nacelle down to the ground where the power is then transferred to
the grid. As the nacelle rotates away from its initial position to track the wind, the
cables are subjected to mechanical stresses. Of course, they are designed to
withstand a few revolutions before the mechanical tension becomes worrisome.
Nonetheless, it is mandatory to keep track of the number of turns made from a
reference position in either the clockwise or counter-clockwise direction to avoid
damaging the cables or components of the nacelle.
A device will keep track of the angular position of the nacelle and a detector will
prevent any further displacement if a predetermined limit is reached. If the limit is
reached while the wind turbine is operating, a shutdown sequence will be initiated.
This procedure stops the rotor and unwinds the cables until the nacelle is back to its
reference position. Such a sudden shutdown is necessary but its associated
downtime can be costly in terms of energy production. This is why it is much
preferred to have a wind turbine return to its original position whenever it is not in use
or if the wind conditions are not within the operating range.
The Nacelle Simulator is equipped with two devices to keep an account of its angular
position:
• A turn-counter sending a signal every time the nacelle passes by the detector.
This allows for a reliable count of the number of turns completed when the signal
is coupled to information about the direction of rotation of the nacelle at the time
the detector was activated.
• A limit-detector sends a signal whenever the cable in the nacelle becomes too
tightly wound. This signal should be used to override standard operation and
initiate a procedure to rotate the nacelle back to its home position.
Both devices can interface with the PLC from the output panel of the nacelle. Based
on the design of your program, you can choose to use the normally closed output or
the normally open output. Do not forget to power up each output you plan to use. It
is important to know that the nacelle simulator is designed to perform a total of about
twelve turns from one end of its course to the other.
The Counter Up (CTU) and Counter Down (CTD) instructions are used to increment
or decrement a counter (C5:0 or C5:1). The Done bit (DN) is set to 1 whenever the
accumulated value is greater than or equal to the preset value.
These instructions and others pertaining to counters are described in greater detail
in section 6: Counters of the PLC Basics Programming Principles - Student Manual
(36017-00). Refer to it if you need more information.
MOV Instruction
The Move (MOV) instruction is a polyvalent tool used to assign a value (Source) to
a destination whenever the rung containing the MOV instruction is true. This
instruction can be used to set a timer or a counter to some value. It also works with
input, output, float, and bit files. To set the accumulated value of a counter to 0 with
a MOV instruction, one would proceed as shown in Figure 3-2.
OSR Instruction
The One Shot Rising (OSR) instruction is used to make sure an event is triggered
on a false-to-true transition. The Storage Bit remembers the state of the rung during
the preceding cycle and the Output Bit is set to one on the false-to-true transition for
the duration of a single program scan. This is usually done to trigger an event only
once even if the detector remains true for a few cycles. The OSR is reinitialized when
the rung becomes false. To apply an OSR instruction to input I:0/1 where the storage
bit is B3:0/4 and the output bit B3:0/5, proceed as in Figure 3-3.
JSR Instruction
The Jump to Subroutine (JSR) instruction causes the controller to stop executing its
main program to jump to a different one. A subroutine is useful whenever the logic
of a control routine can be decomposed into a main program and one or more
specific programs which can be called from the main ladder. Such an approach
allows for a modular and structured approach to programming and encourages the
re-use of subroutines whenever the main program has a use for them. It also serves
the purpose of separating a long program into smaller logical elements which are
simpler to grasp.
Choosing file number 3, the next step is to create a new ladder file by right-clicking
on Program Files and choosing new. Name the new file and assign number 3 to it.
The new file can now be edited as in Figure 3-4, part 3 to implement a summation
subroutine. Return (RET) is the last instruction necessary in this subroutine. It tells
the PLC to go back to the main ladder program to continue where it left off with the
usual program. This constitutes a subroutine which can be called whenever it is
necessary to add two numbers.
OBJECTIVES
• Use a wide range of basic instructions as well as MOV, OSR, and JSR.
• Implement a subroutine taking charge of moving the nacelle back to its home
position.
PROCEDURE
G 1. This job sheet builds upon its predecessors and adds important
functionalities to the control of a nacelle. The improvements and additions
to make to your previous ladder are:
• A section of the ladder program must use a counter to keep track of the
number of completed turns. The counter is initialized to 6 and
increments for every clockwise turn whereas it decrements for every
counter-clockwise turn.
• A soft reset routine must be added to the automatic mode. The soft
reset returns the nacelle to its home position when the automatic mode
is on and if the wind is too weak. Normal operation resumes if the wind
speed becomes acceptable again.
• A homing mode will override all commands and return the nacelle to its
home position where it will resume its operations. This mode will be
triggered by the limit detector if the nacelle reaches its clockwise or
counter-clockwise limit. Because of its specific nature, the homing mode
must be implemented as a subroutine of the main ladder program.
G 2. The I/O connections are the same as those of Job Sheet 2 (see Table 2-1)
with the following additions:
G 3. Start RSLogix 500, open the program of Job Sheet 2 and save it under a
different name for this Job Sheet.
G 4. Design a program to count the number of turns of the nacelle. Use an OSR
instruction to trigger a CTU or a CTD instruction based on the direction of
rotation of the nacelle when the turn-counter detector makes a false-to-true
G 5. Modify the automatic mode to implement the soft reset procedure described
in step 1.
XIC, GRT, and LES instructions should be sufficient for the requested
changes. Test your program.
G 6. The Homing mode is the last mechanism to implement in this job sheet.
When the Homing mode is not yet activated and the motor is turning in the
clockwise direction:
When the Homing mode is not yet activated and the motor is turning in the
counter-clockwise direction:
Pilot light (O:0/2) is energized whenever the Homing mode (B3:0/3) is on.
A RET instruction returns to the main program after each scan of the
subroutine.
You should also modify the main program to include the following elements:
– The control bits should have control over the yaw motor when the
Homing mode is true.
– The pilot light indicating that the Tracking mode is on should not light up
if the Homing mode is on.
– A rung must include a JSR to invoke the subroutine whenever the limit
detector is activated. The same rung should also call the subroutine
back as long as the Homing mode is activated.
Name: Date:
Instructor's approval:
Like practically any other device, Wind Turbine systems are subject to breakdown
and require maintenance from time to time. A good way to start troubleshooting a
PLC-controlled system is to observe the faulty equipment in order to determine
where the problem is located. The observed symptoms may often point to a single
component or specific part of circuitry, and no further search is necessary.
For example, the automatic mode not behaving in the expected way might point to
a programming problem. If, on the other hand, the PLC does not receive a particular
input signal, this may indicate that an electrical connection is broken.
Once the problem has been related to one branch or to a specific section of the
system, each component in that area can be checked out one at a time. Once a
defective component has been located, you must be cautious before drawing any
conclusions. In certain cases, the problem may be caused by more than one
defective component. Therefore, you must make sure that the malfunction
discovered plausibly explains the observed problem. If not, there is likely another
defective component which would complete the explanation of the problem.
A situation where many errors are likely to surface is during the startup of a new
installation. Under such circumstances, it is not unusual to observe more than one
electrical (e.g. bad connections), programming (e.g. unhandled situation), or
mechanical (e.g. leaking tubing) problem.
OBJECTIVE
PROCEDURE
G 2. Connect the inputs and outputs as in Job Sheet 3. Download the program
provided by your instructor to the PLC. Run the program and observe
carefully how the system should work when no problem is present.
G 3. Open the fault-panel of the nacelle simulator. Activate fault number three.
Most problems with the Nacelle Simulator system are electrical or PLC
program related. During this guided troubleshooting method, it is presumed
that you are performing a system startup and that the problem is of unknown
origin.
Observation
G 4. The first logical step is to observe the behavior of the system and determine
if there are any anomalies. Operate the system and compare it to its normal
behavior. Is anything unusual?
G Yes G No
Basic Verifications
G 5. Your task is to discover where the problem is located and what is causing
it. Before you invest a lot of time and energy on a thorough investigation of
the system, it might be a good idea to verify a few basic things. Take a look
at the system and answer the following questions. If you answer "No" to any
of the questions, perform changes to remedy the situation.
G Yes G No
G Yes G No
Are all the electrical leads connected correctly (i.e. as in Job Sheet 3)?
G Yes G No
G Yes G No
G 6. The next step is to determine which problem type relates to the observed
malfunction.
Programming Errors
G Yes G No
Put RSLogix in Run mode and force the different I/O bits. Do the indicator
lights on the PLC module light up as they should?
G Yes G No
Based on these observations, which type of problem do you think you are
facing?
a. Programming
b. Electrical
c. Mechanical
d. Other
WARNING!
Electrical Troubleshooting
G 8. Remove the inserted fault. Make sure that the system is now working as it
should.
G 9. Keep the same setup and program. Ask your instructor to insert one or two
faults in the system. The fault(s) may be electrical or program related.
G 10. Locate the fault(s) using a structured method. What conclusion can you
draw from your inquiry concerning the system's problem(s)?
Name: Date:
Instructor's approval:
The features of the trainer front panel are described below (refer to Figure A-1).
7. PLC output status indicators: LED's indicating the current status (logic state 0
or 1) of the bits associated with PLC outputs 0 through 9 in the output data file
of the PLC.
8. PLC input status indicators: LED's indicating the current status (logic state 0
or 1) of the bits associated with PLC inputs 0 through 13 in the input data file of
the PLC.
9. I/O bus interface connector: used to connect an expansion I/O module to the
controller, through a flat ribbon cable.
10. PLC status indicators: LED's indicating the current status of the controller:
• POWER: this LED is on when the PLC is properly powered. It is off when
there is no input power to the PLC or when a power error condition occurs.
• RUN: this LED is on when the PLC is executing a program in the Run mode.
It is off when no program is being executed.
• FAULT: this LED is off when there is no fault. It is on when the controller
hardware is faulty. It flashes when a major hardware or software fault has
been detected.
• FORCE: this LED is on when one or more PLC inputs or outputs are forced
on or off. It is off when no forces are installed.
• COMM 0: This LED is off when the controller is not transmitting data via the
PLC communication port (channel-0 port). It is on when the controller is
transmitting data via this port.
11. Power switch: used to turn the PLC Trainer on and off.
12. Pushbutton switch 1: pushbutton switch of the momentary type with normally-
open (NO) contacts, that can be used as an input device to the PLC. When the
switch pushbutton is pressed, the NO contacts go from open to closed, causing
a DC voltage of 24 V to be present to the plug-in jack next to the switch
14. Toggle switch 4: toggle-operated switch with normally-open (NO) contacts, that
can be used as an input device to the PLC. When the switch toggle is moved
upward, the NO contacts go from open to closed, causing a DC voltage of 24 V
to be applied to the plug-in jack next to the switch toggle. When the toggle switch
is moved downward, the voltage is removed from the plug-in jack.
15. Jack of toggle switch 4: intended to be connected to any of PLC input jacks 0
through 13, using a connection lead. If, for example, the jack is connected to
PLC input jack 9, moving the switch toggle upward will cause a DC voltage of
24 V to be applied to PLC input jack 9, thereby activating PLC input 9. Moving
the switch toggle downward will remove the DC voltage, de-activating PLC
input 9.
16. 24-VDC output: internally connected to the 24-VDC source within the trainer.
The common (black) terminal is used for external devices connected to the PLC
output jacks. Also, when external 24-VDC devices are connected to the PLC
input jacks, the common jack must be connected to the common of the external
24-VDC source that powers these input devices.
17. AC-line voltage neutral jack: internally connected to the neutral conductor of
the AC-line voltage source within the trainer. Used as the neutral terminal for
external, AC-line voltage devices connected to the PLC output jacks. Also, when
external AC-line voltage devices are connected to the PLC input jacks, the
neutral jack must be connected to the neutral of the external AC-line voltage
source that powers these input devices.
18. Earth ground jack: internally connected to the ground conductor of the AC-line
voltage source within the trainer. When external AC-line voltage devices are
connected to the PLC input and output jacks, the earth ground jack of the trainer
must be connected to the earth ground of all PLC input and output devices.
19. 24-VDC jack of PLC input 0: permits activation of PLC input 0, using a
DC voltage of 24 V. This voltage can come from one of the seven switches
mounted on the trainer front panel, or from external PLC input devices rated at
24 V DC.
20. AC-line voltage jack of PLC input 0: permits activation of PLC input 0, using
the AC line voltage. This voltage must come from external PLC input devices
rated at the AC line voltage.
Note: Various types of AC-line rated, PLC input devices are available from
the Lab-Volt Industrial Controls Training System, Model 3100: pushbutton
switches, limit switches, float switch, cam switches, magnetic sensors,
photoelectric sensors, etc.
21. V1 toggle switch: used to select the voltage at which the external devices
connected to the first group of PLC output jacks (0 through 4) will be energized:
24 V DC or the AC line voltage. When the switch toggle is set to the upward
(24-VDC) position, a DC voltage of 24 V is applied to those within the lower-
diameter jacks 0 through 4 whose associated PLC output is activated. When the
switch toggle is set to the downward (AC-line voltage) position, the line voltage
is applied to those within the larger-diameter jacks 0 through 4 whose associated
PLC output is activated.
22. V2 toggle switch: used to select the voltage at which the external devices
connected to the second group of PLC output jacks (5 through 9) will be
energized: 24 V DC or the AC line voltage. When the switch toggle is set to the
upward (24-VDC) position, a DC voltage of 24 V is applied to those within the
lower-diameter jacks 5 through 9 whose associated PLC output is activated.
When the switch toggle is set to the downward (AC-line voltage) position, the
line voltage is applied to those within the larger-diameter jacks 5 through 9
whose associated PLC output is activated.
23. PLC output 0 lamp: This lamp is on when PLC output 0 is activated (that is,
when the bit associated with PLC output 0 in the PLC output data file is at
logic 1, or when this bit is forced on). The lamp is off when PLC output 0 is
deactivated (bit associated with PLC output 0 at logic state 0, or forced off).
24. 24-VDC jack of PLC output 0: when PLC output 0 is activated, a DC voltage
of 24 V is applied to this jack if the V1 toggle switch is set to the
24-VDC position. When PLC output 0 is deactivated, there is no voltage applied
to that jack.
25. AC-line voltage jack of PLC output 0: when PLC output 0 is activated, the
AC line voltage is applied to this jack if the V1 toggle switch is set to the AC-line
voltage position. When PLC output 0 is deactivated, there is no voltage applied
to that jack.
26. PLC output 5 lamp: This lamp is on when PLC output 5 is activated (that is,
when the bit associated with PLC output 5 in the PLC output data file is at
logic 1, or when this bit is forced on). The lamp is off when PLC output 5 is
deactivated (bit associated with PLC output 5 at logic state 0, or forced off).
27. 24-VDC jack of PLC output 5: when PLC output 5 is activated, a DC voltage
of 24 V is applied to this jack if the V2 toggle switch is set to the
24-VDC position. When PLC output 5 is deactivated, there is no voltage applied
to that jack.
28. AC-line voltage jack of PLC output 5: when PLC output 5 is activated, the
AC line voltage is applied to this jack if the V2 toggle switch is set to the AC-line
voltage position. When PLC output 5 is deactivated, there is no voltage applied
to that jack.
29. Expansion I/O spacing: Permits the addition of an optional input/output module
(Lab-Volt Model 3244) to the PLC. This module provides two analog inputs and
two analog outputs, both rated at 0-10 V DC or 4-20 mA. Other types of analog
I/O expansion modules are available as options.
Figure A-2 shows the back panel of the trainer. The features of this panel are
described below.
1. 21-pin Jones connector: used to connect the PLC Trainer to the Lab-Volt
Mechanical Process Simulator, Model 3290, via a multiconductor cable. This
simulator, a linear position control system, is used to achieve PLC control of
sequenced production lines in the second level of the Lab-Volt PLC Training
Program.
3. 24-VDC RESET button: used to reset the breaker of the built-in 24-VDC voltage
source of the trainer.
4. P-SIM to PLC Interface connector: used to connect the PLC Trainer to the P-
SIM to PLC Interface, Model 3243, through a DB-25 flat cable. The interface,
which converts RS-232 signals into PLC signals, and vice-versa, is required for
5. AC-line voltage RESET button: used to reset the breaker of the built-in AC-line
voltage source of the trainer.
Figure A-3 shows the Micrologix 1100 side and top views.
The features of the trainer front panel are described below (refer to Figure A-1).
1. Ethernet Port
5. Battery
7. Battery Connector
9. Memory Module
11. PLC status indicators: LED's indicating the current status of the controller:
• POWER: this LED is on when the PLC is properly powered. It is off when
there is no input power to the PLC or when a power error condition occurs.
• RUN: this LED is on when the PLC is executing a program in the Run mode.
It is off when no program is being executed.
• FAULT: this LED is off when there is no fault. It is on when the controller
hardware is faulty. It flashes when a major hardware or software fault has
been detected.
• FORCE: this LED is on when one or more PLC inputs or outputs are forced
on or off. It is off when no forces are installed.
• PLC outputs 0 through 5 are internally connected to 6 jacks mounted at the right
bottom of the front panel. Each jack corresponds to a PLC output, and permits
connection of external PLC output devices, such as relay coils and motor drives,
that are energized or de-energized as the controller program is being executed.
The PLC output jacks are hardwired into two groups of three, each of which can
provide 24-VDC voltage for energizing the PLC output devices. Beside each jack
is a light indicating the status of the corresponding PLC output.
The features of the trainer front panel are described below (refer to Figure A-2).
2. Analog Inputs IV1 and IV2: these two jacks are connected to the PLC 0-10
VDC analog inputs.
7. 24-VDC Output: internally connected to the 24-VDC source within the trainer.
8. PLC Output Lamps: these lamps are on when their PLC output is activated
(that is, when the bit associated with PLC output in the PLC output data file is at
logic 1, or when this bit is forced on).
Figure A-5 shows the back panel of the trainer. The features of this panel are
described below.
2. Fault Switch Panel: This panel conceals the eight fault switches of the PLC
trainer.
Figure A-6 shows the right side panel of the trainer. The features of this panel are
described below.
State Diagram
One way to describe the operation of many systems is to identify the states they go
through. Examples of microprocessor-based state systems are traffic lights, vending
machines, air conditioners, garage doors, and microwave ovens. For instance, a
microwave oven may go through the following four-state sequence, as shown in the
state diagram of Figure B-1:
1- IDLE (S1)
2- PROGRAM (S2)
3- COOK (S3)
4- ALARM (S4)
1- IDLE (S1)
However, more than one path can exist between the states. For example, the
microwave oven can also go from COOK to IDLE if the CANCEL button is pressed
while cooking, as shown in Figure B-2. All the possible routes between two states
are called transitions and depend on specific conditions like a time delay or an
input. In our example, there are three inputs and six transitions:
Inputs:
*In this demonstration, only a “10 Seconds Plus” key touch is implemented, to
simplify the case.
• T1: from IDLE to PROGRAM state upon the touch of the KEYPAD.
• T2: from PROGRAM to COOK state upon the touch of the START button.
• T3: from COOK to ALARM state after the cook time has elapsed.
• T4: from ALARM to IDLE state after the alarm time has elapsed.
• T5: from PROGRAM to IDLE state upon the touch of the CANCEL button.
• T6: from COOK to IDLE state upon the touch of the CANCEL button.
State Table
State tables are a means of detailing the conditions relative to a particular state. In
this way, they complement well the state diagrams. Table B-1 shows what the
microwave state table looks like. Each line represents a different state. Columns
represent the outputs. Zeros mean that the outputs are off, whereas ones show
energized outputs. In our example, there are five outputs:
Outputs:
Outputs
State
O4 O3 O2 O1 O0
Idle 1 0 0 0 0 0
Program 1 1 0 0 0 0
Cook 3 1 1 0 1 1
Alarm 4 0 0 1 0 0
Note: State tables can be implemented in PLC data files, where they can
be particularly useful upon a change of state. During the transition period,
an entire word of data can be transferred from the data file to the output
file, hence updating all outputs simultaneously.
Flowchart
Boolean Equations
Although you can manage building your ladder programs only with the help of the
previous tools, a more structured approach is to convert your state diagram into
Boolean equations. These equations can then be translated into ladder logic.
Once the state diagram, state table, and flowchart have been defined, the next step
is to write an equation for each state. Each equation takes into consideration the
conditions upon which the system can be stable in a given state:
– The system stays in its present state or a transition brings the system to that
state.
AND
By taking the same example as previously (see Figure B-2), we obtain this first
equation:
• The system can be in state S1 if it already was in that state (Figure B-4).
• The system can also get to State 1 if transition T4, T5, or T6 happens
(Figure B-5).
The same method can be applied to the other three state equations:
Where,
Thirdly (Figure B-7c), the states are updated to reflect the changes that have
happened in the previous equations.
Finally (Figure B-7d), the states are used to turn specific outputs on. This last step
can be accomplished by observing where 1's are located in the state table.
Another method to design a ladder program is with the help of a timing diagram. An
example is presented here to illustrate this method. In this example, a batch heating
process is controlled by a PLC.
Context
You are asked by the manager of a dairy plant to write a PLC program that controls
the process of Figure B-8. In this process, milk is pumped into a reservoir until the
maximum level is reached. After that, the liquid is mixed and warmed up by a heating
element until the thermostat senses 200 °F. At that point, the system stops heating
and a solenoid valve opens to evacuate the milk until the minimum level is reached.
The heated milk will then be transferred to other sections of the plant where it will
become yogurt after having been cooled, inoculated with bacterial culture, incubated,
and refrigerated.
From the system schematic (Figure B-8), we can deduce the inputs and outputs
present in the system:
Inputs:
• I0: ON switch
• I1: MIN level sensor
• I2: MAX level sensor
• I3: THERMOSTAT
Outputs:
• O0: Pump
• O1: Heating element
• O2: Mixer
• O3: Solenoid valve
Once the inputs and outputs are defined, we are ready to construct a timing diagram.
Timing diagrams show the relationships of the different inputs and outputs on a time
basis. Figure B-9 shows what the timing diagram of the milk heating subsystem can
look like. First, the time axis is drawn and the variables written in a column. Then, the
state (OFF or ON) of the I/O variables upon time is drafted. This operation is
accomplished by portion, because each change in a variable state is likely to have
an impact on other variables. At this time, some time durations can be approximated
since, for example, the exact time to heat the liquid has not yet been tested.
Note: Timing diagrams, because they show the system sequence, are also
useful for testing purposes, to verify the behavior of the system.
Once the timing diagram is drawn, it is time to observe the relationships between the
different input and output variables. From that inspection, you should be able to
identify the states the system goes through. In our example, we can identify three
different system states:
We can now note which inputs and outputs are actuated during a specific state on
the timing diagram. This information will allow us to write the ladder program either
directly or by writing down the three state equations before. The final result is shown
in Figure B-10 below.
There are three basic operators in Boolean algebra. They are logical NOT, logical
AND and logical OR.
The logical NOT operator inverts a function or variable. The inverse of 1 is 0 and the
inverse of 0 is 1. The logical NOT is indicated by a bar above the function or variable,
such as:
The logical AND operator is performed on two or more variables such as A or B. The
result of "ANDing" two or more variables is a logical 1 if every variable is a logical 1.
The result is a logical 0 if any variable is a logical 0. The logical AND is indicated by
a dot between the variables, such as:
A@B
A+B
1. Statements within brackets and under bars are performed first. A bar over
two or more variables is considered the same as placing the variables
within brackets. In this case, the statement under the bar is performed
first, and then inverted.
2. Perform all NOT (invert) functions on single variables.
3. Perform all AND functions.
4. Perform all OR functions.
Postulates are the basic assumptions from which the properties, rules, and theorems
of a system can be deduced.
The postulates that are the basis for Boolean algebra are listed in Table C-2.
1. X = 0 or X = 1 5. 1@1 = 1
2. 0@ 0 = 0 6. 1@ 0 = 0, 0@1 = 0
3. 1+1=1 7. 1 + 0 = 1, 0 + 1 = 1
4. 0+0=0
The theorems of Boolean algebra are derived from these postulates. Table C-3 lists
the theorems of Boolean algebra.
Introduction
Even the most efficient PLCs used in modern manufacturing are subject to
breakdowns. Determining a system malfunction can be a time-consuming process.
At this point, a skilled troubleshooter is required. Since downtime is costly to most
companies, highly skilled troubleshooting technicians are in great demand.
Trouble Identification
The best way to start troubleshooting a system malfunction is to skim through the
manufacturer's instruction manual. The manufacturer's manual will explain what the
equipment does and how it is accomplished. The manual will usually include lists of
typical faults and probable causes. This type of information can be very useful and
time saving.
Unfortunately, the necessary manual is often missing, lost, or the equipment has
been modified to the point where the manual is of little value. Quite often the
technician must troubleshoot the system without a manual, relying only upon training,
experience, and a schematic diagram.
There are two general principles which can be employed as guides for
troubleshooting system malfunctions. The first principle is to understand the normal
equipment operation. The second is to observe and investigate the malfunction
symptoms.
By applying both principles to the system, the general area of the problem can often
be identified quickly. Once the problem area is identified, specific troubleshooting
techniques may be used to isolate the problem.
2- Signal (or power) flow tracing. The trouble is narrowed down to a particular
device, such as a processor unit or expansion unit.
These four techniques are the tools of the trade by which a system malfunction can
be solved. To summarize the process of isolating a system malfunction, the
technician must:
G 5. Analyze the circuit to locate areas where indications and symptoms suggest
there is a problem.
G 7. Make voltage checks in the direction of power flow – start at the main
breaker and trace for power through to the final device in the circuit.
PLC systems can be particularly troublesome upon start-up. This is especially true
in the case of a new design or after a major maintenance. Therefore, special
attention must be given before and during the first system run. This allows avoidance
of unexpected and undesirable results. The following PLC start-up procedure
involves seven steps, to be performed sequentially, as described below.
G 2. Disconnect motors and other devices which could cause machine motion.
G 5. Enter, verify, and test the ladder program. This step is detailed in the next
section of the appendix.
G 6. Test the system with motors and other motion-causing devices reconnected.
The chart shown in Figures D-1 through D-3 is a troubleshooting flowchart which
may be used for steps 3, 4, and 5 of a PLC start-up.
Program Testing
Once the ladder program is written in the programming software, you can verify the
program and check for address errors. The most common mistakes in a ladder
program include:
After the user program has been entered and verified, use the single scan test mode.
In this mode, the outputs are not energized and the processor unit will complete one
scan of the user program each time single scan is selected. Simulate the input
conditions necessary to make rung 1 true (Force Function of the PLC), and monitor
the input and output instructions to verify correct operation of the user program.
Repeat this procedure for each program rung to verify that the user program is
functioning correctly.
a. Complements well a hydro power dam by acting as a “water pump” for the
dam’s reservoir / Emits many tons of CO2 per MWh generated.
b. Is always dependable / Is subject to aesthetical criticism.
c. Uses renewable energy / Unsteady Wind Conditions complicate
management of the power grid.
d. Relies on readily available resources / Necessitates management
of radioactive waste materials.
2. Which components of the nacelle simulator are used as inputs by the PLC?
a. Gear box
b. Meteorological instruments
c. Yaw motor
d. Nacelle power input
a. SCP
b. MOV
c. OTE
d. LIM
a. Reusability of programs.
b. Structured programming.
c. Erratic logical jumps.
d. a. and b.
10. Analyze the program of Figure E-1. What is the value of the accumulator
(C5:0.ACC) if the input (I:0/0) is closed for three seconds and then turned off?
All bits are initialized to zero at the beginning of the program.
a. 0
b. 6
c. 7
d. 10
actuator – Any linear or rotary device converting fluid power into mechanical motion
and force.
analog – Analog circuitry, also called "linear" circuitry, is circuitry that varies certain
properties of electricity continuously and smoothly over a certain range.
analog input module – An input module which converts an analog signal to a digital
signal compatible with the PLC processor.
analog output module – An output module which converts a digital signal from the
PLC processor to an analog output signal.
binary – A number system (base 2) that uses two numerals, 0 and 1, to represent
the two states of a device, such as "on" and "off"; "opened" and "closed".
bug – Software error which results in unwanted behavior. Typically used to refer to
programming errors.
clear – The removal of data from a single or all memory location(s) resetting it to
initial conditions. (usually "0").
debug – The act of locating and eliminating programming errors from a software
program.
downtime – The time that a system is not operating due to required maintenance.
hexadecimal – A number system (base 16) that uses the numbers 0 through 9 and
the letters A through F to represent decimal values ranging from 0 to 15.
input device – A device which supplies input information to the PLC. Some common
input devices are limit switches, pushbuttons, and thumbwheel switches.
instruction set – The group of commands that are used to program the PLC. Each
type of PLC has its own instruction set.
limit switch – A mechanical, hall effect, or optical sensor used to detect end of
travel on an axis.
logical function – During PLC operation the processor determines the state of the
bit in the data files, evaluates each ladder rung and determines the PLC output
status according to rung logical continuity.
mask – A code which is used to indicate which part of the sequencer data addresses
apply to the sequencer, and which do not.
nacelle – The enclosure at the top of the tower containing the gear box, generator,
and control units. Meterological equipment is usually attached to the nacelle.
node – A point in a ladder logic program matrix into which logic elements can be
programmed.
output device – A device which accepts information from the PLC. Common output
devices are: motors, solenoids, and alarms.
output interface – A unit that is used to connect output devices to the PLC. The
output module converts a logic signal from the processor to the required output
signal.
preset – The limit specified for a timer or counter to time or count to.
process control – Pertains to ways and means by which conditions (pressure, flow,
temperature, or level) of processes are automatically kept to desired values or within
a required range.
relay – An electrical switch that opens and closes under the control of another
electrical circuit.
ROM – Abbreviation for Read Only Memory. This is a type of memory containing
data permanently stored at time of manufacture. It usually cannot be written to after
this.
rung – In ladder programs, the set of instructions which control PLC rung outputs.
A ladder program may contain several rungs of programmed instructions.
scan rate – The time required for the processor to completely scan a user program.
state – In memory the logic "0" or "1" condition of a single bit of memory. The "ON"
or "OFF" condition of a PLC's input or output.
state table – A truth table showing all possible states of a finite state machine.
timer – A device which can be preset to control the interval of operation of another
device. (The device can be either a programmed device or an electromechanical
device).
wind vane – An analog instrument designed to measure the direction of the wind.
services@labvolt.com