Beruflich Dokumente
Kultur Dokumente
B Eng
This module is 12 credits 6hrs per week.
Skills expected are:
Ability to determine the usage of computers in industrial production
Ability to configure computer controlled system.
Ability to design data acquisition boards.
Ability to design configures, and writes ladder programs for PLC controlled systems.
This includes the following topics:
Computerized control system configuration; Signal multiplexing; systems
communication; programming system interfacing; Graphic programming; PLC
programming languages, wiring diagrams and ladder programmers, programmable
timers, programmable counters, programmable registers; programmed control;; PLC
troubleshooting; systems troubleshooting and repair; Computer aided design (CAD);
Computer aided manufacturing (CAM);Industrial/Manufacturing automation protocol
(MAP); software applications in industrial controls. Data Acquisition Devices design
References
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
INDUSTRIAL AUTOMATION
Industrial automation is the use of robotic devices to complete manufacturing tasks. In this
day and age of computers, industrial automation is becoming increasingly important in the
genes, sera, cells, and tissues are carried out at much greater speed and accuracy by
automated systems. Automated teller machines have reduced the need for bank visits to
obtain cash and carry out transactions. In general, automation has been responsible for the
shift in the world economy from agrarian to industrial in the 19th century and from industrial
to services in the 20th century.
The widespread impact of industrial automation raises social issues, among them its impact
on employment. Historical concerns about the effects of automation date back to the
beginning of the industrial revolution, when a social movement of English textile machine
operators in the early 1800s known as the Luddites protested against Jacquard's
automated weaving looms often by destroying such textile machines that they felt
threatened their jobs. One author made the following case. When automation was first
introduced, it caused widespread fear. It was thought that the displacement of human
operators by computerized systems would lead to severe unemployment.
Critics of automation contend that increased industrial automation causes increased
unemployment; this was a pressing concern during the 1980s. One argument claims that
this has happened invisibly in recent years, as the fact that many manufacturing jobs left
the United States during the early 1990s was offset by a one-time massive increase in IT
jobs at the same time. Some authors argue that the opposite has often been true, and that
automation has led to higher employment. Under this point of view, the freeing up of the
labour force has allowed more people to enter higher skilled managerial as well as
specialised consultant/contractor jobs (like cryptographers), which are typically higher
paying. One odd side effect of this shift is that "unskilled labour" is in higher demand in
many first-world nations, because fewer people are available to fill such jobs.
At first glance, automation might appear to devalue labor through its replacement with lessexpensive machines; however, the overall effect of this on the workforce as a whole
remains unclear. Today automation of the workforce is quite advanced, and continues to
advance increasingly more rapidly throughout the world and is encroaching on ever more
skilled jobs, yet during the same period the general well-being and quality of life of most
people in the world (where political factors have not muddied the picture) have improved
dramatically. What role automation has played in these changes has not been well studied
ADVANTAGES AND DISADVANTAGES
The main advantages of automation are:
Replacing human operators in tasks that involve hard physical or monotonous work
Replacing humans in tasks that should be done in dangerous environments (i.e. fire,
space, volcanoes, nuclear facilities, underwater, etc)
Making tasks that are beyond the human capabilities such as handling too heavy
loads, too large objects, too hot or too cold substances or the requirement to make
things too fast or too slow.
Economy improvement. Sometimes and some kinds of automation implies improves
in economy of enterprises, society or most of humankind. For example, when an
enterprise that has invested in automation technology recovers its investment; when
a state or country increases its income due to automation like Germany or Japan in
the 20th Century or when the humankind can use the internet which in turn use
satellites and other automated engines.
Technology limits. Current technology is unable to automate all the desired tasks.
Unpredictable development costs. The research and development cost of
automating a process is difficult to predict accurately beforehand. Since this cost can
have a large impact on profitability, it's possible to finish automating a process only
to discover that there's no economic advantage in doing so.
Initial costs are relatively high. The automation of a new product required a huge
initial investment in comparison with the unit cost of the product, although the cost of
automation is spread in many product batches. The automation of a plant required a
great initial investment too, although this cost is spread in the products to be
produced.
Controversial factors
Human being replacement. In the future there is a possibility that the Artificial
intelligence could replace and improve a human brain and the robots would become
not only fully automated but fully autonomous from the human beings (Technological
singularity)
Automation tools
Different types of automation tools exist:
Robotics
User interface
Output, allowing the system to indicate the effects of the users' manipulation.
There is, in several industries, considerable confusion over the differences between
SCADA systems and distributed control systems (DCS). Generally speaking, a SCADA
system usually refers to a system that coordinates, but does not control processes in real
time. The discussion on real-time control is muddied somewhat by newer
telecommunications technology, enabling reliable, low latency, high speed communications
over wide areas. Most differences between SCADA and DCS are culturally determined and
can usually be ignored. As communication infrastructures with higher capacity become
available, the difference between SCADA and DCS will fade.
Systems concepts
The term SCADA usually refers to centralized systems which monitor and control entire
sites, or complexes of systems spread out over large areas (anything between an industrial
plant and a country). Most control actions are performed automatically by Remote Terminal
Units ("RTUs") or by programmable logic controllers ("PLCs"). Host control functions are
usually restricted to basic overriding or supervisory level intervention. For example, a PLC
may control the flow of cooling water through part of an industrial process, but the SCADA
system may allow operators to change the set points for the flow,and enable alarm
conditions, such as loss of flow and high temperature, to be displayed and recorded. The
feedback control loop passes through the RTU or PLC, while the SCADA system monitors
the overall performance of the loop.
5.
6.
MEASUREMENT
Instrumentation can be used to measure certain field parameters (physical values):
These measured values include:
Motion control
A motion controller to generate set points (the desired output or motion profile) and
close a position and/or velocity feedback loop.
A drive or amplifier to transform the control signal from the motion controller into a
higher power electrical current or voltage that is presented to the actuator. Newer
"intelligent" drives can close the position and velocity loops internally, resulting in
much more accurate control.
An actuator such as a hydraulic pump, air cylinder, linear actuator, or electric motor
for output motion.
One or more feedback sensors such as optical encoders, resolvers or Hall effect
devices to return the position and/or velocity of the actuator to the motion controller
in order to close the position and/or velocity control loops.
Mechanical components to transform the motion of the actuator into the desired
motion, including: gears, shafting, ball screw, belts, linkages, and linear and
rotational bearings.
The interface between the motion controller and drives it controls is very critical when
coordinated motion is required, as it must provide tight synchronization. Historically the only
open interface was an analog signal, until open interfaces were developed that satisfied the
requirements of coordinated motion control, the first being SERCOS in 1991. Later
interfaces capable of motion control include Profinet IRT and EtherCAT.
Common control functions include:
Velocity control.
8.
Position (point-to-point) control: There are several methods for computing a motion
trajectory. These are often based on the velocity profiles of a move such as a
triangular profile, trapezoidal profile, or an S-curve profile.
Pressure or Force control.
Trans-mutational vector mapping.
Electronic gearing (or cam profiling): The position of a slave axis is mathematically
linked to the position of a master axis. A good example of this would be in a system
where two rotating drums turn at a given ratio to each other. A more advanced case
of electronic gearing is electronic camming. With electronic camming, a slave axis
follows a profile that is a function of the master position. This profile need not be
salted, but it must be an animated function.
Robotics: Robotics is the engineering science and technology of robots, and their
design, manufacture, application, and structural disposition. Robotics is related to
electronics, mechanics, and software.[1] The word robot was introduced to the public
by Czech writer Karel apek in his play R.U.R. (Rossum's Universal Robots),
published in 1920. The term "robotics" was coined by Isaac Asimov in his 1941
science fiction short-story "Liar!"[2]
Structure
The structure of a robot is usually mostly mechanical and can be called a kinematic
chain (its functionality being similar to the skeleton of the human body). The chain is
formed of links (its bones), actuators (its muscles), and joints which can allow one or
more degrees of freedom. Most contemporary robots use open serial chains in which
each link connects the one before to the one after it. These robots are called serial
robots and often resemble the human arm. Some robots, such as the Stewart
platform, use a closed parallel kinematical chain. Other structures, such as those that
mimic the mechanical structure of humans, various animals, and insects, are
comparatively rare. However, the development and use of such structures in robots is
an active area of research (e.g. biomechanics). Robots used as manipulators have an
end effector mounted on the last link. This end effector can be anything from a welding
device to a mechanical hand used to manipulate the environment.
Data acquisition and control systems need to get real-world signals into the computer.
These signals come from a diverse range of instruments and sensors, and each type of
signal needs special consideration. This page highlights points to think about, and should
help you identify the most suitable interface for your measurements. The following
techniques are covered:
2. Signal Conditioning
Sometimes transducers generate signals too difficult or too dangerous to measure directly
with a data acquisition device. For instance, when working with high voltages, noisy
environments, or extreme high and low signals, signal conditioning is essential for an
effective data acquisition system. Signal conditioning maximizes the accuracy of a system,
gives sensors the ability to operate properly, and guarantees safety. Some data acquisition
hardware has integrated signal conditioning so you can connect a sensor directly to an
input channel.
3. Data Acquisition Hardware
Data acquisition hardware acts as the interface between the computer and the outside
world. It primarily functions as a device that digitizes incoming analog signals so the
computer can interpret them. Other data acquisition hardware functionality includes analog
output, digital I/O, counter/timers, and triggering and synchronization circuitry.
4. Driver and Application Software
Software transforms the PC and data acquisition hardware into a complete data acquisition,
analysis, and data visualization tool. There are two layers of software in a data acquisition
system: driver software and application software. Driver software is the communication
layer between the application software and the hardware. The application layer can be
either a development environment in which you build a custom application that meets
specific criteria, or it can be a configuration-based program with preset functionality.
Application software adds analysis and visualization capabilities to driver software.
Four Considerations for Your Data Acquisition System
1. Measurements and I/O Types
The appropriate transducers convert physical phenomena into measurable signals;
however, different signals need to be measured in different ways. Signals fall into two
categories: analog or digital. An analog signal can be at any value with respect to time. A
few examples of analog signals include voltage, temperature, pressure, sound, and load.
When choosing data acquisition hardware for analog measurements, you should consider
the number of analog channels, max sampling rate, resolution, and input signal ranges. In
contrast, a digital signal cannot take on any value with respect to time. Instead, a digital
signal has two possible levels: high and low. When choosing data acquisition hardware for
digital measurements, you should consider the number of digital channels, logic family
compatibility, and digital logic levels.
2. Form Factor
Data acquisition hardware platforms are chosen based on application requirements or even
personal preference. Because desktop computers are often readily available, many
engineers and scientists choose PCI or PCI Express data acquisition (DAQ) boards that
plug directly into their computer. However, some prefer a more portable solution such as a
USB data acquisition device that can plug into desktop computers as well as laptops. For
higher-performance applications, DAQ modules are available for PXI/CompactPCI and
PXI Express, a more rugged modular computer platform specifically for measurement and
automation applications. The latest generation of DAQ devices offer connectivity over
wireless and cabled Ethernet.
3. Software and Programming Language
There are many software options that you can use to take advantage of your data
acquisition hardware. Configuration-based utilities, such as NI LabVIEW SignalExpress,
require no programming and make taking basic measurements, data logging, and analysis
easy. When building your own custom application, you can choose from several APIs for
programming languages such as LabVIEW, ANSI C, C++, Visual Basic, Visual Basic .NET,
and C# .NET.
4. Performance Factors
While there are a variety of form factors for data acquisition hardware, specific buses offer
better performance for certain applications than others. When evaluating bus performance,
you should consider factors such as bandwidth, latency, synchronization, and portability.
Bandwidth is a measure of the rate at which data is sent across the bus, typically in
megabytes per second (MB/s), and latency is a measure of the delay in data transmission.
Internal plug-in buses like PCI Express and PXI Express provide the highest throughput
and lowest latency of all bus options. New technologies such as NI signal streaming make
it possible for sustained high-speed and bidirectional data streams over USB to achieve
maximum throughput on USB data acquisition devices. Another performance consideration
is measurement accuracy. While every National Instruments DAQ module is calibrated after
production, accuracy will still drift according to time and temperature. Technologies such as
NI-MCal improve device accuracy by using software self-calibration to characterize and
correct this error.
2.1. When a voltage is applied to the input coil, the resulting current creates a magnetic
field. The magnetic field pulls a metal switch (or reed) towards it and the contacts touch,
closing the switch. The contact that closes when the coil is energized is called normally
open. The normally closed contacts touch when the input coil is not energized. Relays are
normally drawn in schematic form using a circle to represent the input coil. The output
contacts are shown with two parallel lines. Normally open contacts are shown as two lines,
and will be open (non-conducting) when the input is not energized. Normally closed
contacts are shown with two lines with a diagonal line through them. When the input coil is
not energized the normally closed contacts will be closed (conducting).
Relays are used to let one power source close a switch for another (often high current)
power source, while keeping them isolated. An example of a relay in a simple control
application is shown in Figure 2.2. In this system the first relay on the left is used as
normally closed, and will allow current to flow until a voltage is applied to the input A. The
second relay is normally open and will not allow current to flow until a voltage is applied to
the input B. If current is flowing through the first two relays then current will flow through the
coil in the third relay, and close the switch for output C. This circuit would normally be
drawn in the ladder logic form. This can be read logically as C will be on if A is off and B is
on.
The example in Figure 2.2 does not show the entire control system, but only the logic.
When we consider a PLC there are inputs, outputs, and the logic. Figure 2.3 shows a more
complete representation of the PLC. Here there are two inputs from push buttons.
We can imagine the inputs as activating 24V DC relay coils in the PLC. This in turn drives
an output relay that switches 115V AC that will turn on a light. Note, in actual PLCs inputs
are never relays, but outputs are often relays. The ladder logic in the PLC is actually a
computer program that the user can enter and change. Notice that both of the input push
buttons are normally open, but the ladder logic inside the PLC has one normally open
contact, and one normally closed contact. Do not think that the ladder logic in the PLC
needs to match the inputs or outputs. Many beginners will get caught trying to make the
ladder logic match the input types.
OPERATION SEQUENCE
All PLCs have four basic stages of operations that are repeated many times per second. Initially
when turned on the first time it will check its own hardware and software for faults. If there are no
problems it will copy all the input and copy their values into memory, this is called the input scan.
Using only the memory copy of the inputs the ladder logic program will be solved once, this is
called the logic scan. While solving the ladder logic the output values are only changed in temporary
memory. When the ladder scan is done the outputs will updated using the temporary values in
memory, this is called the output scan. The PLC now restarts the process by starting a self check for
faults. This process typically repeats 10 to 100 times per second.
Also, if output bits were changed as each bit was changed, instead of all at once at the end of the
scan the PLC would operate much slower.
The logic scans sequence become important when solving ladder logic programs which use outputs
as inputs. It also becomes important when considering output usage. Consider Figure 8.4, the first
line of ladder logic will examine input 1amd 2 and set output 3 and 4 to have the same value. The
second line will examine input 5, 6, and 9 and set the output 11. Recall that during the logic scan the
outputs are only changed in memory, the actual outputs are only updated when the ladder logic scan
is complete. Therefore the output scan would update the real outputs based upon the second line of
ladder logic, and the first line of ladder logic would be ineffective.
PLC STATUS
The lack of keyboard and other input-output devices is very noticeable on a PLC.
On the front of the PLC there are normally limited status lights. Common lights indicate; power on this will be on whenever the PLC has power program running - this will often indicate if a program
is running, or if no program is running fault - this will indicate when the PLC has experienced a
major hardware or software problem
These lights are normally used for debugging. Limited buttons will also be provided for PLC
hardware. The most common will be a run/program switch that will be switched to program when
maintenance is being conducted, and back to run when in production.
This switch normally requires a key to keep unauthorized personnel from altering the PLC program
or stopping execution. A PLC will almost never have an on-off switch or reset button on the front.
This needs to be designed into the remainder of the system.
The status of the PLC can be detected by ladder logic also. It is common for programs to check to
see if they are being executed for the first time.
The first scan input will be true the very first time the ladder logic is scanned, but false on every
other scan. In this case the address for first scan in a PLC-5 is S2:1/14. With the logic in the
example the first scan will seal on light, until clear is turned on. So the light will turn on after the
PLC has been turned on, but it will turn off and stay off after clear is turned on. The first scan bit
is also referred to at the first pass bit.
MEMORY TYPES
There are a few basic types of computer memory that are in use today.
RAM (Random Access Memory) - this memory is fast, but it will lose its contents when power is
lost, this is known as volatile memory. Every PLC uses this memory for the central CPU when
running the PLC.
ROM (Read Only Memory) - this memory is permanent and cannot be erased. It is often used for
storing the operating system for the PLC.
EPROM (Erasable Programmable Read Only Memory) - this is memory that can be programmed to
behave like ROM, but it can be erased with ultraviolet light and reprogrammed.
EEPROM (Electronically Erasable Programmable Read Only Memory) This memory can store
programs like ROM. It can be programmed and erased using a voltage, so it is becoming more
popular than EPROMs.
All PLCs use RAM for the CPU and ROM to store the basic operating system for the PLC. When
the power is on the contents of the RAM will be kept, but the issue is what happens when power to
the memory is lost. Originally PLC vendors used RAM with a battery so that the memory contents
would not be lost if the power was lost. This method is still in use, but is losing favor. EPROMs have
also been a popular choice for programming PLCs. The EPROM is programmed out of the PLC, and
then placed in the PLC. When the
PLC is turned on the ladder logic program on the EPROM is loaded into the PLC and run.
This method can be very reliable, but the erasing and programming technique can be time
consuming. EEPROM memories are a permanent part of the PLC, and programs can be stored in
them like EPROM. Memory costs continue to drop, and newer types (such as flash memory) are
becoming available, and these changes will continue to impact PLCs.
LATCHES
A latch is like a sticky switch - when pushed it will turn on, but stick in place, it must be pulled to
release it and turn it off. A latch in ladder logic uses one instruction to latch, and a second instruction
to unlatch, as shown in Figure 9.2. The output with an L inside will turn the output D on when the
input A becomes true. D will stay on even if A turns off. Output D will turn off if input B becomes
true and the output with a U inside becomes true (Note: this will seem a little backwards at first). If
an output has been latched on, it will keep its value, even if the power has been turned off.
The operation of the ladder logic in Figure 9.2 is illustrated with a timing diagram in Figure 9.3. A
timing diagram shows values of inputs and outputs over time. For example the value of input A starts
low (false) and becomes high (true) for a short while, and then goes low again. Here when input A
turns on both the outputs turn on. There is a slight delay between the change in inputs and the
resulting changes in outputs, due to the program scan time. Here the dashed lines represent the
output scan, sanity check and input scan (assuming they are very short.) The space between the
dashed lines is the ladder logic scan. Consider that when A turns on initially it is not detected until
the first dashed line.
There is then a delay to the next dashed line while the ladder is scanned, and then the output at the
next dashed line. When A eventually turns off, the normal output C turns off, but the latched output
D stays on. Input B will unlatch the output D. Input B turns on twice, but the first time it is on is not
long enough to be detected by an input scan, so it is ignored.
The second time it is on it unlatches output D and output D turns off.
Figure 9.3 A Timing Diagram for the Ladder Logic in Figure 9.2
TIMERS
There are four fundamental types of timers shown in Figure 9.7. An on-delay timer will wait for a set
time after a line of ladder logic has been true before turning on, but it will turn off immediately. An
off-delay timer will turn on immediately when a line of ladder logic is true, but it will delay before
turning off. Consider the example of an old car. If you turn the key in the ignition and the car does
not start immediately, that is an on-delay.
If you turn the key to stop the engine but the engine doesnt stop for a few seconds that is an off
delay. An on-delay timer can be used to allow an oven to reach temperature before starting
production. An off delay timer can keep cooling fans on for a set time after the
COUNTERS
There are two basic counter types: count-up and count-down. When the input to a count-up counter
goes true the accumulator value will increase by 1 (no matter how long the input is true.) If the
accumulator value reaches the preset value the counter DN bit will be set. A count-down counter will
decrease the accumulator value until the preset value is reached.
An Allen Bradley count-up (CTU) instruction is shown in Figure 9.15. The instruction requires
memory in the PLC to store values and status, in this case is C5:0. The C5: indicates that it is
counter memory, and the 0 indicates that it is the first location. The preset value is 4 and the value in
the accumulator is 2. If the input A were to go from false to true the value in the accumulator would
increase to 3. If A were to go off, then on again the accumulator value would increase to 4, and the
DN bit would go on. The count can continue above the preset value. If input B goes true the value in
the counter accumulator will become zero.
Count-down counters are very similar to count-up counters. And, they can actually both be used on
the same counter memory location. Consider the example in Figure 9.16, the example input I/1
drives the count-up instruction for counter C5:1. Input I/2 drive the count-down instruction for the
same counter location. The preset value for a counter is stored in memory location C5:1 so both the
count-up and count-down instruction must have the same preset. Input I/3 will reset the counter.
The timing diagram in Figure 9.16 illustrates the operation of the counter. If we assume that the
value in the accumulator starts at 0, then the I/1 inputs cause it to count up to 3 where it turns the
counter C5:1 on. It is then reset by input I/3 and the accumulator value goes to zero. Input I/1 then
pulses again and causes the accumulator value to increase again, until it reaches a maximum of 5.
Input I/2 then causes the accumulator value to decrease down below 3, and the counter turns off
again. Input I/1 then causes it to increase, but input I/3 resets the accumulator back to zero again, and
the pulses continue until 3 is reached near the end.
Example 1 of counter application
The program in Figure 9.17 is used to remove 5 out of every 10 parts from a conveyor with a
pneumatic cylinder. When the part is detected both counters will increase their values by 1. When
the sixth part arrives the first counter will then be done, thereby allowing the pneumatic cylinder to
actuate for any part after the fifth. The second counter will continue until the eleventh part is
detected and then both of the counters will be reset.
last state. Using MCR blocks to remove sections of programs will not increase the speed of program
execution significantly because the logic is still examined.
If the MCR block contained another function, such as a TON timer, turning off the MCR block
would force the timer off. As a general rule normal outputs should be outside MCR blocks, unless
they must be forced off when the MCR block is off.
HOMEWORK
1.
2.
3.
4.
5.
6.
7.
Develop the ladder logic that will turn on an output light, 15 seconds after switch
A has been turned on.
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.
Develop a program that will latch on an output B 20 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.
A motor will be controlled by two switches. The Go switch will start the motor
and the Stop switch will stop it. If the Stop switch was used to stop the motor, the
Go switch must be thrown twice to start the motor. When the motor is active a
light should be turned on. The Stop switch will be wired as normally closed.
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.
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.
The basic requirements of the system are,
i. A toggle start switch (TS1) and a limit switch on a safety gate (LS1) must
both be on before a solenoid (SOL1) can be energized to extend a stamping
cylinder to the top of a part.
ii. While the stamping solenoid is energized, it must remain energized until a
limit switch (LS2) is activated. This second limit switch indicates the end of a
stroke. At this point the solenoid should be de-energized, thus retracting the
cylinder.
iii. When the cylinder is fully retracted a limit switch (LS3) is activated. The
cycle may not begin again until this limit switch is active.
iv. A cycle counter should also be included to allow counts of parts produced.
v. When this value exceeds 5000 the machine should shut down and a light lit
up.
vi. A safety check should be included. If the cylinder solenoid has been on for
more than 5 seconds, it suggests that the cylinder is jammed or the machine
has a fault. If this is the case, the machine should be shut down and a
maintenance light turned on.