The text of a manual · part 35 of 70
SLC 500 Instruction Set Reference Manual, pages 341 to 350
Pages 341 to 350 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 341
SLC Communication Channels
13-11
The DH+network uses factory set time-outs to restart token-passing communication if the token is lost because of a defective or powered down node.
Example The example below shows the connectivity of an SLC 5/04 processor to a PLC-5 processor using the DH+ protocol. A communication rate of 57.6K baud is used.
A Personal Computer with one of the following: 1784-KTX (ISA) 1784-KTXD (ISA) 1784-PKTX (PCI) 1784-PKTXD (PCI) 1784-PCMK/B (PCMCIA)
PLC-5/40 DH+ Network
SLC 5/04 Modular I/O Controller
Example The example below shows a DH+ protocol using two SLC 5/04 controllers using the higher baud rates of 115.2K baud or 230K baud.
TIP
In the example below, the programming terminal is connected to the serial port of the SLC 5/04 processor to communicate on the DH+ network at the higher baud rate. This method uses the DF1 to DH+ passthru feature.
SLC 5/04 Modular I/O Controller
SLC 5/04 Modular I/O Controller DH+ Network
Publication 1747-RM001G-EN-P - November 2008
Page 342
13-12
SLC Communication Channels
Configuring Channel 1 for DH+ To configure an SLC 5/04 processor channel for DH+, do the following using your programming software.
To bring up the Channel Configuration interface, double-click on the Channel Configuration icon.
Define the location of the diagnostic file used for Channel Status here. See Table 13.5 on page 13-15 for diagnostic file details.
Publication 1747-RM001G-EN-P - November 2008
Page 343
SLC Communication Channels
13-13
1. On the Channel 1 tab, choose DH+ for your Driver. 2. Configure the communication driver characteristics according to Table 13.4.
Table 13.4 Define these communication parameters when configuring an SLC 5/04 for DH+ 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 1 status. See Table 13.5 for a file description.
Channel 1 System
Baud Rate
57.6k
Toggles between the communication rates of 57.6k, 115.2k and 230.4k.
Node Address
1
Valid range is 0 to 77 octal.
DH+ Channel Status For SLC 5/04 (OS401, Series C and higher), channel status data is stored in the diagnostic file defined on the Channel 1 Configuration screen. See Table 13.5 on page 13-15 for information regarding the diagnostic counter data displayed.
Publication 1747-RM001G-EN-P - November 2008
Page 344
13-14
SLC Communication Channels
Double-click on the Channel Status Icon Located beneath the Configuration icon to bring up the Channel Status screen.
See Table 13.5 for details concerning the DH+ Channel Status Screens for Messages, General, Data Sent with Acknowledgement, and Data Sent without Acknowledgement.
Publication 1747-RM001G-EN-P - November 2008
Page 345
SLC Communication Channels
13-15
Table 13.5 SLC 5/04 Channel 1 DH+ Channel Status Status field Messages
Word
Displays the
Received
0
Number of error-free messages the station has received. This number is the sum of the SDA and SDN received counters.
Sent
1
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.
Received with error
2
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.
Sent with error
3
Number of messages sent that were not acknowledged. This number is the sum of the following. • SDA transmit NAK misc • Transmit NAK full • SDA transmit NAKed SAP • SDA/SDN retrans • Dropped token
Unable to receive
4
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 1747-RM001G-EN-P - November 2008
Page 346
13-16
SLC Communication Channels
Table 13.5 SLC 5/04 Channel 1 DH+ Channel Status (Continued) Status field General
Word
Displays the
Network dead
5
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 is initiated. (See claims won for more information.)
Claims won
6
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.
Claims lost
7
Number of times the station did not win the claim token sequence. See claims won for more information.
New successor
8
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 retry
9
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.
Token failed
10
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.
Started linear scan
11
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.
Linear scan failed
12
Number of times the station solicited every station number without getting a response. See started linear scan for more information.
Duplicate node
13
Number of times the station has detected the same station address as itself on the network. As a result, the station goes offline.
Dropped token
14
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.
SDA/SDN retransmissions
24
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 NAKed.
Publication 1747-RM001G-EN-P - November 2008
Page 347
SLC Communication Channels
13-17
Table 13.5 SLC 5/04 Channel 1 DH+ Channel Status (Continued) Status field General
Solicit rotations
Received Data Sent with Received with error Acknowledgement (SDA)
Word
Displays the
30
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.
15
Number of error-free SDA messages that the station received.
16
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
17
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.
Received but full
18
Number of SDA messages that the station could not receive because of lack of memory.
Received SAP off
19
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.
Transmit confirm
20
Number of SDA messages successfully sent to and acknowledged by the addressed station.
Transmit NAK misc.
21
Number of incoming SDA messages that were NAKed due to reasons other than the NAKed full and NAKed inactive counters (for example, a NAK due to a bad CRC).
Transmit time-out
22
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).
Transmit not ACKed
23
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.
Publication 1747-RM001G-EN-P - November 2008
Page 348
13-18
SLC Communication Channels
Table 13.5 SLC 5/04 Channel 1 DH+ Channel Status (Continued) Status field
Word
Displays the
Transmit failed Data Sent with AcknowledTransmit NAK full gement (SDA)
25
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 time-out counter.
26
Number of times the station received NAK to a message because the destination station was full. This indicates that messages are being sent to the receiving station faster than the processor 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 (for example, you 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 NAKed SAP
Transmit confirm Data Sent without Transmit failed Acknowledgement (SDN) Received
27
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.
28
Number of valid SDN messages sent by the station.
29
Number of SDN messages sent by the station that were in error. This error should never be seen.
31
Number of valid SDN messages received.
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.
Global Status Word Overview When a processor passes the DH+ token to the next node, it can also send a 16-bit word called the Global Status Word (GSW). Every node on the network sees the token pass message, but only the “next” node on the network accepts the token. However, all of the nodes on the network read the Global Status Word sent with each token pass and save it to memory. Each processor on the DH+ network has a table in memory to store Global Status Word(s) it receives from other nodes. In each SLC 5/04 processor’s status file, there is a designation for the: • Global Status Word.
Publication 1747-RM001G-EN-P - November 2008
Page 349
SLC Communication Channels
13-19
This word is located in memory at S:99. If, S:34/3 is set, data in this memory location is transmitted every time the processor passes the DH+ token. Note that all other DH+ nodes see this data. • Global Status File. This file is located in memory at S:100 to S:163, representing one memory location for each of the 64 possible nodes on the DH+ network. As other nodes transmit Global Status information with their token passes, the SLC 5/04 processor collects this information and stores it in the Global Status File. Memory location S:100 corresponds to node #0 (octal), S:101 corresponds to node #1 (octal), and S:163 corresponds to node #77 (octal). One word of every node’s Global Status File is updated each token pass. This can function as a high-speed broadcast message, useful for status passing and synchronization of processors. If the Global Status Word Transmit Enable bit (S:34/3) and Global Status Word Receive bit (S:34/4) are never set, you can use the Global Status File (S:100 to S:163) for other storage uses. If these bits are reset, this area in the System Status File is never altered by the SLC 5/04 processor, even after a power cycle to the processor.
S:34/3 Global Status Word Transmit Enable Bit Transmission of the Global Status Word is enabled by setting bit S:34/3 in the status file. If this bit is set (1), the processor transmits the data in S:99 with every DH+ token pass. If this bit is not set (0), the processor passes the token and does not attach the Global Status Word. This bit is dynamically configurable and the default setting is zero. Keep the following guidelines in mind when using the Global Status Word Transmit Enable bit. • If this bit is not set, the DH+ Token Pass transmitted out Channel 1 will contain no Global Status Word bytes • If this bit is set, but the SLC 5/04 is not in RUN mode, REMote Run, or one of the three test modes, the DH+ Token Pass transmission will contain a 2-byte Global Status Word of 0x0000. • If this bit is set and the SLC 5/04 is in RUN mode, REMote Run, or one of the three tests modes the DH+ Token Pass transmission will contain a 2-byte GSW equal to the value in S:99 (Global Status Word). The word is also placed in the 64-word Global Status File (S:100 to S:163) in the location corresponding to the DH+ node address associated with the SLC 5/04 processor. For example, if the SLC 5/04 processor is operating at octal address 22 (18 decimal), the transmitted GSW is written to word S:118.
Publication 1747-RM001G-EN-P - November 2008
Page 350
13-20
SLC Communication Channels
• The word in the Global Status File corresponding to the SLC 5/04 processor’s DH+ address will be set to 0x0000 if any thing is done to inhibit the transmission of the Global Status Word from S:99. This includes: – clearing S:34/3, Global Status Word Transmit Enable bit – placing the SLC 5/04 into a mode other than Run mode or Test mode – disabling Channel 1 – an error occurring on the DH+ link to cause the Channel 1 LED to flash red or go solid red (This could be caused by a duplicate node address.) – having an OS400 user program downloaded to the SLC 5/04 processor • If S:34/3 is not set from the time the SLC 5/04 is powered up, the word corresponding to its DH+ address in the Global Status File will never be written to during the end-of-scan.
S:34/4 Global Status Word Receive Enable Bit Receiving the Global Status Words of other processors on the network is enabled by setting bit S:34/4 in the status file. If this bit is set (1), the processor fills in the Global Status File with Global Status Words transmitted by other processors on the network. If this bit is not set (0), the processor ignores any Global Status Word activity on the network. This bit is dynamically configurable and the default setting is zero. Note that transmitting and receiving Global Status Words are independent of each other. Keep the following guidelines in mind when using the Global Status Word Receive Enable bit: • If this bit is not set, the Global Status File (S:100 to S:163) is not updated with Global Status Word information being passed on the link. • An error occurring on the DH+ link to cause the Channel 1 LED to flash red or go solid red disables Global Status Word receptions. (This could be caused by a duplicate node address.) • Global Status File (S:100-S:163) support is enabled when the following four conditions are met: – Channel 1 is configured for DH+ protocol communication – the System Status File is at least 164 words in length – the Global Status Word Receive Enable bit (S:34/3) is set – operation on the DH+ link is working (Channel 1 LED is green) • Global Status Word reception will not occur while downloading a program.
Publication 1747-RM001G-EN-P - November 2008