Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 18 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 9 - Communicating with Devices on a DH+ Link, pages 142 to 150

Pages 142 to 150 of 388, from Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

The original document is the PDF (5.1 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-L20B and Allen-Bradley 1785-L40B

Page 142

9-10

Communicating with Devices on a DH+ Link

Monitoring Data Sent without Acknowledgment

Status Field

Word(s)

Description

Received

35

Number of valid SDN messages received

Transmit failed

33

Number of SDN messages sent by the station that were in error This error should never be seen.

Transmit confirm

32

Publication 1785-UM012D-EN-P - July 2005

Number of valid SDN messages sent by the station

Page 143

Communicating with Devices on a DH+ Link

9-11

Monitoring General Status

Status Field

Word(s)

SDA or SDN transmit retry 28

Description Total number of SDA or SDN messages that were re-transmitted. Some reasons why the station would retry a message are: the ACK was lost or corrupted on an SDA message, indicating a possible noise problem the original message was NACKed

Duplicate node

17

Number of times the station has detected the same station address as itself on the network. As a result, the station goes offline.

Claims lost

11

Number of times the station did not win the claim token sequence. See claims won below for more information.

Network dead

9

Number of times the station detects no traffic on the network. This usually occurs when the station with the token is powered down or is removed from the network. The other stations are waiting for the token to be passed to them. Eventually a network dead situation is declared and a claim token sequence initiated. (See claims won for more information.)

Claims won

10

Number of times the station has won the claim token sequence. All the stations initiated a claim token sequence when a network goes down, is just powered up and the stations on the network detect that no one has the token, or when a station with the token is powered down or removed from the network. A claim token sequence is when all the stations on a network attempt to claim the token. When multiple stations attempt to claim the token, the lowest numbered station wins.

Dropped token

18

Number of times that the station detected that a duplicate node existed on the link and consequently dropped itself off the link A station determines that there is a duplicate node when it detects that the response to a message or solicit successor is incorrect. For example, if a response is received from a station which was not communicated with, then the sending station assumes that the response is for a packet sent by another station with the same node number. Once the station drops itself off the link, it waits indefinitely to be solicited back into the network. It will only be solicited back into the network if the duplicate node is removed from the link, because station numbers that already exist on the link are not solicited into the network.

Publication 1785-UM012D-EN-P - July 2005

Page 144

9-12

Communicating with Devices on a DH+ Link

Status Field

Word(s)

Description

Linear scan failed

16

Number of times the station solicited every station number without getting a response. See started linear scan below for more information.

Token retry

13

Number of times the station had to re-transmit a token pass. The station re-transmits a token pass if it detects that the station it passed the token to did not receive the token. Noise can cause this to occur.

Solicit rotations

34

Number of times a complete solicit successor of all stations not on the link is completed. A solicit successor occurs during a token pass around the link. Here a station that is currently not on the link is solicited to see if it has been added to the link. During each token pass, a different station number is solicited; solicitation occurs sequentially. A station can only join the link when it is solicited into it.

Started linear scan

15

Number of times the station has attempted to pass the token to everyone in its active node table and no one has responded. The station will then start a linear scan where it solicits every station number until a station responds.

New successor

12

Number of times the station found a new successor for the token. A new successor occurs when the station detects that a new station with a station number between its and a the station it was passing the token to was added to the link. The station now must past the token to the newly added station.

Token failed

14

Number of times station could not pass token to its listed successor. This usually occurs due to: the station being removed from the network noise or cabling problems

Estimating DH+ Link Performance

Publication 1785-UM012D-EN-P - July 2005

Many factors affect the performance of your DH+ link, including: • nodes • size and number of messages • message destination • internal processing time

Page 145

Communicating with Devices on a DH+ Link

9-13

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, as shown below.

Min. 1.5 ms with the token

Station 1

DH+ link

Station 2

Station 5

Max. 38 ms with the token Station

Station 4

3

Size and Number of Messages A PLC-5 controller 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 as shown in the table below. Sending Command Type Station

Maximum Packet Size (Data Words)

PLC-5

Typed READ/WRITE

114

PLC-5

Word range READ/WRITE

117

PLC-2

Unprotected READ/WRITE

121

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 controller wants to send a 150-word message, it will have to transmit two messages, possibly requiring multiple token rotations.

Publication 1785-UM012D-EN-P - July 2005

Page 146

9-14

Communicating with Devices on a DH+ Link

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.

Message Destination Throughput times vary depending on whether a receiving station can process the message and generate a reply before it receives the token. The figure below assumes that station 1 wants to send a message to station 4. 1. Station 1 has the token. Only the station that has the token can send a message. Station 1 sends the message to station 4.

Station 5

Station 1

2. Now station 1 must pass the token on to the next next highest station number, which is station 2.

Station 2

Message

Station 4

Station 1

Station 5 4. Station 4 can now reply to the message from station 1. This completes the message transaction.

Publication 1785-UM012D-EN-P - July 2005

Message

Station 4

3. 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 2

Page 147

Communicating with Devices on a DH+ Link

9-15

In the following figure, station 4 has had time to process the message and generate a reply. However, in , station 2 does not have sufficient time to process a MSG reply. 1. In this figure, we assume that station 1 wants to send the identical message as shown in Figure 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.

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.

Station 1 Message

Station 2

Station 5

Station 4

4. The token then returns to station 2, which then sends its reply to station 1. Station 1 Message 3. Stations 4, 5, and 1 all receive the token in order and send any messages they have queued.

Station 2

Station 5

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 10.2.

Station 4

.

Internal Processing Time Internal processing time depends on how busy a given controller on the network is when sending or receiving a message. For example, controller A has just received a READ request from controller B on the network. If controller A already has three messages of its own to send, the reply to the READ request from controller B will have to wait until the station completes the processing of the messages queued ahead of it.

Publication 1785-UM012D-EN-P - July 2005

Page 148

9-16

Communicating with Devices on a DH+ Link

Test Setup One to 22 PLC-5 controllers were used with one personal computer online. Each PLC-5 controller executes 1K of ladder logic. Initial testing was done with one PLC-5 controller writing data to another PLC-5 controller. The response time was recorded. Additional PLC-5 controllers were added to the network, each writing the same amount of data to a PLC-5 controller at the next highest station address. Four separate tests were run using data transmissions of 50, 100, 250, and 500 words.

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. The figure below 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.0

X

4.5 4.0 X

3.5 Response

3.0

Time

2.5 X

2.0 (Sec)

1.5 1.0 X

X

X

2

3

X

+ + + +

0.5

+

X

X

+

+

+ +

100 W

+

X

+ 250 W X 500 W

0.0

1

4

5

6

7

8

9

10

11

12

13 14 15

Number of Controllers Number of PLC-5 Processors

Publication 1785-UM012D-EN-P - July 2005

50 W

16

17

18 19

20 21

22

W=Words

Page 149

Communicating with Devices on a DH+ Link

9-17

The following figure shows the effect of a personal computer on message response time under various configurations. 40% 35% X 30% Effect 25% on Response 20% Time 15% (%)

+

X X

+

X

+ +

X

X

X

X

+ +

50 W 100 W

+

X

+

10%

X

+

5%

+ X

+

0%

250 W 500 W

W=Words 1

2

3

4

5

6

7

8

9

10 11 12 13 14 15 16 17 18 19 20 21 22

Number of Controllers Number of PLC-5 Processors

Application Guidelines

Consider the following application guidelines when configuring a DH+ link for your system. • Minimize the number of DH+ nodes to achieve acceptable response times. Keep in mind 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. You can establish separate DH+ networks to bring-on additional stations. Use a bridge to connect the DH+ links. • When you connect a computer to the link for operator interface or a third-party serial device to the DH+ link, select the fastest possible serial interface communication rate. • 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. • A DH+ link has a 90 s timeout period; however, you can include watchdog timers in logic programs for DH+ transfer of data (to provide an orderly shutdown if failure occurs). • When possible, do not program controllers online during machine or process operation. This could result in long bursts of DH+ activity that could increase response time. See chapter 9 for more information. • When possible, add a separate DH+ link for programming controllers to keep effects of the personal computer from the process DH+ link.

Publication 1785-UM012D-EN-P - July 2005

Page 150

9-18

Communicating with Devices on a DH+ Link

Notes

Publication 1785-UM012D-EN-P - July 2005