The text of a manual · part 17 of 31
DF1 Protocol and Command Set Reference Manual: 9 - Diagnostic Counters, pages 139 to 147
Pages 139 to 147 of 251, from DF1 Protocol and Command Set Reference Manual
The original document is the PDF (2.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.
Filed in the catalog under the Allen-Bradley 5250-LP and Allen-Bradley 5250-MLP1
Page 139
Chapter
9
Diagnostic Counters Diagnostic counters are bytes of information stored in RAM in each module. The counters occupy a block of the module’s internal scratch RAM. Most are single-byte counters that wrap around to zero when they overflow. They are used to record events that can be used in debugging and long-term reliability analysis. These counters provide a useful tool for diagnosing problems. For example, the ACK timeout counter and the false poll counter are useful for diagnosing bad cabling, a noisy link, or an overloaded link installation. You can also use the counters to determine the ratio of messages transmitted (successfully returned an ACK from the remote node) versus the commands sent. This chapter lists interface module diagnostic counters and describes what they contain. It contains these sections: Section
Page
1747 Cat. Nos.
9-3
1761 Cat. Nos.
9-7
1770 Cat. Nos.
9-8
1771 Cat. Nos.
9-14
1775 Cat. Nos.
9-21
1779 Cat. Nos.
9-24
1784 Cat. Nos.
9-25
1785 Cat. Nos.
9-26
5250 Cat. Nos.
9-33
Publication 1770-6.5.16 - October 1996
Page 140
9–2
Diagnostic Counters
"
Reading diagnostic counters To read diagnostic counters, you issue a diagnostic read command from a device that: • is connected to an interface module that supports an asynchronous port • can format the diagnostic commands (Therefore, a PLC user program is unable to initiate a diagnostic command.) An interface module’s diagnostic counter location varies: • by module type • between revision levels of the same type module You first request the location of these counters by transmitting a diagnostic status command to the module. (For more on diagnostic status, see page 7–6.) Based on the address returned, you can use the number of the counters which follow as an offset to calculate: • the location of the desired counter • how many counter values you want returned You can then use this information to format a diagnostic read command. The reply from the diagnostic read command contains the data stored in the counters. For the PLC-5 and SLC 500 processors, you format the diagnostic read command with a dummy value for the address. The reply contains the entire counter block. (For more on diagnostic read, see page 7–19.)
Publication 1770-6.5.16 - October 1996
Page 141
Diagnostic Counters
1747 Cat. Nos.
9–3
Cat. Nos.
Link
Pages
1747-KE
DH485
9-3
1747-L20, -L30, -L40, -L511, -L514, -L524, -L532À
DH485
9-3
1747-L541, -L542, -L542Á
DH+ DH485
9-4 9-5
1747-L541, -L542, -L542Á
DF1
9-6
À
SLC 500, 5/01, and 5/02 processors Á SLC 5/03 and 5/04 processors
1747-KE DH485 Diagnostic Counters This counter byte
Counts the number of
0
Total message packets received, low byte
1
Total message packets received, high byte
2
Total message packets sent, low byte
3
Total message packets sent, high byte
4
Message packet retries
5
Retry limit exceeded (non-delivery)
6
NAK, no memory sent
7
NAK, no memory received
8
Total bad message packets received
9
Reserved
1747-L20, -L30, -L40, -L511, -L514, -L524, (SLC 500, 5/01, and 5/02 processors), 1747-PA2x (SLC APS COM1), 1770-KF3, and 1784-KR DH485 Diagnostic Counters This counter byte
Counts the number of
0
Total message packets received, low byte
1
Total message packets received, high byte
2
Total message packets sent, low byte
3
Total message packets sent, high byte
4
Message packet retries
5
Retry limit exceeded
6
NAK, no memory sent
7
NAK, no memory received
8
Total bad message packets received
9
Bad messages due to illegal type
Publication 1770-6.5.16 - October 1996
Page 142
9–4
Diagnostic Counters
1747-L541, -L542, and -L543 (SLC 5/04 processors) DH+ Diagnostic Counters
Publication 1770-6.5.16 - October 1996
This counter byte
Counts the number of
0, 1
Messages received
2, 3
Messages sent
4, 5
Messages received with errors
6, 7
Messages sent with errors
8, 9
Messages unable to receive
10, 11
Network dead
12, 13
Claims won
14, 15
Claims lost
16, 17
New successor
18, 19
Token retry
20, 21
Token failed
22, 23
Started linear scan
24, 25
Linear scan failed
26, 27
Duplicate node
28, 29
Dropped token
30, 31
Received SDA
32, 33
Received bad packets
34, 35
Received SDA re-transmission
36, 37
Received SDA but full
38, 39
Received SDA SAP off
40, 41
Transmit SDA confirm
42, 43
Transmit SDA NAK misc
44, 45
Transmit SDA timeout
46, 47
Transmit SDA not ACKed
48, 49
Transmit SDA retry
50, 51
Transmit SDA failed
52, 53
Transmit SDA NAKed (full)
54, 55
Transmit SDA NAKed inactive SAP
56, 57
Transmit SDN confirm
58, 59
Transmit SDN failed
60, 61
Solicit rotations
62, 63
Receive SDN
Page 143
Diagnostic Counters
9–5
1747-L541, -L542, and -L543 (SLC 5/03 and 5/04 processors) DH485 Diagnostic Counters This counter byte
Counts the number of
0
Total message packets received, low byte
1
Total message packets received, high byte
2
Total message packets sent, low byte
3
Total message packets sent, high byte
4
Message packet retries
5
Retry limit exceeded
6
NAK, no memory sent
7
NAK, no memory received
8
Total bad message packets received
9
Bad messages due to illegal type (i.e., control byte bad)
10
Bad messages due to bad CRC
11
Bad messages due to character with parity error
12
Bad messages due to character with framing error
13
Bad messages due to overrun error
14
Number of unexpected characters receivedÀ
À
If this counter 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 DH485 driver is still receiving characters. If the controller is operating properly, this counter should remain at zero.
Publication 1770-6.5.16 - October 1996
Page 144
9–6
Diagnostic Counters
1747-L541, -L542, and -L543 (SLC 5/03 and SLC 5/04 processors) DF1 Diagnostic Counters
Publication 1770-6.5.16 - October 1996
This counter byte
Counts the number of
0, 1
RS-232 modem line status: •Bit 0 = CTS input line status •Bit 1 = RTS output line status •Bit 2 = DSR input line status •Bit 3 = DCD input line status •Bit 4 = DTR output line status
2, 3
Total message packets sent
4, 5
Total message packets received
6, 7
Undelivered message packets
8, 9
Message packets retried
10, 11
Normal station poll list last scan time (100 ms increments)
12, 13
Normal station poll list maximum scan time (100 ms increments)
14, 15
Non-response due to bad message packets detected
16, 17
Unused
18, 19
Duplicate message packets received
20, 21
Priority station poll list last scan time (100 ms increments)
22, 23
DCD recovery field (times DCD toggled off and on)
24, 25
Lost modem field (times modem has been disconnected)
26, 27
Priority station poll list maximum scan time (100 ms increments)
Page 145
Diagnostic Counters
1761 Cat. Nos.
9–7
Cat. Nos.
Link
Pages
1761-L16AWA, -L16BBB, -L16BWB, -L32AWA, -L32BWA, -L32BWB
DH485 DF1
9-7 9-7
1761-L16AWA, -L16BBB, -L16BWB, -L32AWA, -L32BWA, -L32BWB (MicroLogix 1000 processors, Series C or later) DH485 Diagnostic Counters This counter byte
Counts the number of
0
Total message packets received, low byte
1
Total message packets received, high byte
2
Total message packets sent, low byte
3
Total message packets sent, high byte
4
Message packet retries
5
Retry limit exceeded
6
NAK, no memory sent
7
NAK, no memory received
8
Total bad message packets received
9
Reserved
1761-L16AWA, -L16BBB, -L16BWB, -L32AWA, -L32BWA, -L32BWB (MicroLogix 1000 processors) DF1 Diagnostic Counters This counter byte
Counts the number of
0, 1
Unused
2, 3
Message packets sent
4, 5
Message packets received
6, 7
Messages undelivered
8, 9
ENQ packets sent
10, 11
NAK packets received
12, 13
ENQ packets received
14, 15
Bad message packets received NAKed
16, 17
Out of memory NAKed
18, 19
Duplicate message packets
20, 21
Framing errors detected
22, 23
Unused
24, 25
Unused
Publication 1770-6.5.16 - October 1996
Page 146
9–8
Diagnostic Counters
1770 Cat. Nos.
Cat. Nos.
Link
Pages
1770-KF2
DH DH+
9-8 9-11
1770-KF3
DH485
9-3
1770-KFC
DF1
9-13
1770-KF2 and 1771-KE/KF DH and Asynchronous Link Diagnostic Counters
Publication 1770-6.5.16 - October 1996
This counter byte
Counts the number of
0
Bad CRCs or I/O errors on ACK. Same causes as bad CRC on messages.
1
Times the sender timed out waiting for an acknowledgment. This is a common error and is the first to respond to reflections or low level noise on the link. It is sensitive to problems on longer cables. It also appears if the receiver or transmitter circuitry on a module is marginal or if the cable connections are loose.
2
Times contention was detected. This counter corresponds to error 93. This also appears quickly on noisy or over-length cables.
3
Times the ACK was successfully received but contained a non-zero status code other than memory full. Currently the only other implemented ACK code is buffer overflow. This condition should never occur except when debugging new computer programs.
4
Times the link driver returns a message to sender. Each count corresponds to one local error bit set or one reply message lost.
5
Times the link driver returns a message to sender. Each time this happens, the message is placed on a waiting queue for 0.5s. Each message is re-tried five times before it is returned to the sender.
6
Times this node grabbed mastership of the link because it timed out while waiting to hear a valid frame. On a DH link that has just been powered up, there should be only one node that has this counter incremented.
7
Times that this node has tried to relinquish mastership and the node that was expected to takeover failed to respond. This happens often on a noisy link because the noise is mistaken for a poll response, and the wrong node is selected as the next master. When this occurs the old master resumes polling. It also can happen on a long link if the poll response is very attenuated and is not picked up by the carrier detect circuit. If the new node does respond but the old master does not hear it, the old master records a false poll and continues polling, and the new master starts polling. This usually leads to the second node detecting contention and relinquishing.
8
Times that the receiver received a status frame instead of a message frame. This counter is never incremented because the message size is checked first, and all status messages are too small to be accepted.
Page 147
Diagnostic Counters
9–9
This counter byte
Counts the number of
9
Frames that were rejected because they were less than 6 bytes long. This counter records all status frames that were received by a node that disabled its address recognizer in the second step of the mastership timeout process. This happens often on a heavily-loaded link.
10
Frames that were rejected because the destination address was incorrect. This can have the same cause as counter byte 9. This counter also detects frames that have the same source and destination address.
11
Times that the receiver sent an ACK without first being able to allocate a receive buffer. This may result in a memory overflow error when the next message is received.
12
Frames that were rejected because of a bad CRC. This error is common on a noisy link.
13
Times a message was received that contained more than 250 bytes.
14
Times a message was received when buffer space was not allocated for it. This usually follows a full" error.
15
Duplicate frames received. A duplicate frame is sent by a transmitter when it fails to receive an ACK. If the reason it failed to receive an ACK was that the ACK was lost rather than because the original message was lost the duplicate is redundant and should be discarded. Any two successive messages between polls that have the same sequence number fields and the same command or reply bits are assumed to be duplicates.
16
Aborts received. The HDLC abort signal is not used on a DH link but can be detected by the serial input or output, in certain circumstances. Some nodes whose addresses match the ringing pattern after a transmitter shutoff can be particularly susceptible to this error (nodes 36, 76, and 176, for example). These numbers depend on highway configurations.
17, 18
Messages successfully transmitted.
19, 20
Messages successfully received.
Publication 1770-6.5.16 - October 1996