Docsity

Local Area Networks in Industrial Automation: Role, Topologies, and Communication Media, Lecture notes of Topology

Partial preview of the text

Download Local Area Networks in Industrial Automation: Role, Topologies, and Communication Media and more Lecture notes Topology in PDF only on Docsity!

L OCAL A REA

N ETWORKS

C HAPTER

E IGHTEEN

Synergy means behavior of whole systems unpredicted by the behavior of their parts. —Richard Buckminster Fuller

Industrial Text & Video Company 1-800-752-

848

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

CHAPTER 18

Local Area Networks

C HAPTER H IGHLIGHTS

As control systems become more complex, they require more effective communication schemes between the system components. Some machine and process control systems require that programmable controllers be inter- connected, so that data can be passed among them easily to accomplish the control task. Other systems require a plantwide communication system that centralizes functions, such as data acquisition, system monitoring, mainte- nance diagnostics, and management production reporting, thus providing maximum efficiency and productivity. This chapter presents one type of PLC communication scheme—the local area network—and the role it plays in achieving factory integration. The next chapter will discuss I/O bus networks, a type of communication scheme in which I/O field devices are connected directly to a network.

18-1 H ISTORY OF L OCAL A REA N ETWORKS

D EFINITION

A local area network is a high-speed, medium-distance communication system. For most LANs, the maximum distance between two nodes in the network is at least one mile, and the transmission speed ranges from 1 to 20 megabaud. Also, most local networks support at least 100 stations, or nodes. A special type of local area network, the industrial network, is one which meets the following criteria:

The proliferation of electronic and computer technologies in the 1970s made it feasible to place small personal computers at locations where users needed them. Before this, computational tasks had been performed by large computers in centralized locations. The widespread use of personal comput- ers prompted the need for a communication method that could link this equipment. This led to the creation of local area networks (LANs). These networks facilitated the decentralization of computing tasks by allowing network-connected computers to exchange information among themselves, without having to go through a central location.

Local area networks soon made their way to the industrial arena, where control had previously been exercised through a central PLC or main control system. LANs allowed many PLCs to be placed at different locations, each having its own intelligence to implement control. They also allowed PLCs to communicate system information with other PLCs performing other control tasks throughout the plant. This wave of industrial technology created further networking developments, including a special type of network—the I/O bus network—which allows intelligent field devices to communicate information to PLCs without standard PLC input/output interfaces. The next chapter explains I/O bus networks in detail.

18-2 P RINCIPLES OF L OCAL A REA N ETWORKS

850

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

CHAPTER 18

Local Area Networks

Figure 18-2. LANcity cable TV network.

A DVANTAGES OF LAN S

Before local area networks came into use, two other methods were employed to implement communication between PLCs. The first method used a pair of wires to connect the output card of one PLC to the input card of a second PLC. This method, which transmitted only one bit of information per pair of wires, was expensive to install and very cumbersome to use. In the second method, PLCs communicated through their programming ports via a central com- puter, which was customer-supplied and programmed. The disadvantages of this method were that it limited the data throughput rate to the baud rate of the PLC’s programming port and that the network became unusable if the central computer failed due to the system’s star topology.

The local area network offers distinct advantages over its predecessors because it greatly reduces the cost of wiring for large installations. It also uses a dedicated communication link to efficiently exchange large amounts

Plant #

Plant #2 Plant #

LCB LCT LCR

LCB LCR LCB

Headquarters

Internet

Cable TV Headend

Cable TV

LCT–Transmaster: single-channel translator LCB–Bridge: Ethernet bridge to cable TV LCR–Router: Internet via cable TV

Router

Courtesy of LANcity—Cable Modem Division of Bay Networks, Andover, MA

851

CHAPTER 18

Local Area Networks

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

of usable data among PLCs and other hosts. Moreover, because each PLC in the network can communicate independently with the others (without the use of a central computer), a LAN does not have the disadvantage of depending solely on one computer.

Bus Star Ring

LAN A PPLICATIONS OF THE PLC

Centralized data acquisition and distributed control are the most common applications of local area networks. Data collection and processing, when performed by an individual controller, can burden the processor’s scan time, consume large amounts of memory, and complicate the control logic pro- gram. A data highway configuration, in which all data is passed to a host computer that performs all data processing, eliminates these problems. Also, distributed control applications allocate control functions, once performed by a single controller, among several controllers. This eliminates dependence on a single controller and improves performance and reliability. To use the distributed processing approach, a local area network and the PLCs attached to it must provide the following functions:

  • communication between programmable controllers
  • upload capability to a host computer from any PLC
  • download capability from a host computer to any PLC
  • reading/writing of I/O values and registers to any PLC
  • monitoring of PLC status and control of PLC operation

18-3 N ETWORK T OPOLOGIES

Figure 18-3. Bus, star, and ring topologies.

The topology of a local area network is the geometry of the network, or how individual nodes are connected to it. A network’s topology greatly affects its throughput rate, implementation cost, and reliability. The basic network topologies used today are star , common bus , and ring (see Figure 18-3). We should note, however, that a large network, such as the one shown in Figure 18-4, may consist of a number of interconnected topologies.

853

CHAPTER 18

Local Area Networks

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

S TAR

As mentioned previously, the first PLC networks consisted of a multiport host computer with each port connected to the programming port of a PLC. Figure 18-5 shows this arrangement, known as star topology. The network controller can be either a computer, a PLC, or another intelligent host.

Network Controller

PLC PLC PLC

PLC PLC PLC

Figure 18-5. Star topology. Most commercial computer installations are star networks, in which many terminals are tied to a central computer. This star topology is the same as the one used in telephone networks, where the central node has the task of establishing connections between the various network stations. The main advantage of this topology is that it can be implemented with a simple point- to-point protocol—that is, each node can transmit whenever necessary. If error checking is not required or if a simple parity bit per character check will suffice, then a dumb terminal , a terminal without network intelligence (e.g., a display monitor), can be a node. Star topology, however, has the following disadvantages:

  • It does not lend itself to distributed processing due to its dependence on a central node.
  • The wiring costs are high for large installations.
  • Messages between two nodes must pass through the central node, resulting in low throughput.
  • There is no broadcast mode, which lowers throughput even more.
  • Failure of the central node will crash the network.

854

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

CHAPTER 18

Local Area Networks

C OMMON B US

The common bus topology has a main trunkline to which individual PLC nodes are connected in a multidrop fashion (see Figure 18-6). A coaxial cable with proper terminators is typically the communication medium for the trunkline. In contrast to the star topology, communication in a common bus network can occur between any two nodes without passing information through a network controller. An inherent problem of this scheme, however, is determining which node may transmit at which time, to avoid data collision. Several communication access methods have been developed to solve this problem. We will discuss these later.

Figure 18-6. Common bus topology.

Common bus topologies are very useful in distributed control applications, since each station has equal independent control capability and can ex- change information at any given time. Also, this topology requires little reconfiguration to add or remove stations from the network. The main disadvantage of this topology is that all of the nodes depend on a common bus trunkline. A break in this trunkline can affect many nodes.

Another configuration of the bus topology is the master/slave bus topology , consisting of several slave controllers and one master network controller (see Figure 18-7). In this configuration, the master sends data to the slaves; if the master needs data from a slave, it will poll (address) the slave and wait for a response. No communication takes place without the master initiating it. The implementation of a master/slave bus topology uses two pairs of wires. Through one pair of wires, the master transmits data and the slaves receive it. Through the other pair of wires, the slaves transmit data and the master receives it.

R ING

Ring topology , shown in Figure 18-8, is not used in industrial environments because failure of any node (not just the master) will crash the network, unless the failed node is bypassed. We mention it here because it does not require multidropping due to its point-to-point connection restriction (see

PLC PLC PLC PLC

856

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

CHAPTER 18

Local Area Networks

PLC

PLC

PLC

PLC (^) CenterWire

D ATA T RANSMISSION T ECHNIQUES

Figure 18-9. Star-shaped ring topology with a wire center.

Several transmission techniques are used to send data through a network (see Figure 18-10). Among the most common are:

  • Manchester encoding
  • frequency shift keying (FSK)
  • nonreturn to zero invert on ones (NRZI)

Manchester encoding , also referred to as baseband transmission encoding , changes the signal polarity to positive for every logic 1 and to negative for every logic 0. During normal operation, the DC voltage on the cable is zero. Frequency shift keying (FSK) utilizes two frequencies to transmit logical values of 1 and 0. The nonreturn to zero invert on ones (NRZI) transmission technique involves a signal change whenever the next transmit- ted value is a 1. Ethernet networks use Manchester coding as their data transmission method.

857

CHAPTER 18

Local Area Networks

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

18-4 N ETWORK A CCESS M ETHODS

An access method is the manner in which a PLC accesses the network to transmit information. In other words, it defines the method used by the node to talk through the network. As mentioned in the previous section, a bus topology requires that the nodes take turns transmitting on the medium. This process requires that each node be able to shut down its transmitter without interfering with the network’s operation. This can be done in one of the following ways:

  • with a modem that can turn off its carrier

Figure 18-10. Data transmission techniques: (a) Manchester encoding, (b) frequency shift keying, and (c) nonreturn to zero invert on ones.

0 1 1 0 1 0 0

(a) Manchester encoding (baseband)

0 1 0 1 0 1

(b) Frequency shift keying (FSK)–(carrier band)

0 1 1 0 1 0 0

(c) Nonreturn to zero invert on ones (NRZI)

Data Signal

Transmitted Signal

859

CHAPTER 18

Local Area Networks

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

temporary, right to control the network (i.e., transmit information). The station with the token has the exclusive right to transmit on the network; however, it must relinquish this right to the next designated node upon termination of transmission. Thus, token passing is actually a distributed form of polling. The token-passing access method is preferred in distributed control applications that have many nodes or stringent response time requirements.

In a common bus network configuration using the token-passing technique, each station is identified by an address. During operation, the token passes from one station to the next sequentially. The node that is transmitting the token also knows the address of the next station that will receive the token. The network circulates transmitted data in one or more information packets containing source, destination, and control data. Each node receives this information and uses it, if needed. If the node has information to send, it sends it in a new packet.

In the token-passing scenario shown in Figure 18-11, station 10 passes the token to station 15 (the next address), which in turn passes the token to station 18 (the next address after 15). If the next station does not transmit the token to its successor within a fixed amount of time (token pass timeout), then the token-passing station assumes that the receiving station has failed. In this case, the originating station starts polling addresses until it finds a station that will accept the token. For instance, if station 15 fails, station 10 will poll stations 16 and 17 without response, since they are not present in the network, and then poll station 18, which will respond to the token. This receiving station will become the new successor and the failed station will be removed from, or patched out of, the network (i.e., station 18 will become station 10’s next address). The time required to pass the token around the entire network depends on the number of nodes in the network. This time can be approximated by multiplying the token holding time by the number of nodes in the network.

PLC PLC PLC

Node Terminator

Node Address 10

Node Address 15

Node Address 16

Node Address 17

Node Address 18

1 Token passed 2 Token passed

3 Token passed

Figure 18-11. Example of token passing.

860

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

CHAPTER 18

Local Area Networks

18-5 C OMMUNICATION M EDIA

This section discusses the communication media (i.e., cables) used to imple- ment local area networks. If installed properly, most local area networks can interface using any of these media. Proper installation includes the appropri- ate physical connectors and the correct electrical terminations. Media types commonly used for PLC networks include twisted-pair conductors, coaxial cables, and fiber optics. The type of media used and the number of nodes installed will affect the performance of the network (i.e., speed and distance). Figure 18-12 shows a comparison of different communication methods used with these media.

Figure 18-12. Comparison of the data transmission speeds and distances of various communication methods.

T WISTED -P AIR C ONDUCTORS

Twisted-pair conductors are used extensively in industry for point-to-point applications at distances of up to 4000 feet and at transmission rates as high as 250 kilobaud. Twisted-pair conductors are relatively inexpensive and have fair noise immunity, which is improved when shielded. Performance, how- ever, drops off rapidly as nodes are added to a twisted-pair bus. Moreover, nonuniformity also compromises the performance of these conductors. Characteristic impedance varies throughout the cable, making reflections difficult to reduce because there is no “right” value for termination resistance.

100M

10M

1M

100K

10K

1K

100

0.1 1 10 100 1K 10K 100K

RS-232C

RS-422/RS-

Baseband Local Networks

Baseband Local Networks Computer Buses

Phone Lines Via Modems

Distance (meters)

Max. Data Rate (bits/sec)

862

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

CHAPTER 18

Local Area Networks

but not from use in star or ring topologies. In addition, fiber-optic cable is three to four times more expensive than baseband coaxial cable, and optical couplers are several times more expensive than strictly electrical interfaces.

Fiber optics does, however, have some impressive advantages. First, it is totally immune to all kinds of electrical interference. Second, it is small and lightweight. Finally, it can sustain transmission rates of up to 800 megabaud at distances of up to 30,000 feet. In light of these qualities, the use of fiber optics should increase in industrial applications as the technology develops.

18-6 U NDERSTANDING N ETWORK S PECIFICATIONS

This section explains how to determine if a particular network can support a given application. The designer should examine all aspects of the network, including device specifications, response time, maximum length, throughput, and interface, when choosing a network for an application.

D EVICE S PECIFICATIONS

When selecting a network, the system designer must analyze the application to determine how many nodes are required and what type of device—PLC, vendor-supplied network programmer, host computer, or intelligent termi- nal—will be used at each node. The designer must determine if the network will support each type of device used and examine how that device will interface with the network (hardware and software). For network PLCs, the designer must also choose the model, because some PLC models are not capable of interfacing with a network. The network must be capable of supporting the number of nodes required for the current application, plus a reasonable number of nodes for future expansion.

M AXIMUM L ENGTH

The maximum length of a network consists of two parts: the maximum length of the main cable and the maximum length of each drop cable used between a node and the main cable. Maximum drop lengths usually range between 30 and 100 feet; however, drop lengths should be kept as short as possible, since drops introduce reflection into the network. The ideal case is to run the main cable straight to the device and back again, even though this procedure increases wiring costs.

Another important piece of information that the designer should obtain from the vendor is the type of cable that must be used to achieve the specified transmission distance. If the system requires the maximum network transmis- sion distance, the designer must use the proper type of cable. If the system requires a much shorter transmission distance, the designer can save money by using a less expensive cable.

863

CHAPTER 18

Local Area Networks

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

R ESPONSE T IME

Response time (RT) , as used in this book, is the time between an input transition at one node and the corresponding output transition at another node. Response time, then, is the sum of the time required to detect the input transition, transmit the information to the output node, and operate the output. It is expressed as:

RT = IT + 2 ST 1 (^) + PT 1 (^) + AT + TT + PT 2 (^) + 2 ST 2 + OT

where:

IT = the input delay time (the electrical delay involved in detect- ing the input transmission) ST 1 = the scan time for the sending node ST 2 = the scan time for the receiving node PT 1 = the processing time for the sending node (the time between solving the program logic and becoming ready to transmit the data) PT 2 = the processing time for the receiving node (the time between receiving the data and having data ready to be operated on by the program logic) AT = the access time (the time involved in both becoming ready to transmit and in transmission) TT = the transmission time (the time required to transmit data— this is the only time that is directly proportional to baud rate) OT = the output delay time (the electrical delay involved in creating the output transition)

The scan time includes the I/O update time and any other overhead time, as well as the program logic execution time. It can be defined as the time between I/O updates. In the previous equation, the scan time is doubled to include the case where the input signal changes just after the I/O update. In this case, the network first executes the logic with the old information, then performs an I/O update, and finally executes the logic with the new information. This causes a two-scan delay.

I/O delay times and scan times are readily available values. Transmission time can be determined once the data rate and frame length are known. The data rate is sometimes equal to the baud rate, but it is usually less. Synchronous systems, which use Manchester encoding, have a data rate that is half of the baud rate. These systems utilize a transmission method in which the data characters and bits are transmitted at a fixed rate with the transmitter and receiver in synchronization. The data rate of asynchronous systems is

865

CHAPTER 18

Local Area Networks

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

PLC on the network, along with various monitoring and control functions, if available. If a network-compatible programming device is not available, all programming must be done through the programming port of the indi- vidual PLCs.

Hosts. Host support means that a user-supplied host computer can perform programming functions, provided that its programming conforms to the network manufacturer’s protocol. The host computer is usually connected to the network through a device called a gateway. The gateway contains a network port and another port (usually RS-232), which is connected to the host. A gateway greatly simplifies the software that the user must write for the host, because a host-to-gateway link requires only a simple point-to-point protocol rather than a masterless multidrop protocol, as is required by a network. A gateway also provides the appropriate electrical interfaces for the network. Since most computers have an RS-232 port, additional hardware is seldom required.

Intelligent Terminals. The type of intelligent terminal referred to here is actually a small host computer complete with an operating system and mass storage. It can interface with the network in exactly the same way as a large host computer. Anyone considering using one of these terminals on a network should investigate the software requirements closely to determine if the terminal’s operating system will support the network’s requirements. Some operating systems, for instance, provide for the transmission of only ASCII data, not binary data.

Gateways. In addition to the host gateway mentioned previously, some manufacturers provide gateways to other multidrop networks. They also provide other types of host gateways, for example, a high-speed, RS-422, synchronous host interface. In this case, the gateway would use a protocol designed for synchronous use, such as HDLC.

A PPLICATION I NTERFACE

When developing an application interface, the designer must determine how each PLC’s application program allows it to share information with other PLCs. Most manufacturers provide at least one of the following methods:

  • reading of registers in other PLCs
  • writing to registers in other PLCs
  • reading and writing of network points or registers

For example, a PLC can detect the input status of another PLC on the network through the use of a network coil and a network contact. Figure 18- illustrates this configuration. When the network coil (Net 200) in PLC #

866

S ECTION 5

Advanced PLC Topics and Networks

Industrial Text & Video Company 1-800-752-

CHAPTER 18

Local Area Networks

is energized, the network contact, Net 200 (–| |–), in PLC #2 will close. PLC #2 can use this contact like any other contact in its ladder program. The user, however, must ensure that only one PLC on its network uses each network coil.

Network PLCs read to and write from registers through functional blocks. The designer must ensure that the capabilities of the network and PLCs are sufficient to support the communication needs of the application. Chapter 9 shows some of the typical network instructions found in PLCs.

18-7 N ETWORK P ROTOCOLS

A protocol is a set of rules that two or more devices must follow if they are to communicate with each other. Protocol includes everything from the meaning of data to the voltage levels on connection wires. A network protocol defines how a network will handle the following problems and tasks:

  • communication line errors
  • flow control (to keep buffers from overflowing)
  • access by multiple devices
  • failure detection
  • data translation
  • interpretation of messages

Figure 18-13. Network coils and contacts.

100

Net 200

Net 227

Net 200

PLC #1 PLC #