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

The text of a manual · part 17 of 45

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

Pages 133 to 141 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 133

Chapter

9

Communicating with Devices on a DH+ Link

Using This Chapter For Information About

Go to Page

Selecting devices that you can connect

9-1

Link design

9-2

Configuring the channel for DH+ communication 9-3

Selecting Devices That You Can Connect

1

Using the global status flag file

9-5

Monitoring DH+ communication channels

9-7

Estimating DH+ link performance

9-12

Application guidelines

9-17

You can use a DH+ link for data transfer to other PLC-5 controllers or higher level computers and as a link for programming multiple PLC-5 controllers. A PLC-5 controller can communicate over a DH+ link with other controllers and with a personal computer. You can connect a maximum of 64 stations to a single DH+ link.

Publication 1785-UM012D-EN-P - July 2005

Page 134

9-2

Communicating with Devices on a DH+ Link

Devices that You Can Connect

Product

Catalog Number

Required Cables

Application

ControlLogix Data Highway Plus Remote I/O 1756-DHRIO Interface Module

Allows communication between PLC-5 controllers over different networks, such as Data Highway Plus, ControlNet and Ethernet

1770-CD

Data Highway or Data Highway Plus (RS-232C or RS-422-A) Interface Module

1770-KF2

Connects an asynchronous (RS-232C) device to a Data Highway or DH+ network

1770-CD

Data Highway / Data Highway Plus on Broadband

1771-KRF

Media bridge connecting as many as 18 Data Highway networks to communicate over a facility-wide broadband cable system

Communication Interface Card

1784-KL

Connects the T47 Portable Programming Terminal to DH+ 1784-CP 1784-CP2 Connects IBM XT or AT compatible computers to DH+ 1784-CP3 1784-CP5 Connects IBM PS/2 compatible computers to DH+ 1784-CP6

Data Highway Plus XT/AT Interface Module 1784-KT Data Highway Plus PS/2 Interface Module

1784-KT2

Data Highway Plus to Data Highway Interface Module

1785-KA

Connects a Data Highway network to a DH+ network

DH+ to DH-485 Interface Module

1785-KA5

Connects a DH-485 link to a DH+ link.

Data Highway Plus RS-232C Interface Module

1785-KE

Connects an asynchronous (RS-232C) device and DH+

PCMCIA Card

1785-PCMK

Connects PCMCIA Bus notebook computers to DH+

Link Design

Specify 1770-CD (Belden 9463) cable. Connect a DH+ network using a daisy chain or trunk line/drop line configuration.

Trunk line/drop line considerations: When using a trunk line/drop line configuration, use 1770-SC station connectors and follow these cable-length guidelines: • trunk line-cable length – depends on the communication rate of the link • drop-cable length – 30.4 m (100 cable-ft) For more information about designing trunk line/drop line configurations, see the Data Highway Plus/Data Highway II/Data Highway-485 Cable Installation Manual, publication 1770-6.2.2.

Publication 1785-UM012D-EN-P - July 2005

1770-CD

1784-PCM5

Verify that your system’s design plans specify cable lengths within allowable measurements. IMPORTANT

The maximum cable length for DH+ depends on the transmission rate. Configure all devices on a DH+ link to communicate at the same transmission rate.

For daisy chain configurations, use this table to determine the total cable length you can use. A DH+ link using this communication rate

Cannot exceed this cable length

57.6 kbps

3,048 m (10,000 ft)

115.2 kbps

1,524 m (5,000 ft)

230.4 kbps

762 m (2,500 ft)

Page 135

Communicating with Devices on a DH+ Link

IMPORTANT

9-3

If you select the baud rate as 230.4 kbps, and you are using the serial port or a PLC-5 coprocessor, use channel 2 for better overall system performance.

For proper operation, terminate both ends of a DH+ link by using the external resistors shipped with the programmable controller. Selecting either a 150Ω or 82Ω terminator determines how many devices you can connect on a single DH+ link.

Configuring the Channel for DH+ Communication

If Your DH+ I/O Link Operates at

Use this Resistor Rating

230.4 kbps

82Ω

57.6 kbps or 115.2 kbps

150Ω

Depending on the controller you are using, you can configure these channels:

Controller

Channels that Support DH+

PLC-5/11

1A

PLC-5/20

1A (fixed DH+), 1B

PLC-5/30

PLC-5/20E

PLC-5/40L

PLC-5/40E

PLC-5/60L

PLC-5/80E

PLC-5/40

1A, 1B

1A, 2A, 1B, 2B

PLC-5/60 PLC-5/80

IMPORTANT

To define the DH+ address and baud rate for channel 1A, you must set switch assembly SW1 on the controller; you cannot set this node address through the programming software.

Publication 1785-UM012D-EN-P - July 2005

Page 136

9-4

Communicating with Devices on a DH+ Link

To configure a channel to support a DH+ link, use the DH+ configuration screen in your programming software.

configure the channel for DH+

This Field

Specifies

Configure by Doing the Following

Diagnostic file

The file containing the channel’s status information

Enter an integer file number (10-999). The system creates an integer file 40 words long. ATTENTION: Assign a unique diagnostic file to each channel. Do not assign a diagnostic file that is the I/O status file you assigned or any other used file. Unpredictable machine damage can result. Important: You must define a diagnostics file for a channel configured for anything but unused (even if you are not using the channel) if you want to get status information for that channel.

Baud rate

Communication rate for the current channel

If the DH+ channel is channel 1A, specify the baud rate by setting SW1 (see chapter 23) any other channel, select 57.6 kbps, 115.2 kbps, or 230.4 kbps through the programming software

Node address

The station address of your controller If your DH+ channel is: 1A - specify the DH+ station number by setting SW1 on your controller (see chapter 23). anything other than 1A - cursor to Node Address field, enter a value of 0-77 octal, and press [Enter]. Each station on a DH+ link must have a unique address.

Link ID

The local link where the channel resides

Publication 1785-UM012D-EN-P - July 2005

If your DH+ link is bridged to another Data Highway network, cursor to the field, type a decimal number to identify the protocol link to which the channel is connected, and press [Enter].

Page 137

Communicating with Devices on a DH+ Link

This Field

Specifies

Global status flag file

The file where you want to store token Cursor to the field, type an integer file number (10-999), and press pass data [Enter]. The system creates an integer file 64 words long.

9-5

Configure by Doing the Following

ATTENTION: When you change the controller from run or test to program mode, the controller writes zeroes in the global status flags file. Any information previously in this file is lost. For more information on the global status flags file, see below.

Using the Global Status Flag File

Use the global status flag file to store token pass data. This file stores a 16-bit word of data for each station on the DH+ network. The stations use this file to automatically share data with other stations without requiring user programming. When a station sends the token to the next station, it, in effect, sends a broadcast message that contains 1 word of information from its own address area in its global status flag file. The data sent out is taken from the word in the global status file that is equal to its own station address. The token is seen by all stations. Each station on the network examines the token and places the word of global status data from the sending station into the word that corresponds to the sending station’s address

Publication 1785-UM012D-EN-P - July 2005

Page 138

9-6

Communicating with Devices on a DH+ Link

This process lets each station automatically see the newly updated data. You can create ladder logic to monitor and interpret this data according to your application.

The Global Status Flag data for each node address on your DH+ link is stored in the word address corresponding to the octal node address. For example, if your DH+ link has processors at node addresses 7, 10, 15, and 30 and your global status flag file is N10 for each processor, the global status flag data is stored as follows:

DH+ link

Station 7

Station 10

Station 15

Station 30

Global Status Flag File defined in each processor: N10 Decimal: N10:7 Octal: N10:7

Decimal: N10:8 Octal: N10:10

Decimal: N10:13 Octal: N10:15

Decimal: N10:24 Octal: N10:30

You can specify any integer file in the processor to be the global status flag file; however, for simplicity, specify the same file for all your PLC-5 processors on the DH+ link. The files are updated during housekeeping.

Make sure that the global status flag file in all of the controllers on your DH+ link is as large as the highest node address, so that all of the nodes can communicate with each other. If station 30 is the highest node number, for example, the global status flag file (N10) in each controller must be 24 words long (octal 30 = decimal 24). When you first configure the global status file, it automatically gets 64 words. IMPORTANT

Do not allow either external or internal messages to write into the global status flag file. Writing into the global status file faults the controller.

You can change the radix in the data monitor to display the file address in octal so that you can see the element number of the octal address matching the node address.

Publication 1785-UM012D-EN-P - July 2005

Page 139

Communicating with Devices on a DH+ Link

Monitoring DH+ Communication Channels

9-7

Use the DH+ status screen in your programming software to monitor channels that are configured to support a DH+ link. The data displayed is stored in the diagnostic file defined on the DH+ configuration screen in your programming software. Note that this screen does not display the active node table, which is also stored in the diagnostic file.

Monitoring messages

Status Field

Word(s)

Description

Sent

5

Total number of messages sent by the station This number is the sum of the send data acknowledge counters (SDA) and send data no acknowledge (SDN) transmit confirm counters.

Sent with error

7

Number of messages sent that were not acknowledged. This number is the sum of the following: SDA transmit NAK misc•SDA/SDN retrans transmit NAK full•dropped token SDA transmit NAKed SAP

Received

4

Number of error-free messages the station has received. This number is the sum of the SDA and SDN received counters.

Received with error

6

Number of invalid messages that the station has received. This number is the sum of the SDA received with error and the SDA received SAP off counters.

Unable to receive

8

Total number of times the station NAKed an incoming message due to the lack of an available buffer. This number should be the same as the SDA received but full counter.

Publication 1785-UM012D-EN-P - July 2005

Page 140

9-8

Communicating with Devices on a DH+ Link

Monitoring Data Sent with Acknowledgment

Status Field

Word(s)

Description

Received

19

Number of error-free SDA messages that the station received.

Received SAP off

23

Number of SDA messages that the station received but could not process because its service access point (SAP) was off. This counter should always be 0.

Received but full

22

Number of SDA messages that the station could not receive because of lack of memory.

Received with error

20

Number of invalid SDA messages that the station received. Some causes are: bad CRC the message has an invalid source address the message has an unrecognizable control byte the transmission was aborted This counter indicates noise; increase the cable’s shielding from noise.

Received retransmissions

21

Number of times the sending station re-transmitted an SDA message, which was ACKed or NAKed If node sends a message but does not receive an ACK or a NAK response, the node will re-transmit the message. If a node retransmitted a message because the acknowledge response to the first message was lost, the node receiving the message detects the retransmission and sends an acknowledge response. But the receiving node discards the duplicate message. High counts of this counter indicates noise or cable problems; check that the cable is secure and properly shielded from noise.

Transmit failed

29

Number of SDA messages sent by the station that were determined to be in error. This counter is the sum of the SDA transmit not ACKed and SDA transmit timeout counters.

Transmit timeout

26

The number of SDA messages that were sent but not ACKed or NAKed by the receiving station This counter increments even if the message does get through during a retry and if the receiving station is unable to communicate. This counter indicates a noise or a cabling problem (the receiving station is not seeing the messages).

Publication 1785-UM012D-EN-P - July 2005

Page 141

Communicating with Devices on a DH+ Link

9-9

Status Field

Word(s)

Description

Transmit confirm

24

Number of SDA messages successfully sent to and acknowledged by the addressed station

Transmit NAK full

30

Number of times the station received a NAK to a message because the destination station was full This indicates that messages are being sent to the receiving station faster than the PLC-5 controller can process them. Most likely, more than one station on the DH+ link is sending messages to the same station. Check to see that you are: not scheduling unnecessary traffic (e.g., your are sending continuous messages when you only need updates once per second) implementing report-by-exception so that data is sent only if it is new data

Transmit NAK misc.

25

Number of incoming SDA messages that were NAKed due to reasons other than the NAKed full and NAKed inactive counters (e.g., a NAK due to a bad CRC)

Transmit not ACKed

27

Number of SDA messages that were sent but were not ACKed by the receiving station The following could have occurred: message could have been NAKed an invalid ACK was returned nothing was returned This counter can indicate: a noise or a cabling problem the receiving station has been removed from the link the receiving station cannot communicate

Transmit NAKed SAP

31

Number of SDA messages that were successfully sent to but were NAKed by the addressed station because the SAP specified in the message was illegal This counter should always be 0.

Publication 1785-UM012D-EN-P - July 2005