The text of a manual · part 34 of 70
SLC 500 Instruction Set Reference Manual, pages 331 to 340
Pages 331 to 340 of 694
The original document is the PDF (7.2 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 1747-L514
Page 331
Chapter
13
SLC Communication Channels
Use the information in this chapter to understand how to configure and monitor the SLC 500 communication channels including passthru. The following communication drivers are supported.
Table 13.1 Supported Communication Drivers Communication Drivers
SLC 500 Fixed
SLC 5/01
SLC 5/02
SLC 5/03
Channel 1 x x x x
DH-485 DH+
SLC 5/04 x
13-12 x
13-24
DH-485 x x x
13-7
DF1 Full-duplex x x x
13-49
DF1 Half-duplex Master x(1)
x x
13-56
DF1 Half-duplex Slave x x x
13-69
DF1 Radio Modem x(2)
x(5)
x(6)
13-76
Modbus RTU Master x(3)
x(3)
x(3)
13-90
ASCII x(4)
x x
13-98
(1)
OS302, Series A, FRN 9 and higher.
(2)
OS302, Series C, FRN 6 and higher.
(3)
OS302 Series C / OS401 Series C / OS501 Series C, FRN 11 and higher
(4)
OS301 Series A, FRN 5 and higher.
(5)
OS401, Series C, FRN 6 and higher.
(6)
OS501, Series C, FRN 6 and higher.
1
Page 13-7
Ethernet Channel 0
SLC 5/05
Publication 1747-RM001G-EN-P - November 2008
Page 332
13-2
SLC Communication Channels
Communication Driver Overview
DH-485 - The SLC 500 Fixed, SLC 5/01, SLC 5/02 and SLC 5/03 have a dedicated channel for DH-485. SLC 5/03, SLC 5/04 and SLC 5/05 RS-232 channel 0 can be reconfigured for DH-485. This network is a multi-master, token-passing network protocol capable of supporting up to 32 devices (nodes). This protocol allows: • monitoring of data and processor status, along with program uploading and downloading of any device on the network from one location. • SLC processors to pass data to each other (peer-to-peer communication). • operator interface devices on the network to access data from any SLC processor on the network. Data Highway Plus (DH+) - The Data Highway Plus protocol is used by the SLC 5/04 processor. This protocol is similar to DH-485, except that it can support up to 64 devices (nodes) and runs at faster communication (baud) rates. Ethernet - The Ethernet TCP/IP protocol is used by the SLC 5/05 processor. Standard Ethernet, utilizing the TCP/IP protocol, is used as the backbone network in many office and industrial buildings. Ethernet is a local area network that provides communication between various devices at 10 Mbps or higher. This network provides the same capabilities as DH+ or DH-485 networks, plus: • SNMP support for Ethernet network management. • optional dynamic configuration of the processor IP address using BOOTP or DHCP. • ability to message entire SLC 5/05 data files. • an unlimited number of nodes on a single network are possible compared to DH-485 (32) and DH+ (64). • 64 maximum message connections opened at one time (for 64 K processors); 4 incoming, 4 outgoing and 56 either incoming or outgoing.
Publication 1747-RM001G-EN-P - November 2008
Page 333
SLC Communication Channels
13-3
DF1 Full-duplex - DF1 Full-duplex protocol (also referred to as DF1 point-to-point protocol) allows two devices to communicate with each other at the same time. This protocol allows: • transmission of information across full-duplex modems (dial-up, leased line, radio, or direct cable connections). • communication to occur between Allen-Bradley products and third-party products. DF1 Half-duplex (Master and Slave) - DF1 Half-duplex protocol provides a multi-drop single master/multiple slave network capable of supporting up to 255 devices (nodes). This protocol also provides modem support and is ideal for SCADA (Supervisory Control and Data Acquisition) applications because of the multidrop capability. DF1 Radio Modem - DF1 Radio Modem protocol is a peer-to-peer protocol that supports up to 255 devices (nodes) and is optimized for radio modem communications. It allows Report-by-Exception messaging; any node can initiate to any other node at any time (as long as the radio modem network supports full-duplex data port buffering and radio transmission collision avoidance). It also supports Store and Forward, which allows messages between two out-of range nodes to be routed through one or more in-range nodes. Modbus RTU Master - Modbus protocol exchanges message instructions to transfer information between the data files in the Modbus RTU Master and the Modbus RTU Slaves. ASCII - The ASCII protocol provides connection to other ASCII devices, such as bar code readers, weigh scales, serial printers, and other intelligent devices.
Publication 1747-RM001G-EN-P - November 2008
Page 334
13-4
SLC Communication Channels
DH-485 Communications
The DH-485 network offers: • interconnection of 32 devices. • multi-master capability. • token passing access control. • the ability to add or remove nodes without disrupting the network. • maximum network length of 1219 m (4,000 ft).
DH-485 Network Protocol The following section describes the protocol used to control message transfers on the DH-485 network. The protocol supports two classes of devices: initiators and responders. All initiators on the network get a chance to initiate message transfers. To determine which initiator has the right to transmit, a token passing algorithm is used.
DH-485 Token Rotation A node holding the token can send valid packets onto the data link. The token hold parameter determines the number of transmissions allowed (plus retries) each time the node receives the token. After a node sends one message packet, it attempts to give the token to its successor by sending a token pass packet. If no network activity occurs, the initiator attempts to find a new successor. The node address range for an initiator is 0 to 31. The node address range for all responders is 1 to 31. There must be at least one initiator on the network.
TIP
The maximum address that the initiator searches for before wrapping to zero is the value in the configurable parameter maximum node address. The default value of this parameter is 31 for all initiators and responders. SLC 500 processors do not allow node address zero to be applied. If you attempt to apply a zero, node address one becomes the processor node address. Node address zero is reserved for a programming device, such as the Hand-Held Terminal (HHT) or personal computer running programming software.
Publication 1747-RM001G-EN-P - November 2008
Page 335
SLC Communication Channels
13-5
DH-485 Network Initialization Network initialization begins when a period of inactivity exceeds the time of a link dead timeout. When the time for the link dead timeout is exceeded, usually the initiator with the lowest address claims the token. Building a network begins when the initiator that claimed the token tries to pass the token to the successor node. If the attempt to pass the token fails, or if the initiator has no established successor (for example, when it powers up), it begins a linear search for a successor starting with the node above it. It will wrap to node 0 upon reaching its maximum node address value. When the initiator finds another active initiator, it passes the token to that node, which repeats the process until the token is passed all the way around the network to the first node. At this point, the network is in a state of normal operation.
DH-485 Network Considerations DH-485 Network considerations include the configuration of the network and the parameters that can be set to the specific requirements of the network. The following are major configuration factors that have a significant effect on network performance. • Number of nodes on the network • Addresses of those nodes • Baud rate • Maximum node address selection • SLC 5/03 and higher - token hold factor • Maximum number of communicating devices • Broadcasting The following sections explain network considerations and describe ways to select parameters for optimum network performance (speed).
Number of Nodes The number of nodes on the network directly affects the data transfer time between nodes. Unnecessary nodes (such as a second programming terminal that is not being used) slow the data transfer rate. The maximum number of nodes on the network is 32.
Publication 1747-RM001G-EN-P - November 2008
Page 336
13-6
SLC Communication Channels
Setting Node Addresses The best network performance occurs when node addresses start at 0 and are assigned in sequential order. SLC 500 processors default to node address 1. The node address is stored in the processor status file (S:15L). Processors cannot be node 0. Also, initiators such as personal computers should be assigned the lowest numbered addresses to minimize the time required to initialize the network. If some nodes are connected on a temporary basis, do not assign addresses to them. Simply create nodes as needed and delete them when they are no longer required.
Setting Processor Baud Rate The best network performance occurs at the highest baud rate. All devices must be at the same baud rate. The default DH-485 baud rate for SLC 500 devices is 19.2K baud. The baud rate is stored in the processor status file (S:15H).
Maximum Node Address Setting The maximum node address parameter should be set as low as possible. This minimizes the amount of time used in soliciting successors when initializing the network. If all nodes are addressed in sequence from 0, and the maximum node address is equal to the address of the highest addressed node, the token rotation will improve by the amount of time required to transmit a solicit successor packet plus the slot timeout value.
Maximum Number of Communicating Devices SLC 500 fixed and SLC 5/01 processors can be selected by no more than two initiators at the same time. Using more than two initiators to select the same SLC 500 fixed and SLC 5/01 processors at the same time can cause communication time-outs.
Broadcasting A broadcast write command is sent as a DH-485 Send Data No Acknowledgement (SDN) packet. No acknowledgement or reply is returned. Broadcasting is the most efficient way to write the same data to multiple devices on the DH-485 network.
Publication 1747-RM001G-EN-P - November 2008
Page 337
SLC Communication Channels
13-7
Configuring a Channel for DH-485 To configure an SLC processor channel for DH-485, do the following using your programming software:
To bring up the Channel Configuration interface, double-click on the Channel Configuration icon. For an SLC 500 Fixed, SLC 5/01 and SLC 5/02 processor, enter in the Baud Rate and Node Address parameters.
For SLC 5/03, SLC 5/04 and SLC 5/05 processors, define the location of the diagnostic file used for Channel Status here. See Table 13.2 for diagnostic file details.
Publication 1747-RM001G-EN-P - November 2008
Page 338
13-8
SLC Communication Channels
1. On the Channel 1 or 0 tab, choose DH-485 for your Driver. 2. Configure the communication driver characteristics according to Table 13.2.
Table 13.2 Define these communication parameters when configuring an SLC 5/03 or higher processor for DH-485 communications. Tab
Parameter
Default
Selections
General
Diagnostic File
0
Select an unused file (9 to 255) to store channel status information. You must define a diagnostic file in order to be able to view channel 0 or channel 1 status. See Table 13.3 for a file description.
19200
Toggles between the communication rate of 1200, 2400, 9600, and 19200.
Node Address
1
This is the node address of the processor on the DH-485 network. The valid range is 1 to 31.
Max Node Address
31
This is the maximum node address of an active processor. The valid range is 1 to 31. The SLC 500 Fixed, SLC 5/01 and SLC 5/02 processors are factory set to 31.
Token Hold Factor
1
Determines the number of transactions allowed to make each DH-485 token rotation. Increasing this value allows your processor to increase its DH-485 throughput. This also decreases throughput to other processors on the DH-485 link. The valid range is 1 to 4 for SLC 5/03 and higher processors. The SLC 500 Fixed, SLC 5/01 and SLC 5/02 processors are factory set to 1.
Channel 0 or Channel Baud Rate 1 System
Publication 1747-RM001G-EN-P - November 2008
Page 339
SLC Communication Channels
13-9
DH-485 Channel Status For SLC 5/03 (OS302, Series C and higher), SLC 5/04 (OS401, Series C and higher) and SLC 5/05, channel status data is stored in the diagnostic file defined on the Channel Configuration screen. Table 13.3 on page 13-9 explains information regarding the diagnostic counter data displayed.
Double-click on the Channel Status Icon Located beneath the Configuration icon to bring up the Channel Status screen.
See Table 13.3 for details concerning the DH-485 Channel Status Screen.
Table 13.3 SLC 5/03 Channel 1 and SLC 5/03 and Higher Channel 0 DH-485 Channel Status Status field
Bytes
Displays the
Messages Received
0,1
Number of error-free messages that the station has received.
Messages Sent
2,3
Number of messages sent by the channel.
Messages Retry
4
Number of messages resent due to errors.
Retry Limit Exceeded
5
Number of times that the processor exceeded its retry limit in trying to send a message.
No Memory Sent/NAK
6
Number of times the processor could not receive a message because it did not have enough memory.
No Memory Received/NAK
7
Number of negative acknowledgements received by the processor.
Publication 1747-RM001G-EN-P - November 2008
Page 340
13-10
SLC Communication Channels
Table 13.3 SLC 5/03 Channel 1 and SLC 5/03 and Higher Channel 0 DH-485 Channel Status (Continued) Status field
Bytes
Displays the
Total Bad Packets Received
8
Number of incorrect data packets the processor has received.
Packets with bad type byte
9
Number of messages that the processor could not receive because they were of an illegal type that contained a bad control byte.
Packets with bad CRC
10
Number of messages received with a CRC (cyclic redundancy check) transmission integrity error.
Packets with Parity Error
11
Number of messages that could not be processed because of a parity error. Parity is used to detect errors in data bytes. If the parity of a received character is invalid, this counter is incremented.
Packets with Framing error
12
Number of messages containing misaligned data. Each data byte has a start bit and a stop bit. These bits “frame” the actual data byte. If a character is received where these bits are not correctly placed, the character is invalid and this counter is incremented. These errors normally mean an electrically noisy environment or poorly terminated cabling.
Bad Packets due to Overrun
13
Number of messages that could not be handled because the processor could not move data fast enough before new data arrived. In this case data characters are lost and the transmission is bad.
Unexpected Characters Received
14
Number of characters the processor received with parity or with errors and discarded. If this is not zero, it could indicate that an internal hardware problem has occurred. This problem could be that the communication channel’s receiver has been disabled, but the DH-485 driver is still receiving characters. If the controller is operating properly, this counter should remain at zero.
For processors running OS Series C, FRN 6 and higher, clicking the Clear button while monitoring Channel Status of either channel 1 or channel 0 online, will reset all of the channel status diagnostic counters for both channels to zero. Prior to OS Series C, FRN 6, the only channel status diagnostic counters that are reset when the Clear button is clicked are the ones on the channel that the programming terminal is connected to. For example, if your programming terminal is connected online via channel 0 and you are monitoring the Channel Status of channel 1, when you click on the Clear button, only channel 0 diagnostic counters will be reset, not channel 1 diagnostic counters.
Data Highway Plus Communications
Data Highway Plus (DH+) implements peer-to-peer communication with a token-passing scheme to rotate link mastership among a maximum of 64 nodes. Since this method does not require polling, it helps provide time-efficient reliable data transport. The DH+network features: • remote programming of PLC-5 and SLC 500 processors on your network. • direct connections to PLC-5 processors and industrial programming terminals. • easy re-configuration and expansion if you want to add more nodes later. • communication rates of 57.6K baud, 115.2K baud, or 230.4K baud.
Publication 1747-RM001G-EN-P - November 2008