The text of a manual · part 7 of 19
Classic 1785 PLC-5 Programmable Controllers User Manual (1785-LT, -LT2, -LT3, -LT4), pages 61 to 70
Pages 61 to 70 of 186
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1785-LT2, Allen-Bradley 1785-LT3, Allen-Bradley 1785-LT4 and Allen-Bradley 1785-LT B
Page 61
Chapter 5 Choosing Communication
Configuring Communication for Your Processor
You select scanner or adapter mode for your PLC-5 processor by setting switches.
Configure Processor Communication You configure the processor by setting switch assemblies SW1 and SW2 on the processor. See Appendix A for information on switch settings. Follow these steps to plan configuration for your processor. 1.
Select scanner or adapter mode on switch assembly SW1 (the PLC-5/10 and -5/12 can not be configured as scanners).
2.
If you select adapter mode, assign a rack address (rack number 0-77 octal) on switch assembly SW2. The supervisory processor uses this address to reference the adapter-mode processor.
3.
If you select adapter mode, specify the simulated chassis size, either an 8-slot or 16-slot I/O chassis, and the corresponding first I/O group on switch assembly SW2. The simulated chassis size and first I/O group determine the number of discrete-transfer data words (4 words for an 8-slot chassis, 8 words for a 16-slot chassis) that the processor transfers to and from the supervisory processor during the supervisory processor’s remote I/O scan. Note that the actual size of the chassis has no bearing on the simulated size of the chassis.
Configuring a DH+ Link
You can use a DH+ link for data transfer to higher level computers and as a multiple PLC-5 processor programming link. A PLC-5 processor can communicate over a DH+ link with other processors and with a programming terminal. You can connect a maximum of 64 stations to a DH+ link. The network operates under a token-passing protocol with data transfer at 57.6 kbps. See your programming software documentation set to configure a processor for DH+ communication.
Estimating Data Highway Plus Link Performance Many factors can affect the performance of your DH+ link, including: nodes size and number of messages message destination internal processing time
5-3
Page 62
Chapter 5 Choosing Communication
Nodes Nodes affect transmission time in the following ways: During one complete token rotation, each node on the DH+ link receives the token whether or not it has something to send. Each node spends from 1.5 ms (if it has no messages to send) to 38 ms (maximum time allotted) with the token, assuming there are no retries (Figure 5.2). Figure 5.2 Token Passing
Min. 1.5 ms with the token
Station 1
Station 5
DH+ link
Station 2
Station 4
Station 3
Max. 38 ms with the token
Size and Number of Messages A PLC-5 processor encodes messages into packets for transmission on the DH+ link. The maximum number of data words in a packet depends on the sending station and command type. This limit comes from the network protocol, which limits a station to transmitting a maximum of 271 bytes per token pass. A station can send more than one message in a token pass, provided that the total number of combined command and data bytes does not exceed 271. If a message exceeds the maximum packet size allotted, however, the sending station will require more than one token pass to complete the message. For example, if a PLC-5 processor wants to send a 150-word message, it will have to transmit two messages, possibly requiring many token rotations. The number of messages a station has to send also affects throughput time. For example, if a station has three messages queued and a fourth is enabled, the fourth message may have to wait until the previous three are processed.
5-4
Page 63
Chapter 5 Choosing Communication
Message Destination Throughput times vary depending on whether a receiving station can process the message and generate a reply before that station receives the token. Figure 5.3 assumes that station 1 wants to send a message to station 4. Figure 5.3 Message Destination Example 1 Station 1
Station 5
Station 2
Message
Station 4
Station 1 has the token. Only the station that has the token can send a message. Station 1 sends the message to station 4. Now station 1 must pass the token on to the next highest station number, which is station 2. Station 2 has the token. Assume that station 2 has messages to send and holds the token for 30 ms. During this time, station 4 has processed the message from station 1 and has a reply queued up. When finished, station 2 passes the token on to the next highest station number, which is station 4. Station 4 can now reply to the message from station 1. This completes the message transaction. In Figure 5.3, station 4 has had time to process the message and generate a reply. But, that is not the case with station 2 in Figure 5.4. Figure 5.4 Message Destination Example 2 Station 1 Message Station 2
Station 5
Station 4
5-5
Page 64
Chapter 5 Choosing Communication
In Figure 5.4, we assume that station 1 wants to send the identical message as shown in Figure 5.3 but to station 2. Station 1 has the token. Station 1 sends the message to station 2 and then passes the token on to station 2. Now station 2 has the token but has not had time to generate a reply to station 1. So station 2 sends any other messages it has queued and then passes the token on to station 4. Stations 4, 5, and 1 all receive the token in order and send any messages they have queued. The token then returns to station 2, which then sends its reply to station 1. In this example, it took an extra token pass around the network to complete the message transaction even though the message was identical to the one shown in Figure 5.3. Internal Processing Time Internal processing time depends on how busy a given processor on the network is when sending or receiving a message. For example, processor A has just received a READ request from processor B on the network. If processor A already has three messages of its own to send, the reply to the READ request from processor B will have to wait until the station completes the processing of the messages queued ahead of it.
Average DH+ Link Response Time Test Results This section shows graphically the results of testing performed on a DH+ link where the number of stations and words sent in the message varies. Figure 5.5 shows the average response time of messages of varying sizes on a DH+ link with a varying numbers of stations. It also gives you an idea of the typical response time you can expect on a given DH+ link.
5-6
Page 65
Chapter 5 Choosing Communication
Figure 5.5 Average Response Time for all PLC-5 Processors 5.0 4.5 4.0 3.5 Response Time (Sec)
3.0 50 W
2.5 2.0
•
100 W
1.5
+
250 W
1.0
X
500 W
0.5 0.0
W=Words 1
2
3
4
5
6
7
8 9 10 11 12 13 14 Number of PLC-5 Processors
15
16
17
18
19
20
21
22
Figure 5.6 shows the effect of a programming terminal on message response time under various configurations. Figure 5.6 Response Time Increase (%)
40 % 35 % Effect on Response Time (%)
30 % 25 % 20 % 15 %
X
50 W
•
100 W
+
250 W 500 W
10 %
W=Words
5% 0%
1
2
3
4
5
6
7
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Number of PLC-5 Processors
Test Setup One to 22 PLC-5 processors were used with one programming terminal online. Each PLC-5 processor executes 1K of ladder logic.
5-7
Page 66
Chapter 5 Choosing Communication
Initial testing was done with one PLC-5 processor writing data to another PLC-5 processor. The response time was recorded. Additional PLC-5 processors were added to the network, each writing the same amount of data to a PLC-5 processor at the next highest station address. Four separate tests were run using data transmissions of 50, 100, 250, and 500 words.
Application Guidelines Consider the following application guidelines when configuring a DH+ link for your system. Configure the number of nodes on your network dependent on the size and frequency of messages exchanged between devices. Limit the number of nodes on your network when you are trying to achieve fastest control response time. Do not add or remove nodes from the network during machine or process operation. If the network token resides with a device that is removed, the token may be lost to the rest of the network. The network is automatically re-established, but it could take several seconds. Control would be unreliable or interrupted during this time. Include watchdog timers in logic programs for DH+ transfer of data (to provide an orderly shutdown if failure occurs). Do not program processors online during machine or process operation. This could result in long bursts of DH+ activity that could increase response time. When possible, add a separate DH+ link for programming processors to keep effects of the programming terminal from the process DH+ link.
Connecting Devices to DH+ Link You can connect devices on a DH+ link with: daisy-chain connection trunkline/dropline connection See Figure 5.7. Also, see the Data Highway and Data Highway Plus Cable Guide, publication 1770-6.2.1, for complete network wiring instructions.
5-8
Page 67
Chapter 5 Choosing Communication
Figure 5.7 Examples of DH+ Link Connections (Daisy-Chain and Trunkline/Dropline) PLC-5
PLC-5
PLC-5
PLC-5
1 SH 2
T50
When the processor is an end device, terminate the link.
Daisy-chain configuration Station connector (see notes)
PLC-5
PLC-5
PLC-5
Notes: T50
Trunkline/dropline configuration
Once a programming terminal is connected to one processor, it can communicate with each processor you connect on DH+. Use only Allen-Bradley station connectors. 13 06 1
5-9
Page 68
Chapter 5 Choosing Communication
The PLC-5 processor has two connectors that are electrically identical. Connection to either one provides the same communication link. These connectors are: 9-pin D-shell DH+ COMM INTFC connector 3-pin DH+ COMM INTFC connector
Connecting a DH+ Link to Data Highway
You can connect DH+ links to Data Highway via a communication interface such as the 1785-KA module. The 1785-KA module allows nodes on a DH+ link to communicate with nodes on Data Highway or on another DH+ link. See your local Allen-Bradley sales office or distributor for more information on connecting DH+ to Data Highway. Also, see the Data Highway/Data Highway Plus Protocol and Command Set, publication 1770-6.5.16, for more information.
Choosing Programming Terminal Connection
You can connect your programming terminal to a PLC-5 processor in several ways: direct connect to the DH+ link remote connection (DH+ to Data Highway to DH+) serial connections
Direct Connect to DH+ Link Use a 1784-KT to connect a T53 or IBM-compatible programming terminal directly to a processor or to a DH+ link that connects processors (Figure 5.8).
5-10
Page 69
Chapter 5 Choosing Communication
Figure 5.8 Connection to DH+ Link through 1784-KT Communication Interface Module DH+ link
1784-CP
T53 or IBM compatible with 1784-KT
PLC-5/10, -5/12 -5/15, or -5/25 processor
Use a 1784-KL/B to connect a T47 programming terminal directly to a processor or to a DH+ link that connects processors (Figure 5.9). Figure 5.9 Connection to DH+ Link through 1784-KL Communication Interface Module DH+ link
1784-CP
T47 with 1784-KL
PLC-5/10, -5/12, -5/15, or -5/25 processor
Remote Connection The remote programming configurations available with the 1784-KT, 1784-KT2, and 1784-KL boards provide you communication with processors on other DH+ links in the network to expand the range of processors that you can use for program development (Figure 5.10).
5-11
Page 70
Chapter 5 Choosing Communication
Figure 5.10 Example DH+ to Data Highway to DH+ Link Configuration Data Highway
Remote DH+ link
1785-KA
PLC-5/10, -5/12, -5/15, -5/25 processor
1 71 95
Serial Connections You can connect a programming terminal to a PLC-5/10, -5/12, -5/15, or -5/25 processor through a serial port (COM1 or COM2) on the terminal with one of the following communication modules: 1785-KE Series A or B Communication Interface Module (resides in a 1771 I/O rack) 1770-KF2, Series B Communication Interface Module (desktop unit as shown in Figure 5.12) Important: The communication driver is interrupt-driven; the serial port must support hardware interrupts. On most machines, COM1 and COM2 support these interrupts.
5-12