|
A
Comprehensive Guide to
Industrial Networks
Perry Sink Marshall In Part 1 of this series, I reviewed popular network protocols—what they’re used for and how they enhance the value of a product. In Part 2, I described the hardware and software requirements of each of these networks and some basic design considerations. I ended with a warning: “Don’t jump into this until you’ve examined alternatives to reinventing the wheel.” So what are the ways that a fieldbus project like this can be undertaken without starting from scratch? Murphy’s Law of
Industrial Networking So what’s the best approach? Volume, time to market, and price determine the answer to that question (see Table 1).
One approach is to use a gateway. These devices are black-box solutions that are expensive but quickly implemented. Usually, they’re used to solve an urgent problem on a specific installation. Plug-in modules are ideal for small-to-medium volume applications (i.e., hundreds of units per year) and can be quickly implemented. A chip-based solution may require the most up-front integration, but for high-volume jobs, the cost savings are dramatic. PC Interfaces
If your product is PC based, then the quickest and easiest way to connect it to a network is to use a PC card (e.g., a PCI or PC/104). These devices are available from many vendors for nearly every imaginable network (see Photos 1 and 2), and normally thmir documentation describes how process data can be exchanged between the card and the application software. If you decide to use a PC card, your first task will be to find an application program interface, or API. If the card has a driver for the operating system you’re using, then you can write programs in C or C++ and access the network via function calls. One of the unfortunate aspects of software interfaces is the need to constantly write new drivers to support the growing list of hardware components. If you’re about to write software to interface to a network card, be sure to think about which networks you plan to support. One Common Interface
for All Buses? This is a thorny problem for OEMs. Nobody—not even large, influential vendors—can count on all their customers using one bus. For any given application, there are at least three major networking standards that could do a good job. One solution is to define a common API, which reduces all the disparate communications mechanisms to a common memory map and a set of function calls. You can apply a common interface to all buses, capitalizing on the similarities between the bus structures (see Table 2).
There’s an 80/20 rule that comes to the developer’s advantage here. Typically, 80% of the information used by an automation system is basic, synchronous I/O data, and this is handled the same way by all buses. Once you’ve written code for I/O, you essentially have support of all the buses. The other 20% of the data—the configuration, parameter, and diagnostic data—are where you find the “value added” portion of a network. It’s not needed to make the system run. But if you take the time and use the information with care, it’s where substantial productivity, multiplied value, and maintenance advantages come in. It may take a lot of additional work, but it’s well worth the trouble. The trick is to come up with a method that makes the information available without spending six months writing custom code for every fieldbus you wish to support. A common API helps this tremendously. For example, the Synergetic/Hilscher family of network cards uses a single Dual Port Memory map. Once the data exchange software is written for one network, it can communicate to other networks with minimal changes. The expense of rewriting software is drastically reduced. Generic and
Industry-Standard Software Interfaces Dynamic Data Exchange (DDE) is an older technology that was designed with the same thing in mind. It’s not as fast as OPC, but it is common in the software world. For example, you can use a DDE server to put live data in an Excel spreadsheet. Gateways—A Quick and
Dirty Way to Connect Many times a customer must connect a device (e.g., a barcode reader, drive, or temperature controller) to a fieldbus, and the device has only an RS-232 or RS-485 port. Is there a solution? A serial-to-fieldbus gateway provides instant connectivity, giving you time to implement a more permanent link. Protocol converters usually include a configuration utility that establishes communication parameters and maps one side to the other (see Figure 1).
The serial device can communicate using Modbus or another common serial protocol (see Photo 3). Using RS-485, you can multidrop as many as 31 devices on the serial side. Devices are mapped into a single slave node on the fieldbus network. “Which Network Do I
Do First?” Band-Aids vs. Permanent
Solutions One solution is to use snap-in communications daughter boards. This approach works for small-volume applications, but a chip-based solution makes sense for larger, high-volume applications. These modules allow device manufacturers to enable their products with the ability to communicate via multiple protocols (master or slave in most cases) simply by snapping in a customized daughter board. The boards usually have the same footprint and software interface. Certification and conformance requirements and core network expertise can be effectively outsourced to a network vendor. Putting the footprint in your product ensures that you can meet the networking needs regardless of the protocol required. And modular solutions are especially helpful where the exact demand for the network protocol is unknown. Licensing Designs Once again, the issue of single network vs. multiple network capability comes up. If the volume of some options is low, fall back on the off-the-shelf OEM daughter board I mentioned earlier. But for high-volume applications, an outsourced design is a gr±at option. The up-front cost can be in the thousands or tens of thousands of dollars per network, but from that point on, it’s purely a matter of manufacturing considerations. There are many networking specialists who can provide off-the-shelf designs and customization services. If you make flow sensors, it’s probably best to keep your staff focused on the core product design and outsource communications to consultants. Ultimaüely, this path is less expensive, takes less time, and results in a higher quality product, which passes testing and conformance certification faster. Plus, if you encounter a difficult field application (did someone say “finger-pointing contest”?) you have an expert to fall back on. System on a Chip Integrated Chip
Solutions
|
|||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 2005. All Rights Reserved.
Perry S. Marshall & Associates
1131 Lake Street #295
Oak Park, IL 60301 USA
AdWords(TM) is a Trademark of Google Inc., Mountain View, California.
Perry S. Marshall & Associates is an independent consulting & publishing firm, and is not affiliated with Google.




