Automation Direct - An Industry Guide To Control System Engineering
Automation Direct - An Industry Guide To Control System Engineering
Automation Direct - An Industry Guide To Control System Engineering
An Industry Guide To
Control System
Engineering
A Condensed Guide to Automation Control
System Specification, Design and Installation
A Publication of
Version 1.0
TABLE OF
CONTENTS
Introduction
Chapter 1 ------------ Consider Safety First
Chapter 2 ------------ Identifying Processes
for Automation
Chapter 3 ------------ Specify Devices
Chapter 4 ------------ Design
Chapter 5 ------------ Build
in
Introduction
- Unknown
in
CHAPTER
1
Consider Safety First
Safety
4 Things to Consider
The first most important item to consider before attempting an
automated control system, or even a simple on/off control for a pump, is
safety, both for personnel that may be working with or near the automated
equipment, as well as to prevent damage to the equipment.
To minimize the risk of potential safety problems, you should follow all
applicable local, state and national codes that regulate the installation and
operation of your control system, along with the equipment or process it is
designed to control. These codes vary by area and usually change over
time, constantly being reviewed and updated. It will be your responsibility to
determine which codes should be followed and to verify that the equipment,
installation, and operation is in compliance with the latest revision of these
codes. It would be wise to educate yourself as much as possible about
electricity and electrical equipment in general. A good understanding of
basic electricity, including DC and AC theory and practice, Ohms Law, etc.
will go a long way in helping you understand the various codes and
standards.
in
Please keep in mind that if the automated control system you are
developing needs to be accepted in the international market, the National
Electrical Code (NEC), as a publication of NFPA, is being harmonized with
the International Electrotechnical Commission (IEC) (Website: www.iec.ch/)
and the European Hazardous Location Ratings. For more information, check
the Instrument Society of Americas (ISA) Website at www.isa.org.
Additional resources on the subject can be found at www.ul.com/hazloc/.
in
2. Lockout/Tagout
Another area of safety that needs to be considered for automated control
systems is lockout/tagout procedures as specified by Occupational Safety
and Health Administration (OSHA). "Lockout/tagout" refers to specific
practices and procedures to safeguard operators and maintenance
personnel from the unexpected energization or startup of machinery and
equipment, or the release of hazardous energy during service or
maintenance activities. In order to have your control system make use of a
lockout/tagout procedure, the design should include the ability to shut off,
neutralize, or isolate any energy source, such as the main electrical feed,
but also any pneumatic, hydraulic or mechanical energy storage device. The
means to do this should be considered in the initial design of the automated
control system. Additional information can be found on OSHAs Website.
in
in
Closed-loop Control It is your responsibility in any type of closedloop control system to ensure that if the feedback signal is lost, the
system shuts down so as not to cause injury to personnel or damage to
the equipment.
in
CHAPTER
2
Identifying Processes for
Automation
10
Identifying
As an example
Lets say we have a conveyor that moves our product from point A to
point B. The conveyor is powered by a 3-phase AC motor, which is
turned off and on by a manually controlled motor starter and includes,
for fire protection, both short circuit and overload protection. The
system requires an operator to stand at the motor starter, watching as
the product reaches the entrance to the conveyor, and turning the
conveyor on to move the product. Then the operator must also turn the
conveyor off once the product has reached the discharge end.
in
11
in
12
in
13
in
14
CHAPTER
3
Specifying Devices
15
Specifying Devices
What needs to be specified
in
16
in
17
What is a PLC?
in
18
in
19
Also keep in mind that when selecting a sensor device, such as to detect
the presence of product or sense the end of travel for a mechanism, it is
very important to consider the environment in which the sensor will operate.
This should not only include temperature and humidity ranges, but in some
cases, indoor or outdoor use, altitude, ability for the sensor to be washed
down, etc. For example, photoelectric sensors are sensitive to the
atmosphere in which they can efficiently work. If there is a lot of dust, dirt
and/or mist in the air, then the optics can easily become dirty or coated,
reducing their sensitivity and operating distance.
in
20
For example, if our process uses a solenoid valve to control water flow to
a wash station, we would need to know the operating voltage of the valve
and how much current it draws. We also need to know not only the ON-state
current draw of a valve, but also the inrush current, so that we can properly
specify a PLC output module or a control relay. Although a valve may be
rated to draw 250mA continuous current, it may have an inrush of 800mA
when first energized. If a PLC output module has eight output points and
each point is rated for 1 amp continuous duty, after thermal considerations,
the entire output module has a total rating of 6 amps and therefore has a
common fuse rated at 6 amps. If we had solenoid valves connected to all
eight output points and our program called for them all to energize at the
same time, the total inrush current would be 8 x 800mA or 6.4 amps total,
and most likely would blow the fuse. The solution could be to select an
output module with a higher current rating or to use the ladder program to
sequence the valves, preventing them all from being energized at the same
time. Another option is to split up the valves between several output
modules, using the remaining points to power smaller loads such as pilot
lights. Certain output types may have derating curves depending on the
ambient temperature and the number of outputs energized. Keep in mind
that DC output modules can be sinking or sourcing type.
in
21
Analog Devices - Another area of inputs and outputs involve the use of
analog signals in a control system. Analog signals are variable and can
represent a range of values. As a quick example, we may want to
monitor the level of a liquid in a tank that is 100 feet tall. We can use a
sensor that will produce a signal that is represented by a voltage range
of 0 to 10 volts DC, with 0 feet being equal to 0VDC and 100 feet being
equal to 10VDC. Analog signals are typically linear, so a 5VDC signal
would tell us the tank level is at 50 feet. The analog signal could be
wired into a PLC analog input module, and in the ladder program we
could compare the actual level to a setpoint and produce a discrete
signal that would cause an output point to start a pump to raise or lower
the level.
An industrial induction motor may have ratings such as 230/460 VAC, 3phase, 1725 RPM, a FLA (full load ampere) of 10.5 amps at 460VAC, etc.
This information can be obtained
from the manufactures catalog or
directly from the motor nameplate.
In the case of a motor, you will
need the various ratings to choose
the motor starter or possibly a
variable frequency drive for either
start/stop control or speed control
of the motor.
in
22
Other Considerations
There are other points to consider in the specification of devices being
used in your automated control system; static electricity, duty cycle, surge
suppression, power, environment, agency approvals, enclosure type as
well as enclosure heating, cooling and lighting.
Duty Cycle - When using a solenoid valve, you will want to know its
operating voltage, nominal current draw and current inrush to help
select the type of output device required to control its operation. It is
also important to have an understanding of the solenoid valves duty
cycle. We would not want to operate a solenoid valve rated at 50%
duty cycle in a continuous mode with an ON time of 10 seconds and
an OFF time of only two seconds. The short OFF time would not
allow for the solenoid to properly cool down.
in
23
in
24
The requirements for any of these agency approvals need to be part of your
specification and will determine the selection of most of your controlling devices.
in
25
in
26
CHAPTER
4
Design
27
Design
in
28
Sequence of Operation
In most cases, the first step in designing our control system will be to
define the process or actions to take place, by way of a sequence of
operations description. The sequence should show or list each operational
step in our process.
Our particular application may be better suited to using a flowchart that
shows the sequence of operation by means of decision-making steps and
actions that need to take place. A flowchart can be developed with graph
paper and a pencil, or an application software program such as Microsoft
Visio. Microsoft Word also has a built-in drawing tool that contains flowchart
symbols.
In some cases, the application may be better suited to using a timing
chart, in which each condition and event is graphed in a time relationship to
each other, as shown below.
Flowchart
Timing Chart
in
29
Schematic
The next step in our design is to develop a schematic. Most electrical
designers and engineers define a schematic as a drawing that shows the
logical wiring of an automated control system. A control schematic is
normally drawn in the form of a ladder, showing the various wiring
conditions. This analogy of a ladder is what PLC ladder logic was based
upon. It made the transition to PLC ladder logic easier for engineers and
electricians because they were accustomed to troubleshooting hard-wired
relay control systems documented in a ladder fashion.
It is normal practice to show input type devices on the left-hand side of
drawings and output devices on the right-hand side. For example, the
symbols for protective devices (fuses), contacts and overload relay
elements are shown to the left, while the symbol for the motor is shown to
the right.
in
30
The schematic should start with the incoming power, including protective
devices such as circuit breakers and/or fuses. Our design should show the
distribution of the AC power and include all circuitry and required devices for
conformance to the National Electrical Code (NEC) and any local codes that
might apply in our area.
It is normal practice to show any high-voltage devices, such as 3-phase
motors, 480 or 240VAC auxiliary equipment, etc. in this first section of the
schematic. Next, we will show a control power transformer used to step the
higher incoming voltage down to our system control voltage (115VAC). Our
control voltage can be something other than 115VAC; for example, we could
have a control voltage of 24VDC, which is common for many electrical
control devices. The control transformer needs to be sized (VA rating) based
on our known or calculated load of devices that will be powered from the
transformer in our automated control system.
At this point in our schematic, we need to look at device wiring isolation
strategies. PLCs provide ideal isolation because its circuitry is divided into
three main regions separated by isolation boundaries as shown below. The
PLCs main power supply includes a transformer that provides isolation, and
the input and output circuits that use opto-couplers to provide additional
isolation. When wiring a PLC, it is extremely important to avoid making
external connections that connect logic side circuits to any other.
in
31
Electrical isolation provides safety, so that a fault in one area does not
damage another. Using the figure below as a reference, we see a
transformer which provides magnetic isolation between its primary (high
voltage) and secondary (control voltage) sides. A powerline filter provides
isolation between the control power source and the electronic devices.
in
32
The previous image also shows some general suggestions for device
grounding and distributing the control power to various devices, along with
individually fusing these devices.
Proper grounding is one of the most important things in good
automated control system design. The more details we can show on the
schematic to reflect all points that need to be grounded, the better chance
we have of a properly grounded control system that provides both safety
and functionality.
Why is grounding important? Electronic instrumentation such as PLCs
and field I/O are typically surrounded by various types of electronic devices
and wires. These electronic devices may include power supplies,
input/output signals from other instrumentation, and even devices that are
near the instrumentation enclosure. All these may present a risk of
Electromagnetic Interference (EMI) or transient interference. This type of
interference may cause failure or erratic operation of the device.
We should consider using a second transformer to source AC power to
DC power supplies. Input circuits should be utilized to isolate the output
circuits and prevent voltage from the output transients (spikes) from being
induced into the input circuits. In some cases, we may need to use a
constant voltage transformer to stabilize the incoming AC power source
supplying the PLC to minimize shutdowns due to power surges, voltage dips
and brownouts. When using a constant voltage transformer to power a PLC,
the sensors connected to the PLC inputs should use the same power
source. Otherwise, the AC source voltage could drop low enough to cause
inaccurate input data. Also, the use of an isolation transformer, for example
115VAC primary to 115VAC secondary, can provide additional suppression
of EMI from other equipment. Isolation transformers should be used near
equipment that produces excessive electrical noise.
If DC power is required in our control system, we need to calculate the
worst case amperage draw (load) of all the devices that will be powered
from the DC supply. We also need to look at the amount of ripple the
devices being powered can tolerate and select a DC power supply that can
meet the most stringent requirement. Ripple is the amplitude of the AC
component that rides on the DC voltage signal. A typical rating for most
applications involving DC powered sensors would be 100mV peak-to-peak.
It is also a good idea to double the calculated amperage capacity of the DC
power supply. This is especially important if our control system needs to
meet UL (Underwriters Laboratories, Inc.) 508A standard.
in
33
The next section of our schematic will show the hard-wired devices that
are powered from our control voltage (115VAC). If our control logic is based
on hard-wired relays, this is where we would show the hard-wired
connections, along with the normal 115VAC powered devices, such as DC
power supplies, 115VAC power to PLC power supplies, auxiliary devices, etc.
The figure below is a partial example of the hard-wired section of our
schematic.
in
34
If using a PLC, the final section of our schematic will show the input and
output modules with their device wiring. Below is an example of the wiring
for an input module.
As technology advances, it
reverses the characteristics of
every situation again and again.
The age of automation is going to
be the age of do it yourself.
- Marshall McLuhan
in
35
Panel Layout
Once we have our schematic finalized, the next step is a panel layout
drawing. In most cases, the actual panel is referred to as a subpanel. We
can mount all the components to a structure (the subpanel), wire all the
components, and do this before mounting the subpanel in the control
system enclosure. The panel layout drawing should be done to scale and
include dimensions for the panel builder to follow when laying out the
components. Special attention should be given to component location and
spacing. We need to follow the manufacturer-recommended mounting
distances and clearances. Below is a partial example of a panel layout
drawing.
The higher voltage devices (those that operate at 240/480 VAC) should
be mounted toward the top of the panel, keeping as much distance as
possible between the high-voltage devices and any electronic devices, such
as PLCs, DC power supplies, electronic timers, etc. Keeping the highvoltage devices toward the top allows us to cover all of the high-voltage
devices with a non-conductive safety shield for personnel safety. It keeps
the lower voltage devices grouped together, allowing access to wiring
terminals that will aid in troubleshooting our control system. In some cases,
a metal partition between the high-voltage section of our control panel and
any sensitive electronic devices can act as a shield from any EMI generated
by the high-voltage devices.
in
36
In our panel layout design, we need to include wire duct between the
various components. The wire duct simplifies the wire routing between
components, keeps the wires in place, makes working with the wires easier,
and gives the panel a well-organized look. We should also make use of
terminal blocks in our design. Terminal blocks can be sized, organized and
even color-coded to handle the different types of signals that enter and
leave our control panel. We may choose to use black for high voltage, red
for inputs, violet for outputs, etc. We should try to locate the terminal blocks
so they provide the best wire routing from the components to the terminal
blocks. The terminal blocks also make it convenient for the electrician to
terminate his field wiring when the control enclosure is installed.
Bill of Materials
The Bill of Materials (BOM) should list each component in our automated
control system, the quantity of each component, any designations or
marks that allow us to easily identify the component on our schematic, a
description of the component, and its part number. We can also have
comments or remarks about the component that will help the panel builder
know what needs to be done when the control panel is being built. Below is
a short example of a bill of materials. The BOM can be in the form of a table
drawn on one of the sheets along with the schematic and panel layout. It
can also be done as a spreadsheet, which would allow easy indexing and
future referencing.
in
37
Wiring Diagram
A wiring diagram, sometimes referred to as an interconnecting diagram,
is used mainly for installation by the electrician for routing and terminating
the wiring between the various devices and enclosures in the control
system. It should include all control enclosures or cabinets, any external
devices that are wired into control enclosures, junction boxes, conduits,
wireways, etc. The wiring diagram usually includes conduit sizes, distances,
number of conductors between devices, wire sizes, colors, wire numbers,
terminal blocks, etc. The wiring diagram is also useful for system startup
and later for locating wire routing and devices during troubleshooting.
Bellow is an example of a wiring diagram.
in
38
Design Tools
Although all of the tasks related to documenting the design can be
performed with nothing more than a pencil, paper and a ruler, it is normally
more efficient to use a software drafting utility, such as AutoDesks
AutoCAD or AutoCAD LT software. The biggest advantage in using a
software drafting program to create schematics, panel layouts, bill of
materials and wiring diagrams is the ability to re-use the work for future
electrical control system designs. The drafting software can also be used to
create our sequence of operation, flowchart or timing diagram. Add-ins for
various drafting software packages can be geared toward electrical control
system design. These add-ins contain pre-constructed elements of different
manufacturers electrical devices. This may include schematics of PLC I/O
modules, power supplies, communication devices, etc. These preconstructed elements also include scaled outlines of relays, motor starters,
terminal blocks, etc. that can be dropped into your panel layout design.
This type of software has the ability to act as a database for components
that would be used in our control system design and can aid in coordinating
the components between our schematic, panel layout and bill of materials.
in
39
CHAPTER
5
Build
40
Build
in
41
Wiring Recommendations
The following guidelines provide general information on how to wire most
automation equipment. For specific information on wiring a particular PLC or
device, refer to the installation manual included with your equipment.
! Warning:
Providing a safe operating environment for personnel and equipment is
your responsibility and should be a primary goal during system
planning and installation. Automation systems can fail and may result in
situations that can cause serious injury to personnel or damage to
equipment. Do not rely on the automation system alone to provide a
safe operating environment. Use external electro-mechanical devices,
such as relays or limit switches that are independent of the automation
equipment, to provide protection for any part of the system that may
cause personal injury or damage.
! Warning:
Every automation application is different. Therefore, there may be
special requirements for your particular application. Be sure to follow
all National, State, and local government requirements for the proper
installation and use of your equipment.
in
42
Grounding
Electronic instrumentation such as PLCs and field I/O are typically
surrounded by various types of electronic devices and wires. All these may
present a risk of Electromagnetic Interference (EMI) or transient
interference. This type of interference may cause erratic operation of
components and cause failures.
In addition to device interference, automation equipment and devices
could be damaged by powerful line surges. These line surges may come
from common voltage fluctuations from a power supply, lightning, or
unintentional contact with a high voltage line. A power surge will cause a
temporary failure, fuse burn-up, or even very serious damage to the
equipment.
Grounding provides a low impedance path that limits these voltages and
stabilizes interference. Grounding is a must to protect your automation
equipment and devices from serious damage, failures, and even potential
risk to users.
Grounding is the foundation of achieving a reliable power distribution
system. During the panel and control system build, it is important that a
reliable grounding system be implemented. Poor grounding or improper or
defective wiring may be the cause of most problems affecting power quality.
The following is a list of existing grounding standards that may be used for
reference:
in
43
in
44
Shielded Cables
A shielded cable is an insulated cable consisting of strands of copper or
other material enclosed with a metallic shield underneath a jacketed sheath.
Shielded cables are used to reduce the interference from electrical noise.
Some instrumentation requires the use of shielded cables for specific
connections. When installing instrumentation, verify whether any connection
requires a shielded cable. Failure to use the shielded cable will result in
erratic readings or signals from the instrumentation. If the product being
installed requires shielded cables, the grounding specifications provided by
the manufacturer manual must be followed. Improper installation of shielded
cables may cause a ground loop that will cause failure on a processor or
would allow noise into the logic circuit.
There are various types of shielded cable available for different uses.
The shielded cables listed below are the most commonly used for
automation control systems and instrumentation:
in
45
in
46
Visit: N2ADC.com/ve5cw
f
in
47
CHAPTER
6
Install and Start-up
48
Install
in
49
NEC: The National Electrical Code provides regulations for the installation
and use of various types of electrical equipment. Copies of the NEC
Handbook can often be obtained from your local electrical equipment
distributor or your local library.
Local and State Agencies: Many local governments and state
governments have additional requirements above and beyond those
described in the NEC Handbook. Check with your local Electrical Inspector
or Fire Marshal office for information.
in
50
Start-up
The Moment of Truth!
The startup of our automated control system begins once we have
installed our control system enclosure and auxiliary equipment, terminated
all field wiring, and completed required testing. This process is also called
commissioning the automated control system and related
equipment/process.
As a starting point, it is best to isolate the various sections of our control
system power wiring by removing the fuses and/or opening circuit breakers.
The best tool to use during commissioning is the schematic diagrams. We
will want to start at the incoming power, and basically work our way through
the entire schematic.
As a first step, we may want to apply power to the main circuit breaker or
fused disconnect of our control system. Then, measure the voltage for
proper values, phase-to-phase and each phase-to-ground, if the incoming
power is three phase. Next, we can turn on the main circuit protector and
check the voltage at each device that is fed from the main source. Then start
turning the circuit breakers on or replace the fuses one circuit at a time and
make additional voltage checks as well as test equipment operation that
may be powered from the circuit.
Keep in mind that every control system will not be the same. Therefore,
each system will require a different strategy to bring the equipment online
safely. Consider having motors uncoupled from their respective loads, air
pressure off, disabling hydraulics, and using Lockout/Tagout (LOTO)
procedures. Measure voltages as you go. If using a PLC, connect a PC to it
and monitor the I/O to make sure their states are responding correctly.
During this time it is best to have a null (empty) program in the PLC so you
do not energize actual equipment while continuity testing is in progress.
in
51
Once you have tested electrical continuity and corrected any wiring
errors or problems, you can connect all uncoupled devices and load the
control program into the PLC.
Testing the logic of your program should be done with safety in mind. If
you will be energizing live loads as you test, ensure all personnel are aware
and a technician is physically observing operations in the event of a
malfunction or incorrect programming. You may want to disable all outputs
and enable one section of the program at a time to test.
Read awesome
application stories!
Automation System Retrofit
Transforms 175-ton Hydraulic
forming press.
www.N2ADC.com/rkwo5
in
52
CHAPTER
7
Maintain
53
Maintain
in
54
Programmable
Controllers
Buy from AutomationDirect.com and get
FREE Tech Support and Software!
Learn More
55
Appendix
in
56
Step 1:
Determine whether your system is new or
existing: Will your system be installed from
scratch or are there existing products
already installed? The rest of your system
will need to be compatible with new
components.
Why this is important: Certain controller
products may not be compatible with
others. Making sure your existing products
are compatible with any new products you
are researching will save you time and
money. Check appropriate entry.
Step 2:
Consider any environmental issues that will affect your application (temperature, dust,
vibration, codes specific to your facility, etc.).
Why this is important: Certain environments may affect the operation of a controller.
For example, typical controllers have an operating temperature of 0-55 degrees Celsius
(32-130 degrees F). If your application will include any extreme environmental conditions,
or you have specific codes at your facility that must be met, you will need to either
research products that meet those specifications or design the installation to meet
requirements. Check appropriate entry.
Step 3:
Determine how many discrete devices your system will have. Which types (AC, DC, etc.)
are needed?
Why this is important: The number and type of devices your system will include is
directly linked to the amount of I/O that will be necessary for your system. You will need
to choose a controller that supports your I/O count requirements and has modules that
support your signal types. Enter quantities and type based on corresponding field devices
in
57
Step 4:
Determine how many analog devices your system will have. Which types (voltage,
current, temperature, etc.) are needed?
Why this is important: The number and type of devices your system will include is
directly linked to the amount of I/O that will be necessary for your system. You will need
to choose a controller that supports your I/O count requirements and has modules that
support your signal types. Enter quantities and type based on corresponding field devices
Step 5:
Determine whether your system will require any specialty features: Will your application
require high-speed counting or positioning? What about a real-time clock or other
specialty feature?
Why this is important: Specialty functions are not necessarily available in a controller
CPU or in standard I/O modules. Understanding the special functions your system may
perform will help you determine whether or not you will need to purchase additional
specialty modules. Check all features required..
Step 6:
Determine the type of CPU you will need: How much memory will your system require?
How many devices will your system have (determines data memory)? How large is your
program, and what types of instructions will your program include (determines program
memory)? How fast a scan time do you need?
Why this is important: Data memory refers to the amount of memory needed for
dynamic data manipulation and storage in the system. For example, counter and timer
instructions typically use data memory to store setpoints, current values, and other
internal flags. If the application requires historical data retention, such as measured
device values over a long period of time, the size of the data tables required may
determine the CPU model you choose. Program memory is the amount of memory
needed to store the sequence of program instructions that have been selected to perform
the application. Each type of instruction requires a specific amount of program memory,
typically defined in a programming manual. Applications that are basically sequential in
nature can rely on the I/O device rule of thumb to estimate program memory (five words
of memory for each I/O device); complex applications will be more difficult to judge.
If scan time is important in your application, consider the CPU processor speed as well
as instruction execution speed. Some CPUs are faster at boolean logic but slower with
data handling instructions.
in
58
Step 7:
Determine where your I/O will be located: Will your system require only local I/O, or both
local and remote I/O locations?
Why this is important: If subsystems will be needed at long distances from the CPU,
you will need a controller that supports remote I/O. You will also have to determine if the
remote distances and speeds supported will be adequate for your application. Serial and
Ethernet-based I/O hardware are two typical choices available for most systems. This I/O
may also be referred to as distributed I/O, and may require a particular protocol, such as
Modbus.
Step 8:
Determine your communication requirements: Will your system be communicating to
other networks, systems or field devices?
Why this is important: Communication ports (other than the programming port) are not
always included with a controller. Knowing your system communication requirements will
help you choose a CPU that supports your communication requirements, or additional
communication modules if necessary. Check any/all communications.
Step 9:
Determine your programming requirements: Does your application require only
traditional programming instructions, or are special instructions necessary?
Why this is important: Certain controllers may not support every type of instruction.
You will need to choose a model that supports all instructions that you may need for a
specific application. For example, built-in PID functions are much easier to use than
writing your own code to perform closed-loop process control. Typical instructions such
as timers, counters, etc. are available in most controllers; note any other special
instructions required here. Check any/all programming functions required.
Download a PDF worksheet with space for recording the determinations for your
system by visiting N2ADC.com/l8jv4
in
59
Discrete I/O
Lets take the simplest first, discrete. Discrete signals are signals that are either on or
off, true or false. Think of a light switch in your house. The switch either turns the light on
or it turns it off, unless it is a florescent tube then its probably still blinking. Because
discrete signals exist in one of these two states, they are represented with a square wave
as seen below.
In the PLC world, there are many uses for discrete I/O. Some of the devices that
supply on/off signals are pushbuttons, photoeyes, limit switches, float switches and
proximity switches. In my startup days, I did a lot of work with a certain parcel service.
They use a lot of on/off sensing and control in order to track packages and get them to
the right destination or truck. Photoeyes, which are devices that emit an infrared light
beam and can sense when that beam has been broken, are used extensively to detect
in
60
Analog I/O
Analog signals are signals that can vary or change. We live in an analog world and
our senses are analog receivers. Feel how hot it is!, Can you speak up? and Look at
all the colors! are statements that show how the variation in analog signals like
temperature, sound, and light can affect our senses. Back to the light switch example;
lets now install a little mood lighting in our home. Instead of the regular on/off switch we
are going to use a dimmer switch. The dimmer switch will vary the resistance in the line,
causing the light to dim or brighten as we choose. Newer dimmer switches have
advanced to be more efficient but for this example we are going old school. The voltage
supplied to the light will not be a constant level but a changing one set between the upper
and lower limits. This is usually represented by a sine wave.
Using Transducers
Position, level, temperature, pressure, flow and speed are just some of the
measurements that analog devices can provide to a control system. You are probably
asking yourself: How does pressure, which is a physical quantity, become an electrical
signal? That is a great question! The conversion is done using transducers. A transducer
will take a physical quantity like pressure and convert it to an electrical signal. A lot of
transducers use the physical quantity to control the resistance in the electrical circuit. For
example, an RTD (Resistance Temperature Detector) will change its resistance value
based on heat. As heat increases so does the resistance in the circuit, altering the
supplied voltage or current. Same holds true for pressure transducers that use strain
gauges. As pressure is applied to the strain gauge, the resistance in the circuit goes up
t in 61
f
Scaling
Scaling is when we take the raw voltage or current value returned and translate it into
a meaningful measurement. Lets say I have a 4-20mA flow meter that is returning an
8mA signal to the PLC. That would mean that 8mA of fluid is flowing at this time, right? Of
course not. We need to take the raw value and scale it to something meaningful, lets say
gallons per minute. We know from the manufacturer that the flow meter is calibrated to
read a flow of 0 to 200 gpm. Therefore, we can scale the raw value 4-20mA to equal 0200 gpm in our system. Normally, this can be done using the programming software, as
seen below, and after our value of 8mA is scaled we see that there is currently a flow of
50 gallons per minute.
in
62
Noise
One last thing, when using analog signals it is important to remember that they are
highly susceptible to noise. Noise can cause wrong readings and erratic behavior in a
control system. Take a look at the diagram below. My system will open a pressure relief
valve on a tank when the raw pressure signal from inside the tank reaches 5.9VDC. With
the returning signal on the left thats no problem. With the noise induced on the right,
good luck!
in
63
in
64
in
65
in
66
Conclusion
Device specification is a major part of the automating process but it is
only a part. Because of that, the devices chosen at this point are not
concrete. In later phases of development, issues may arise that can cause
the choices made here to change. One final thought on system
specification; when specifying a system always plan for safety, use
redundancy where needed and consider future expansion possibilities.
Download Template at: N2ADC.com/yknp2
in
67
Traditional
Starters
Combination
Starters
Manual Motor
Starters
Contactor
Manual Motor
Starters(MMS)
Typical Applications:
Electronic
switching
Contactor &
Overload Relay
Lighting
Typical Applications:
Resistive loads
Non-motorrelated inductive
loads
Disconnect
switches
VFD
bypass/isolation
Inductive motor
starting and
control
NEC 430 and
409 fulfillment
Nm starter
replacement/
retrofit
Manual Motor
Starter, Contactor,
Link Module, and
Base Plate
Typical Applications:
Inductive motor
starting and
manual control
Typical Applications:
Inductive motor
starting and
control
NEC 430
fulfillment
Lockout/tagout
UL 508, Type E
Lockout/tagout
UL 508, Type F
in
68
Basic
Contactors Only
Traditional
Starters
Combination
Starters
Manual Motor
Starters
Duo Series
Duo Series
Duo Series
Duo Series
SC-E Contactor
SC-E Contactor
BM3 Manual
Motor Starter
BM3 Manual
Motor Starter
1/2 to 100 hp @
480 V
TK-E Overload
Relay
1/2 to 100 hp @
480 V
9-150 A (AC-3)
1/2 to 100 hp @
480 V
SC-EContactor
BZ0L Link Module
Odyssey Series
Odyssey Series
3N Contactor
3N Contactor
60 to 300 hp
3N Overload
Relay
180-361 A (AC3)
BZ0BP Base
Plate
1/2 to 100 hp @
480 V
60 to 300 hp
in
69
Type
Through-beam
Advantages
Most accurate
Very reliable
Reflective
Disadvantages
Must install at two points on
system: emitter and receiver
Costly must purchase both
emitter and receiver
Very reliable
Only install at one point
Diffuse
Background
Suppression
in
70
Step 1:
What is the sensing distance required?
The sensing distance is the distance between the tip of the sensor and the object to
be sensed. In our catalog, the selection guide and the specifications table for each
sensor family lists the sensing distances.
Some things to keep in mind are:
A. In many applications, it is beneficial to place the sensor as far as possible from the
sensing object due to temperature concerns. If a sensor is placed too close to a hot
temperature source, the sensor will fail quicker and require more maintenance.
Greater distance may be achieved with extended and triple range sensors. In many
applications, a sensor may not be mountable close to the sensed object. In this case,
longer sensing distances are needed. For example, AutomationDirect extended
sensing distance sensors are offered in 8mm to 30mm diameters, and triple sensing
distance sensors in 8mm and 12mm formats.
In many cases, using an extended distance sensor to get the sensor farther away from
the detected object can be beneficial to the life of the sensor. For example, without an
extended distance sensor you may not be able to place the sensor far enough away
from the detectable object, or you may need to buy more expensive high temperature
sensors. Another example would be a mechanical overshoot situation, where mounting
the sensor farther from the detection object may eliminate unneeded contact with the
sensor, thereby extending the life of the sensor.
These are just a few examples, but the benefits of using extended distance sensors are
obvious in many applications. Think of how extended distance sensors could save you
time and money in your application.
in
71
Step 2:
How much space is available for mounting the sensor?
Have you ever tried using a round sensor or short body version, and not been able to
make it fit? Rectangular sensors can meet your needs. The same technology used in a
standard round proximity sensor is enclosed in a rectangular housing. This technology
includes sensing distances, electrical protection and switching frequencies similar to
round sensors.
Step 3:
Is a shielded or unshielded sensor needed?
Shielded and unshielded sensors are also referred to as
embeddable and non-embeddable. Unshielded sensors
allow longer sensing distances but shielded sensors
allow flush mounting.
Step 4:
Consider environmental placement concerns.
Will the sensor be placed underwater, in a high-temperature environment, continually
splashed with oil, etc.? This will determine the type of sensor you may use. In the
selection table and in the specification tables for each sensor family in our catalog, we list
the environmental protection degree ratings. Most of our sensors are rated IEC-IP67 and
others are rated IP65 or IP68; we also carry a range of IP69K rated sensors for harsh
conditions.
in
72
Step 5:
What is the sensor output connected to?
Note: If using AC sensors, please skip this step.
The type of output required must be determined (i.e., NPN, PNP or analog). Most PLC
products will accept any output. If connecting to a solid state relay, a PNP output is
needed.
Step 6a:
Step 6b:
in
73
Step 7:
Determine output connection type.
Do you want an axial cable factory attached to the sensor (pigtail) or a quick-disconnect
cable?
There are many advantages to using a quick-disconnect cable, such as easier
maintenance and replacement. All proximity sensors will fail in time and using a Q/D
(quick-disconnect) cable allows for simple replacement. Factory attached axial cables
come in a 2 meter length. In our catalog, CD08/CD12 Q/D cables come in 2 meter, 5
meter, and 7 meter lengths. Extension cables are available in 1 meter and 3 meter
lengths to extend the length of the standard Q/D cables.
Q/D cables are offered in PVC and PUR jackets for meeting the requirements of all
applications. Axial cables typically come with a PVC jacket. PVC is a general purpose
insulation while PUR provides excellent oxidation, oil and ozone resistance. PUR is
beneficial if the cable is exposed to oils or placed in direct sunlight.
There are also advantages to a factory attached axial cable:
Cost: The cable is integrated into the sensor and included in the price. Q/D cables
must be purchased separately.
Environmental Impact: Since the cable is sealed into the sensor, there is less chance
of oil, water or dust penetration into the sensor, which could cause failure.
in
74
in
75
in
76
NOTE: Assuming all input circuits have a similar resistance, the current at the common
terminal is four times greater than the current at any one of the inputs. This effect is
especially important to note for output circuits, where the current through a
common terminal can reach several amperes. You will need to decide whether to fuse
each output point individually, or to put a fuse in the common terminal path.
in
77
NEMA 4
NEMA 4 enclosures are used in many applications where an
occasional washdown occurs or where machine tool cutter coolant
is used. They also serve in applications where a
pressurized stream of water will be used. NEMA 4 enclosures are
gasketed and the door is clamped for maximum sealing. They
have continuous hinges, mounting feet, and padlock hasps. NEMA
4 enclosures are available in sizes from small wall mounts to twodoor floor mount models.
in
78
in
79
Power supplies
Servos
AC Drives/inverters
Soft starters
Transformers
PLC systems
Communication products
HMI systems
Battery back-up systems
Industrial ovens
Solar heat gain
Foundry equipment
Blast furnaces
in
80
in
81
in
82
in
83
in
84
in
85
in
86
Memory Aids
We all have used an acronym, mnemonic, rhyme, word association, or other technique
to help us remember information, lists, events, etc. I know they work because most of
them are still stuck in my head. See how many of the following you may remember.
Resistor Color Code Better Be Right Or Your Great Big Venture Goes West
Color bands are used to represent numeric values in ohms on certain types of resistors.
The numbers 0 through 9 are represented by the colors black, brown, red, orange,
yellow, green, blue, violet, gray, and white respectively. The first and second band are
typically the resistors first two significant digits, the third band is the number of zeros
following the first two digits, and the forth band is the resistors tolerance. There are
many variations to this type of resistor coding, but to recall the basic color order, you can
memorize the saying Better Be Right Or Your Great Big Venture Goes West. A little
investigation will most likely discover many other sayings for memorizing the resistor
color code, some not as elegant as the one we have shared.
in
87
Memory Aids
Algebraic Expressions
Solving algebraic expressions can be somewhat confusing unless we understand the
order of operations that have been defined. Take the following equation: 7 + 6 / 2 2 * 3
= In which order do we solve the various elements? Can we take 7, add it to 6, then
divide the result by 2, or maybe divide 6 by 2 and take the result away from 7? Luckily
the order has been defined for us. We solve algebraic expressions by doing the
computations in Parentheses first, if they are present, followed by Exponents, then either
Multiplication or Division (order does not matter), and finally either Addition or Subtraction
(again order does not matter). An easy way to remember this order is to memorize the
saying Please Excuse My Dear Aunt Sally.
Value of Pi
If you forget Pi = 3.14159, you can get a quick approximation on a simple calculator by
solving 22/7, or for more accuracy while just a bit harder to remember, solve 355/113.
in
88
Accumulated value: Applies to the use of timers and counters. The accumulated
value is the present count or time.
Accuracy: The deviation between the actual position and the theoretical position.
Address: Number used to specify a storage location in memory.
Analog: Signal with a smooth range of possible values. For example, a
temperature that could vary between 60 and 300 degrees would be analog in
nature.
Backplane: Bus in the back of a PLC chassis. It is a printed circuit board with
sockets that accept various modules.
Baud rate: Speed of serial communications. The number of bits per second
transmitted. For example, RS-232 is normally used with a baud rate of 9600. This
would be about 9600 bits per second. It takes about 10 bits in serial to send an
ASCII character so that a baud rate of 9600 would transmit about 960 characters
per second.
Binary: Base-two number system. Binary is a system in which ones and zeros are
used to represent numbers.
Binary-coded decimal (BCD): A number system. Each decimal number is
represented by four binary bits. For example, the decimal number 967 would be
represented by 1001 0110 0111 in BCD.
Bit: Binary digit. The smallest element of binary data. A bit will be either a zero or a
one.
Byte: Eight bits or two nibbles. (A nibble is 4 bits.)
Central processing unit (CPU): Microprocessor portion of the PLC. It is the
portion of the PLC that handles the logic.
Compare instruction: PLC instruction that is used to test numerical values for
equal, greater than, or less than relationships.
Contact: Symbol used in programming PLCs to represent inputs. There are
normally open and normally closed contacts. Contacts are also the conductors in
electrical devices such as starters.
Contactor: Special-purpose relay that is used to control large electrical current.
Current sinking: Refers to an output device (typically an NPN transistor) that
allows current flow from the load through the output to ground.
Current sourcing: Output device (typically a PNP transistor) that allows current
flow from the output through the load and then to ground.
in
89
Data table: A consecutive group of user references (data) of the same size that
can be accessed with table read/write functions.
Debugging: Process of finding problems (bugs) in any system.
Digital output: An output that can have two states: on or off. These are also called
discrete outputs.
Downtime: The time a system is not available for production or operation is called
downtime. Downtime can be caused by breakdowns in systems.
EEPROM: Electrically erasable programmable read only memory.
Energize: Instruction that causes a bit to be a one. This turns an output on.
Examine-off: Contact used in ladder logic. It is a normally closed contact. The
contact is true (or closed) if the real-world input associated with itis off.
Examine-on: Contact used in ladder logic programming. Called a normally open
contact. This type of contact is true (or closed) if the real- world input associated
with it is on.
Firmware: A series of instructions contained in read-only memory (ROM) that are
used for the operating system functions. Some manufacturers offer upgrades for
PLCs. This is often done by replacing a ROM chip. Thus the combination of
software and hardware lead to it being called firmware.
Force: Refers to changing the state of actual I/O by changing the bit status in the
PLC. In other words, a person can force an output on by changing the bit
associated with the real-world output to a 1. Forcing is normally used to
troubleshoot a system.
Ground: Direct connection between equipment (chassis) and earth ground.
Hexadecimal: Numbering system that utilizes base 16.
Hysteresis: A dead band that is purposely introduced to eliminate false reads in the
case of a sensor. In an encoder hysteresis would be introduced in the electronics to
prevent ambiguities if the system happens to dither on a transition.
Image table: Area used to store the status of input and output bits.
Instruction set: Instructions that are available to program the PLC.
I/O (input/output): Used to speak about the number of inputs and outputs that are
needed for a system, or the number of inputs and outputs thata particular
programmable logic controller can handle.
IP rating: Rating system established by the IEC that defines the protection offered
by electrical enclosures. It is similar to the NEMA rating system.
K: Abbreviation for the number 1000. In computer language it is equal to two to the
tenth, or 1024.
Ladder diagram: Programmable controller language that uses contacts and coils to
define a control sequence.
LAN: See Local area network.
in
90
in
91
Off-delay timer: This is a type of timer that is on immediately when it receives its
input enable. It turns off after it reaches its preset time.
Off-line programming: Programming that is done while not attached to the actual
device. For example, a PLC program can be written for a PLC without being
attached. The program can then be downloaded to the PLC.
On-delay timer: Timer that does not turn on until its time has reached the preset
time value.
One-shot contact: Contact that is only on for one scan when activated.
Parity: Bit used to help check for data integrity during a data communication.
Peer-to-peer: This is communication that occurs between similar devices. For
example, two PLCs communicating would be peer-to-peer. A PLC communicating to
a computer would be device-to-host.
PID (Proportional, integral, derivative) control: Control algorithm that is used to
closely control processes such as temperature, mixture, position, and velocity. The
proportional portion takes care of the magnitude of the error. The integral takes care
of small errors over time. The derivative compensates for the rate of error change.
PLC: Programmable logic controller.
Programmable controller: A special-purpose computer. Programmed in ladder
logic. It was also designed so that devices could be easily interfaced with it.
PPR (Pulses per revolution): This refers to the number of pulses an encoder
produces in one revolution.
Quadrature: Two output channels out of phase with each other by 90 degrees.
Retentive coil: A coil that will remain in its last state, even though power was
removed.
Retentive timer: Timer that retains the present count even if the input enable signal
is lost. When the input enable is active again, the timer begins to count again from
where it left off.
ROM (read-only memory): This is operating system memory. ROM is nonvolatile.
It is not lost when the power is turned off.
RS-232: Common serial communications standard. This standard specifies the
purpose of each of 25 pins. It does not specify connectors or which pins must be
used.
RS-422: Standards for two types of serial communication. RS-422 is a balanced
serial mode. This means that the transmit and receive lines have their own common
instead of sharing one like RS-232. Balanced mode is more noise immune. This
allows for higher data transmission rates and longer transmission distances.
RS-485: Similar to the RS-422 standard. Receivers have additional sensitivity which
allows for longer distances and more communication drops. Includes some extra
protection for receiver circuits.
in
92
in
93