Académique Documents
Professionnel Documents
Culture Documents
ControlENGINEERING
Engineering
and Control Engineering magazines
PLANT ENGINEERING magazines
Get the PRO in
COMMUNICATIONS
Other
Controllers
Drives
Universal
I/O
Whether you are configuring a new application or looking to 32pt 24 VDC IN $158.00 $423.00 $432.50
expand an existing one, we can get you in control and P3-32ND3 1769-IQ32 1756-IB32
+ Value 16 ch 0-20mA
Analog IN
$309.50
P3-16AD-1
$1,056.00
1769-IF16C
$1,413.00
1756-IF16
8 ch THM & mV IN
1
$433.50 $915.50 $2,519.00
www.productivity3000.com
P3-08THM 1769-IT6 1756-IT6I
Total System
Price $2,533.50 $10,655.50 $20,760.00
Research, price, buy at: All prices are U.S. published prices. AutomationDirect prices are from October 2014 Price List. Allen-Bradley prices taken from www.plccenter.com 9/10/2014.
www.automationdirect.com/productivity3000
C OMMENT
Exploring measurement, design, and maturity
T
he cover story in this issue of “Almost all automation and control systems
AppliedAutomation completes the three- are designed, developed, and built using data
part series on motor measurement from processors, microprocessors, DSPs, or any other
Yokogawa’s Bill Gatheridge. In this processing device that executes instructions
article, Gatheridge continues his explana- derived or compiled from a software program.”
tion of how to make power measurements The third story expands on the concepts of the
for 3-phase ac motors and drive systems. He enterprise information system maturity model.
explains why it is important to accurately mea- The author provides advice on several aspects
Jack Smith sure VFD input and output power, electrical of Level 1 sustainability, which include software
Editor input power to the motor, and motor mechani- licensing, system/application extensibility, and
cal power. He also discusses the use of fil- system openness, scalability, and support.
ters when measuring PWM VFDs and during As AppliedAutomation enters its ninth year (the
harmonic analysis, as well as how they affect first issue was published in August 2006), I wel-
measurement outcomes. come your thoughts and feedback. If there is a
This issue also includes an article about topic you would like to see in AppliedAutomation,
designing real-time process controllers. or if you have a recent successful automation
Hardware-based automation and control sys- project you would like to share, I would like to
tems are giving way to software-based con- hear about it. Send your ideas for topics and
trol, according to the author. As he states: success stories to jsmith@cfemedia.com.
ON THE COVER Some power analyzers have a motor option that integrates speed and torque signals, which enables them to be used to measure
electrical and mechanical power. Courtesy: Yokogawa Corp. of America
3
By Bill Gatheridge Complete testing of a pulse width modulation
Yo k o g a w a (PWM)-based drive and motor system is a three-
I
Third step process. Step 1 is accurate measurement of
of three parts PWM VFD input and output power to identify drive
n the first part of this three-part series, we efficiency and power losses. Step 2 is accurate
examined basic electric motor power mea- measurement of motor input power. Step 3 is accu-
surements and analysis. In the second part, rate measurement of motor mechanical power.
we examined a three-step process for making preci- The optimum method is to integrate all three steps
sion electrical and mechanical power measurements using a single power analyzer to eliminate time skew.
on motors and variable frequency drive (VFD) sys- This provides excellent efficiency calculations as well—all
tems with complex and distorted waveforms, and how in a single software/hardware solution.
these measurements are used to calculate motor and Some power analyzers have a motor option in which
drive system efficiencies. In this third and final article on the speed and torque signals can be integrated in this
electric motor power measurement and analysis, we will manner. These power analyzers can measure electrical
cover power measurements for 3-phase ac motors and power and mechanical power, and send the data to a
drive systems. PC running software from the original analyzer manufac-
turer, or custom software from a system integrator (see
Lead Photo).
Lead photo: Some power analyzers have a motor option that inte-
grates speed and torque signals, which enables them to be used
to measure electrical and mechanical power. All graphics courtesy:
Yokogawa
A4 • October 2014 Applied Automation
Figure 1: This diagram shows a typical motor and drive test system. Figure 2: This screenshot shows a highly distorted PWM output
voltage and current waveform with very high harmonic content.
Designing real-time
process controllers
The most important constraint in a real-time system is that the time it takes
to process an input and produce an output must be well known.
T
that demand real-time control. At this point, the automation
controller designer must have a very good idea of what a
oday, almost all automation and control sys- real-time system is.
tems are designed, developed, and built using Hermann Kopetz, in his book, “Real Time Systems:
data processors, microprocessors, DSPs, or Design Principles for Distributed Embedded Applications”
any other processing device that executes (2011), stated that “A real-time computer system is a com-
instructions derived or compiled from a soft- puter system where the correctness of the system behav-
ware program. Very few and specialized con- ior depends not only on the logical results of the computa-
trol devices still use plain hardware or programmable hard- tions, but also on the physical time when these results are
ware using a field programmable gate array to accomplish produced. By system behavior we mean the sequence of
the job for which they were designed. outputs in time of a system.”
Nevertheless, to design and develop software applica- For any physical plant to be governed, it requires a
tions for a controller or automation device, special skills controller capable of acquiring some input signals and pro-
and a good understanding of the automation and control ducing some specific output signals within a very specific
problem are required. time frame. If the controller
Many designers and pro- outputs occur outside such
grammers build web serv- time frame, those outputs
ers, information systems, will no longer be valid, and
business process manage- will produce malfunctions or
ment systems, and many even a catastrophic failure
other important and valu- in the physical plant.
able infrastructures based
on computing platforms. Figure 1: This diagram shows a simple control system. The output Real-time explanation
But when it comes to signal is produced t seconds after the input signal is introduced. How can we determine
industrial process control- All graphics and tables courtesy: Mario Torre that a computer system is a
lers, the designer recog- real-time system? Suppose
nizes that a new design and programming paradigm is there is a very simple system, with just one input and one
required. This is well accepted throughout the automation output. Such system generates an output signal every time
and control industry. it receives an input signal (see Figure 1).
Now, suppose that we repeatedly (but not periodically)
Real-time processing apply the same input signal to this system. We may
Similarly, many concepts involving signal acquisition, expect that this system will generate the same output
transducers, control setpoints, and others are related to signal every time, at exactly t seconds after the input
process-state variables, measurements, and control. But signal is applied. Unfortunately, this is not what happens
mostly, they are closely connected with real-time process- in actual controllers. The same output signal will be gen-
ing. The concept of real-time processing must be consid- erated by the controller every time, but the time t that it
ered when any engineer designs, develops, and deploys a takes the controller to produce each output may increase
new automation and control system. This is what differenti- slightly (see Figure 2). If we repeat this experiment, we
ates automation software designers from designers of any will find that the controller response times fall into a
other application software. It’s not better or worse, easier variation interval, say Δt. Some literature refers to Δt as
or harder; it’s just different. “latency jitter.”
of the plant. This is a very general rule-of-thumb, and To date, almost all digital controllers are microprocessor-
may be different depending on the application and other based controllers. The designer is no longer entitled to
considerations and trade-offs. However, the controller build the hardware for a controller. Controller hardware
designer must use a specific Δt when designing a real- has been standardized, and all signal treatment, filtering,
time controller. and processing are managed by microprocessors. Most
So, now the question is: How can we reliably design a of them have several processing cores, depending on the
controller that guarantees some specific Δt? For simplicity, type and purpose of the controller. It may sound simple,
the discussion here will: but to date the work of a controller designer has been
Consider the design of an electronic controller reduced to:
for a plant. Selecting the right controller hardware according
Assume that all sensors, transducers, and to the application
actuators are readily available, and that all inputs Choosing the operating system to be used
and outputs are electrical signals. Selecting the programming environment or framework
Consider that this controller will be a digital controller, that will further help with the development
that is, analog-to-digital conversions are made, and Developing a software application to implement the
the control functions are being made by logical and actual controller function that is needed for the plant
mathematical operations. that the control designer envisions to control.
In brief, this controller will be developed using Selecting the right hardware controller for the application
(mostly) digital electronic components, PC boards, and may be, by itself, a complicated task. The characteristics
related parts. of hardware controllers will depend on the elapsed time t
The most basic approach for any electronic designer to required for the controller to provide the solution, and the
come up with a controller is to go with discrete components. latency jitter Δt that is expected from such controller. It is
Any digital controller may be implemented using logic gates, also determined by many other factors and conditions that
flip-flops, and buffers. Those components have a great per- go beyond considerations here. For this discussion, let’s
formance in regard to latency jitter. The Δt of most of those say that the correct hardware selection criteria will need to
components is very low (depending on gate technology, it is meet the following requirements:
about 40-50 nanosec), so the overall controller latency jitter Must be fast enough to handle the required
typically won’t exceed 1 microsec, which is good enough for elapsed time and latency jitter
most real-time applications—even hard real time. Must be able to handle processor interrupts
The main issue with this hardware approach is its lack in real-time
of flexibility and expandability. If there’s a need for an Must provide an “adequate” development and run-
extra input or a change to controller functionality, then a time software environment in which the designer can
new controller must be designed. However, it is important design and deploy the required software application.
to say that this hardware approach was widely used in
the past, and it is still being used in very specific applica- After the hardware is selected, the designer creates the
tions—most of them in the hard real-time domain. software application using a computer language accord-
ing to the chosen software development environment.
t4 Currently, hardware controllers include a rich, intuitive
software development environment, where applications
may run over some specific operating system and a pro-
Application gramming framework. Although it is not mandatory, the
use of the hardware manufacturer’s suggested program-
t3 t5 ming framework is advised. Please note that designing
software applications without using any software environ-
Programming framework ment is similar to building the hardware out of discrete
Operating system components and chips, as explained earlier.
t2 t6
Suppose that the designer already selected the hard-
t1 Hardware t7 ware and is about to design a new software application
on top of the selected operating system using a program-
ming language. Depending on the programming language
preferred, there may be more software layers between
the hardware and the actual controller application: frame-
Input events Output actions works (such as Microsoft.NET), virtual machines (such as
Oracle Java), or even hardware manufacturer proprietary
Figure 3: This diagram shows controller design processing layers. frameworks or programming interfaces.
• Contain large data arrays for recipe management and higher SEE IT ALL COME TOGETHER
servo axis count. Booth# S-1733
• Higher performance through electronic camming.
• Change cam profiles on the fly.
• Ethernet IP and PackML for machine-to-machine productivity. PACK EXPO International
November 2–5, 2014
Chicago, IL USA
Looking for performance greater than what you have now?
Call Yaskawa today.
YA S K A W A A M E R I C A , I N C .
DRIVES & MOTION DIVISION
1 - 8 0 0 - YA S K A W A YA S K A W A . C O M
t 1, t 7 Hardware latency: Time since the n Depends on CPU memory and I/O system n Properly design or assess selected hardware,
occurrence of the interrupt or polled (hardware) speed focusing on CPU, memory and I/O speed, interrupt
signal to the moment the operating n May be deterministic (very low ∆t) handling, and interrupt latency times
system starts attending to it; or time n Select the operating system that provides an
since the operating system reception n Depends on signal type and how it is
adequate interrupt service latency time
of the output signal request to the handled by hardware (interrupts, A/D
conversion, polling); depends on how the n Avoid polling for input signals whenever possible
moment the actual output is
produced. operating system handles interrupts
(interrupt service latency time)
t 2, t 6 Operating system latency: Elapsed n Determinism depends heavily on operating It is important to select the operating system best
time from when input signal was system scheduling policies and internal suited for the application
detected from the operating system to architecture n Select the operating system best suited for
the moment the event is sent to the n Yield ∆t depends on operating system real-time applications
programming framework for service; internal time slice interval, or “tick”
alternatively, time from when an out- n Operating system tick interval must be 10 times
put signal request is received from the smaller than the desired ∆t
framework until the operating system
schedules it for output.
t 3, t 5 Programming framework latency: n Determinism may be seriously compromised Select the programming framework designed for
Elapsed time from when an I/O event by framework performance real-time applications
is detected in the framework until such n Assess programming framework benchmarking
event is first attended to or generated tests, focusing on latency and response times
by the application. n Based on the application and ∆t desired, use of
programming framework will not be recommended
t4 App processing time: The actual n Determinism depends on the software n Software design, development, and implementa-
elapsed time of the controller application architecture, design, and tion must be in accordance with asynchronous,
application. implementation concurrent real-time best practices
n Performance will be governed by n Application design must fully leverage and
application-assigned operating system exploit the selected language, the programming
priority and availability of resources framework, the operating system, and the
controller hardware
All these layers further separate the controller applica- Each of the time components mentioned above provides
tion from the input and output signals. Also, it must be a portion of the total resulting controller latency jitter Δt.
noted that each of those layers adds latencies and pro- One of the controller designer’s main duties is to assess
cessing times. Figure 3 shows the processing layers for a every one of those components, and adequately weight
typical controller implementation. them to make sure that:
As displayed in Figure 3, an input event must be han- n Resulting controller latency t is the required one
dled from its occurrence, through all the layers, up to the n The sum of Δts from all time components will not go
actual application that will process it. After it is processed, beyond the desired latency jitter.
the application must send the results to the actual output
port, which also must go through the same layers. The This is not an easy task. Please note that what is
total response time for this simple control application, exposed in Table 2 is a very simplistic first view of a real-
using the above stack of hardware and software layers, time controller design. There are many more consider-
can be calculated as: ations that must be made by the controller designer and
assigned team that also affect selections of hardware,
t = t1 + t2 + t3 + t4 + t5 + t6 + t7 operating systems, and frameworks far beyond the strict
real-time performance of the controller.
However, under this scenario, how can the designer
guarantee that the total response time t will be the Mario Torre is a real-time systems design and architect
required one for the plant? How can the control designer specialist, focused on digital oil field automation, control,
ensure that such response time will be within a specific and real-time information systems. He is an electronics
latency jitter ∆t? Table 2 shows a detailed explanation engineer with a master’s degree in systems engineer-
of each time component and how each one affects Δt ing. He is currently a consulting advisor in the Intelligent
and also gives some initial recommendations on how to Operations Solutions Global Group at Halliburton
achieve the desired results. Landmark Software and Services in Houston.
U
The primary reason for making the
sing a maturity model pro- leap to Level 1 is the overall sustain-
vides advice to assist a ability of the system. Sustainability is
business owner moving primarily affected by the choice of the
processes and software application platform for the system.
from Level 0 (paper-based The following offers advice on several
systems or homegrown systems) of aspects of Level 1 sustainability.
the model to Level 1 (focused data Licensing: Licensing can be a road-
systems) (see Figure 1). block to maintaining and operating an
enterprise system. When selecting a
Great place to start Figure 1: More mature information systems
platform to build a Level 1 system, it is
The good news is that Level 0 require more investments, and a significant important to evaluate licensing models
applications make up a large number and carefully coordinated investment. All to identify any restrictions or limita-
of applications, and moving to Level 1 graphics courtesy: Leidos tions. Some software uses more com-
is a common activity within the matu- plex models, which may restrict access
rity model. The bad news is that the homegrown Level 0 to configuration and management tools. These restrictions
applications are almost always disbanded in the process. often provide a competitive advantage for the integrator or
It’s important to understand that this is a natural evolu- vendor to gain future work updating the system.
tion of maturity. The scope of the maturity model is not Here are some key issues to consider:
typically envisioned when Level 0 applications are built. The availability of configuration and management soft-
However, the work performed on these applications isn’t ware should not be limited to the system integrator
wasted effort. In some cases, it is the only way to under- performing the implementation. The owner and other
stand what is needed (either by the success of the appli- system integrators should be able to access and config-
cation to fill a specific need or by recognition of a need ure the software.
that went unfilled). This makes Level 0 systems a great Be wary of any licenses that restrict connectivity to a
place to start when developing requirements for an enter- “vendor-locked” version of configuration and manage-
prise-level system. ment software.
System licenses should not restrict communication to
Quick recap, context other third-party devices or applications that are not of
The enterprise information system maturity model an approved brand. This is not a technical limitation,
was introduced in the article, “Understand the maturity but rather a tactic used by vendors to prevent future
model to better manage, integrate plant floor, enterprise integration of competitors’ products into the existing
systems,” (Control Engineering, Aug. 2014). This model system.
presents a general context for understanding enterprise Some applications require a physical device, such as
systems. Most importantly, it provides a set of criteria to a USB key, to be present to properly license a system
evaluate your enterprise system needs and help deter- for operation. Hardware keys are susceptible to being
mine next steps to increase decision efficiency (and the stolen, and issues can arise when interfacing the licens-
bottom line). In effect: greater decision efficiency = lower ing hardware in a virtual environment. Systems should
costs = higher profits. provide software key licensing.
Openness: “Open” is a common buzzword that can What is the extent of the features that may be accessed
have several meanings. First, it can refer to the avail- through an available API or SDK? Is read/write access
ability of vendor support and configuration. Systems can to data possible? Are other system functions available?
be deployed so they are serviceable only by a single Is the system modular? Is it possible to buy what you
vendor through controlled proprietary knowledge. These need now and add functionality later?
“closed” systems force the owner to rely on a single If third-party modules or extensions may be developed
vendor and limit the owner’s ability to obtain competi- for the system, what are the development require-
tively priced services. ments?
The second meaning of openness is the ability to com- How accessible are the tools and training, if needed?
municate and integrate with third-party systems. Here are Does the system vendor provide training or certification
some questions to ask when examining system software: programs?
Does the system rely on proprietary protocols to com-
municate to devices and other systems? As a general rule, systems that support extensible frame-
Does the system store historical information in a propri- works are more flexible and provide better value over the
etary database? If so, are standard interfaces available, life of the system.
such as Web services or open database connectivity, to
allow data access from third-party systems? Scalability: In contrast to extensibility (which refers to
Does the system support exporting data into industry new system features), scalability signifies the ability to
standard formats such as comma separated variable add capacity to the system using the existing features. For
(CSV), Microsoft Excel, or extensible markup language example, a manufacturing control system is scaled by add-
(XML) files? ing a new controller. It is extended by a adding a new pro-
cessing feature that was not previously available.
It’s important to understand short- and long-term goals
when selecting a platform. Typically, a system supports the
necessary capacity at the time of the deployment. However,
the ability to support future capacity needs to be under-
stood. Be sure to select systems that may be rapidly and
cost-effectively expanded to meet users’ growing needs
without adversely affecting system performance. It is also
important that a system provides features to easily manage
and configure system components.
Support: The long-term success of a system depends
greatly on the ongoing support structure for hosting, mainte-
nance, and troubleshooting. The support responsibilities of
Figure 2: Moving to higher software maturity model levels (0 to 4)
the owner and system provider need to be clearly defined.
requires additional investment and can result in more efficient decision The following questions help determine how responsibilities
making that reduces cost and improves productivity. should be divided:
Can routine maintenance activities be performed by the
Open communication is crucial when augmenting the owner/third party?
system. Systems that don’t provide standard interfaces Can disaster recovery procedures be performed by the
increase the complexity of future integration and provide owner/third party?
lower overall value (see Figure 2). Can the IT resources at the installation site support the
Extensibility: The full usefulness of a system is rarely system hardware, operating system, and application
realized during the initial installation and use. Systems are software?
generally selected and installed to fulfill specific objectives. Can local resources support the hosting, backup, and
It’s common for future goals and requirements to dictate redundancy requirements or should some or all of the
changes to existing systems. The goal is to select applica- support responsibilities be outsourced to a third party?
tions that not only offer a set of features, but also provide
a platform on which the system may be enhanced and What’s next?
extended. After an owner has successfully implemented Level 1
There are several guidelines to use when evaluating the systems, the next step is to gain a competitive advantage
extensibility of a system: of centralized data with Level 2 maturity. Level 2 maturity
Does the system provide programming software, a enables businesses to correlate information across their
software development kit (SDK), or an application pro- systems and make key insights into their operations.
gramming interface (API) to support third-party devel-
oped modules? Corey Stefanczak is a senior system architect at Leidos.
is Sexi-lingual!
That’s right...our MOVIDRIVE inverter can
speak at least six fieldbus languages. It
can also substantially reduce the load from
your main PLC and drastically improve its
seweurodrive.com / 864-439-7537
Upgrade your Remote I/O™
System to EtherNet/IP™
with minimum
downtime!
Using ProSoft’s Remote I/O to
EtherNet/IP™ gateway and our
Blue Hose Industrial Media Converters
For more information,
visit psft.com/eiprioapplied1