Zibb
Subscribe to Control Engineering
FirstLight
Ask Charlie   


Recent Posts

Recent Comments

Most Commented On

Archives

Blog

Link This | Email this | Blog This | Comments (1)


What microprocessors are favored for control applications?
March 24, 2008

I’m not sure you’re asking the right question. What you really need for control applications is a controller, which is a complete computer system, not just the microprocessor. As a control engineer, that is what you want to concentrate on.

The figure below shows a simple single-axis control system. The brains of the outfit reside in the controller. All the other components are simple, low-complexity analog devices. While some of those external devices might contain some programmable elements, the system’s decision making engine is the processor running the controller. 
Control engineers need to worry about controllers, not the microprocessors that go into them.

That doesn’t mean that those other components don’t have any intelligence. Microprocessors are everywhere, and their capabilities, as well as the jobs they perform, vary widely. Most of the blocks shown contain at least one microprocessor.

The data acquisition electronics, for example, likely contains at least one microprocessor that directs the microsecond-by-microsecond activity necessary to sample a voltage, digitize the sample, put the sample into a memory buffer, and assemble a data packet needed to send the value over a serial bus to the controller. Even some sensors now have microprocessor controlled calibration capabilities.

The brains these system elements have, however, is typically very tiny compared to the controller’s smarts. The controller has to direct the overall operation in real time. It has to understand the sensor input, compare it to set points that describe the desired operating state, determine corrections intended to bring the actual state closer to the desired state. It is also responsible for any running the human-machine interface, if it exists.

No matter how you slice it, those requirements mean the controller needs a whole lot more than just a microprocessor. It’s a whole, grown up digital computer, not just a microprocessor. So, what you need to ask is what controller do I need, not what microprocessor.

No matter what your skill level, I do not recommend, as a control engineer, designing and building your own controller. There are lots of folks in lots of companies that do that for a living. Do yourself a favor and restrict your efforts to selecting the controller you need from commercial offerings.

As with any digital computer, there are certain elements required to make it go. Clearly, it needs at least one microprocessor. It also needs working memory — what most people refer to as “RAM” or random access memory — to hold instructions awaiting execution and data awaiting analysis or uploading.

It also needs multiple ways to communicate with the outside world, such as USB, Ethernet, serial ports, etc. It will use these to take data in (for example, from the data acquisition section) and send data out (say for use by the drive electronics. If it has to communicate with humans, it will do so through peripherals, such as biometric readers, display screens, printers, and so forth. It needs peripheral interfaces for those.

All digital computers need application software as well, which leads to a requirement for non-volatile memory to store it in when the computer is shut off. Controllers are no exception. Some systems, such as automotive engine control modules (ECUs), get by with rudimentary software burned into an electrically programmable read-only memory (EPROM). Others require large, sophisticated operating systems and application programs requiring tens of megabytes.

Controllers come in three basic types, which differ mainly in the way the minimum required features are packaged:

Programmable logic controllers (PLCs) and programmable automation controllers (PACs) are the desktop PCs of the automation world. They are designed to be more-or-less general purpose, providing all the capabilities needed for broad classes of applications. With these systems, all control engineers need to do is select a make and model, then develop application software.

PC-based control systems leverage technology readily available in the commercial PC market. Users, however, bear a great deal more responsibility for selecting peripherals and integrating them into the system. A subset of these units include industrialized PCs, which feature ruggedized packaging to survive harsh industrial environments.

Embedded systems put the most responsibility on the control engineer. He or she must not only specify a larger fraction of the components that go into the controller, but integrate them into a coordinated system and program them as well.

To incorporate PLCs and PACs into a control project is pretty much completely a control engineering task. Stepping into the PC-based world forces the engineer to spend somewhere between 40% and 60% of his or her effort on computer engineering. Embedded system designers spend 80% or more of their effort on computer-engineering tasks.

The tradeoff is flexibility. PLCs, for example, are pre-packaged for computer numeric control (CNC) and similar applications. PC-based control systems are capable of doing pretty much anything, but packaging options are limited for both the controller and peripherals. Engineers designing embedded systems are pretty much free to create anything they want in any package they want.

So, the rule of thumb is to do as much as you can in the PLC/PAC world. If you can’t accomplish what you want there, look into PC-based control. Only work with embedded systems if you can’t do it any other way.
In choosing the type of controller implementation, engineers trade increased computer design effort for increased design flexibility.

Posted by Charlie Masi on March 24, 2008 | Comments (1)


March 24, 2008
In response to: What microprocessors are favored for control applications?
John Schott, CAP, PE commented:

Very confusing and did not answer the question. Also skipped over the important question of opsys platform used, where PLC's rank much more stable and reliable than PAC's or PC's but lack the flexibility of communication inherent in a MS system. Embedded systems can be anything and are not a separate category. I have seen embedded systems made from standard PLC components or engineered from the ground up (reinventing the wheel). Since the brains of a controller is a large microprocessor, what is being used? (If not a proprietary chip set.) Not asking because I want to build one, but to look at capabilities. For example, PAC's and PC's use standard mP's from Intel and others that you would find in a desktop. Better PAC's may use a more robust chipset, but still using the Intel instruction set. Many questions boil down to: how stable is the processor/ operating system combination? For an aircraft autopilot, for example, a redundant processor system purpose-made for the application is a must. Nuclear power plants use a DCU system with full redundancy and fantastic stability. What happens when YOUR system crashes? RESPONSE: Sorry you didn't like the answer. I'll try again in another posting. We can't always be perfect. For now, I agree that virtually any automated control could be called an "embedded system." In practice, however, we reserve the term for a class of control systems built into devices that normally wouldn't be thought of as including automated controls, such as cellphones, dishwashers, and automobile engines. These are invariably specially designed for the application from the ground up. They are also usually space, power, and/or memory constrained.





POST A COMMENT
Display Name or Registered Users Login Here.

Before submitting this form, please type the characters displayed above:


Advertisement



Advertisements



About Us   |   Advertising Info   |   Site Map   |   Contact Us   |   Useful Sites   |   FREE Subscription   |   RSS
© 2008 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy
Please visit these other Reed Business sites