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 31

DF1 Protocol and Command Set Reference Manual: 9 - Diagnostic Counters, pages 148 to 156

Pages 148 to 156 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 148

9–10

Diagnostic Counters

Publication 1770-6.5.16 - October 1996

This counter byte

Counts the number of

21, 22

Times the node attempted to send a message.

23, 24

Messages were successfully transmitted and ACKed.

25, 26

ACKs received.

27

ACKs successfully passed from the receiver's separator to the transmitter.

28

NAKs received.

29

NAKs passed from the separator to the transmitter.

30

Timeouts waiting for a response.

31

ENQs sent.

32

Messages that could not be successfully sent.

33

Reply messages that could not be forwarded and were destroyed.

34, 35

Messages received.

36, 37

ACKs sent.

38

NAKs sent.

39

ENQs received.

40

Re-transmissions received and ACKed. A re-transmission is a message that has a transparent word, command, and source that match the previous message.

41

STX (full-duplex mode) or SOH (half-duplex mode) received. This is a count of the number of messages that were started.

42

Messages, characters, or message fragments that were ignored.

43

Messages aborted by receipt of a DLE ENQ.

44

Messages aborted by the receipt of an unexpected control code other than DLE ENQ.

45

Times the DLE ACK response was sent but there was no buffer space for the next message.

46

DLE NAK was sent because there was no buffer.

47

Broadcast messages received.

48

Broadcast messages that were successfully received.

49

Messages seen that were not for this node.

50

DLE EOTs sent.

51

Calls received.

52

Times the phone was hung up by the module.

53

DCD was lost.

54

Times the phone was hung up because of a DCD timeout.

Page 149

Diagnostic Counters

9–11

1770-KF2 and 1785-KE DH+ and Asynchronous Link Diagnostic Counters This counter byte

Counts the number of

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21, 22 23, 24 25, 26 27, 28 29, 30 31, 32 33 34

Times received ACK with bad CRC. Times timeout expired with no ACK received. Transmit re-tries exhausted. NAK/illegal protocol operation received. NAK/bad LSAP received. NAK/no memory received. Received ACK/NAK too short. Received ACK/NAK too long Something other than an ACK/NAK received. Token pass timeouts. Token pass re-tries exhausted. Claim token sequence entered. Tokens claimed. Bad CRCs in received frame. NAK/illegal protocol operations sent. NAK/bad LSAPs sent. NAK/no memory sent. Received frame too small. Received frame too long. Received a re-transmission of a frame. Received frame aborted (line noise). Messages successfully sent (low byte first). Messages successfully received (low byte first). Commands successfully sent (low byte first). Replies successfully received (low byte first). Commands successfully received (low byte first). Replies successfully sent (low byte first). Replies could not be sent. Active nodes.

Publication 1770-6.5.16 - October 1996

Page 150

9–12

Diagnostic Counters

This counter byte

Counts the number of

35, 36 37, 38 39, 40 41

Times node attempted to send a message. Messages that were successfully transmitted and ACKed. ACKs that were received. ACKs successfully passed from the receiver's separator to the transmitter. NAKs received. NAKs passed from the separator to the transmitter. Timeouts waiting for a response. ENQs sent. Messages that could not be successfully sent. Reply messages that could not be forwarded and were destroyed. Messages received. ACKs sent. NAKs sent. ENQs received. Re-transmissions received and ACKed. A re-transmission is a message that has a transaction (TNS) word, command (CMD), and source (SRC) that match the previous message. STX (full-duplex mode) or SOH (half-duplex mode) received. This is a count of the number of messages that were started. Messages, characters, or message fragments that were ignored. Messages that were aborted by receipt of a DLE ENQ. Messages that were aborted by the receipt of an unexpected control code other than DLE ENQ. DLE ACK response was sent but there was no buffer space for the next message. DLE NAK was sent because there was no buffer. Broadcast messages received Broadcast messages that were successfully received. Messages seen that were not for this node. DLE EOTs sent. Calls received. Times the phone was hung up by the module. Times DCD was lost. Times the phone was hung up because of a DCD timeout.

42 43 44 45 46 47 48, 49 50, 51 52 53 54

55 56 57 58 59 60 61 62 63 64 65 66 67 68

Publication 1770-6.5.16 - October 1996

Page 151

Diagnostic Counters

9–13

1770-KFC DF1 Diagnostic Counters This counter byte

Counts the number of

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Total DF1 packets received, low byte. Total DF1 packets received, high byte. Total DF1 packets transmitted, low byte. Total DF1 packets transmitted, high byte. Number of DF1 retries. Number of DF1 packets where the retry limit was exceeded. Number of DF1 NAKs sent. Number of DF1 NAKs received. Number of DF1 bad messages received. Number of RS-232 line errors Total good ControlNet packets received, low byte. Total good ControlNet packets received, high byte. Total bad ControlNet packets received, low byte. Total bad ControlNet packets received, high byte. Total ControlNet packets transmitted, low byte. Total ControlNet packets transmitted, high byte.

Publication 1770-6.5.16 - October 1996

Page 152

9–14

Diagnostic Counters

1771 Cat. Nos.

Cat. Nos.

Link

Pages

1771-KA, 1771-KA2, and 1774-KA

DH

9-14, 9-15

1771-KC

DH

9-16, 9-18

1771-KE/KF

DH

9-8

1771-KG, -KGM

DH

9-19

1771-KA, 1771-KA2, and 1774-KA DH Diagnostic Counters This counter byte 0 1

2

3

4

5

6

7

8

Publication 1770-6.5.16 - October 1996

Counts the number of Times CRC was in error on an ACK. Times the sender timed out waiting for an acknowledgement. Common error that occurs with error reflections or noise on the link (sensitive to problems on longer cables). It also shows up if the receiver or transmitter circuitry on a module is marginal, or if cable connections are loose. Times contention was detected. This appears quickly on noisy or long cables. This counter corresponds to error 93. If 93 is a common error on your link, expect 37 (start bit timeout) errors also, since any reply that experiences contention is not re-tried. Times the ACK was successfully received but contained a non-zero status code other than memory full. Only other implemented ACK code is buffer overflow. This condition should never occur except when debugging new code. Times the link driver returns a message to sender. Each count corresponds to one local error bit set or one reply message lost. Times the receiving node's memory was full. Each time this happens, the message is placed on a waiting queue for 0.5s. Each message is re-tried five times for memory overflow before it is returned to sender. Times this node grabbed mastership of the DH link because it timed out while waiting to hear a valid frame. On a link that has just been powered up, there should be only one node that has this counter incremented. Times this node has tried to relinquish mastership and the node that was expected to take over failed to respond. Happens 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. Also happens 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 responds, but the old master does not hear it, the old master records a false poll and continues polling. The new master starts polling also. This usually leads to the second node detecting contention and relinquishing. Times the receiver received a status frame instead of a message frame. This occurs only if a poll timeout is imminent (a master has had mastership for more than 170ms) and the node has disabled its address recognizer to test for any valid traffic.

Page 153

Diagnostic Counters

This counter byte 9

10

11

12 13 14 15

16

17, 18 19, 20 21, 22

23, 24

25, 26 27 28

29

9–15

Counts the number of Frames that were rejected because the header was incomplete. This is counted only because of undebugged software or in the unlikely event that a bad frame fooled the CRC checker. Frames that were rejected because the destination address was incorrect. This can have the same cause as counter byte 8. This counter also detects frames that have the same source and destination address. Times the receiver sent an ACK without first being able to allocate a receive buffer. This results in a memory overflow error when the next message is received. Frames rejected because of a bad CRC. This error is very common on a noisy DH link. Times a message was received that contained more than 250 bytes. Times a message was received when there was no buffer space allocated for it (usually follows a memory full error). 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 is 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. 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 are susceptible to this error (nodes 36, 76, and 176, for example). These numbers depend on highway configurations. Messages successfully transmitted. Messages successfully received. Command messages that were successfully generated as a result of a start bit being set and records this number. Some command messages may not be recorded because they were not successfully sent or they were sent back to the originating node. Command messages that were received to be executed a the link. This count does not depend on whether execution was successful. For each message counted as received a reply message is sent. Reply messages received that resulted in the setting of a done or remote error bit. Breaks sent to the industrial terminal. Times the PLC driver has to re-synchronize with the PLC processor. This counter always counts at least one re-synch (because of powerup). Errors on the KA-to-IT cable (counts down module 5). Every time this count reaches zero, the 1771-KA does a handshake to reset the forced I/O table in the PLC processor.

Publication 1770-6.5.16 - October 1996

Page 154

9–16

Diagnostic Counters

This counter byte 30

Important:

Counts the number of Replies lost because they could not be delivered over the DH link. Undeliverable commands can be signaled to the user, because the is located in PC memory, and can always be reached. If a reply message cannot be delivered over the link, there is no way to signal the user (of that message) who is also over the highway that this node cannot signal a reply. The local user is not concerned with the problems of the remote user and can take no meaningful action, so there is not much to do but destroy the message and count it.

An intelligent device can read the memory of the 1771-KC it is connected to by setting the destination equal to the module address.

1771-KC DH Diagnostic Counters

Publication 1770-6.5.16 - October 1996

This counter byte

Counts the number of

0

Bad CRCs on ACK.

1

Times the sender timed out waiting for an acknowledgement. This is a common error and is one of the first to respond to reflections or low-level noise on the link. It seems to be especially sensitive to problems with longer cables. It also shows up if the cable connection are loose.

2

Times contention was detected. This also shows up quickly on noisy or cables that are too long. This counter corresponds to error 93.

3

Times the ACK was successfully received but contained a non-zero status code other than memory full.

4

Times the highway driver returns a message to sender with a non-zero status code because a reply was not received from a remote node. Each count corresponds to one local error bit set or one reply message lost.

5

Times the receiving node's memory was full. Each time this happens, the message is placed on a waiting queue for 0.5s. Each message is re-tried five times for memory overflow before it is returned to sender.

6

Times this node grabbed mastership of the highway 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 take over failed to respond. This happens 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 also. This usually leads to the second node detecting contention and relinquishing.

Page 155

Diagnostic Counters

9–17

This counter byte

Counts the number of

8

Times the receiver received a status frame instead of a message frame. This occurs if a poll timeout is imminent (a master has had mastership for more than 170ms) and the node has disabled its address recognizer to test for any valid traffic. The probability of errors in counter bytes 8, 9 and 10 increases substantially.

9

Frames that were rejected because the header was incomplete. This is only counted because of undebugged software or in the unlikely event that a bad frame fooled the CRC checker.

10

Frames that were rejected because the destination address was incorrect. This can have the same cause as counter byte 8. This counter also detects frames that have the same source and destination addresses.

11

Times that the receiver sent an ACK without first being able to allocate a receive buffer. This results in a memory overflow error when the next messages 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 there was no buffer space allocated for it. This usually follows a full" error.

Publication 1770-6.5.16 - October 1996

Page 156

9–18

Diagnostic Counters

Publication 1770-6.5.16 - October 1996

This counter byte

Counts the number of

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 that the original message was lost the duplicate is redundant and is 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 link configurations.

17, 18

Messages successfully transmitted.

19, 20

Messages successfully received.

21, 22

ACKs received.

23, 24

ACKs sent.

25, 26

NACKs received.

27, 28

NACKs sent.

29

Replies that were lost because they could not be delivered over the link. Undeliverable commands can be signalled to the user, because the is located in PC memory, and can always be reached. If a reply message cannot be delivered over the link, there is no way to signal the user (of that message) who is also on the link that this node cannot signal a reply. The local user is not concerned with the problems of the remote user and can take no meaningful action, so there is not much to do but destroy the message and count it.

30

Timeouts preset.

31

Values set by diagnostic commands or set by default on power-up.

32

ENQs preset.