The text of a manual · part 19 of 23
Bulletin 1771 Communication Controller Module (Cat. Nos. 1771-KE, -KF) User's Manual, pages 181 to 190
Pages 181 to 190 of 228
The original document is the PDF (9.6 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 1771-KE
Page 181
Page 7-25 Error Reporting
7.3.3 1771-KF Error Counters
31. NAK preset. Values set by diagnostic commands or set by default on power-up
32. ENQ preset
DATA HIGHWAY COUNTERS
0.
Bad CRC or I/O error on ACK. Same causes as bad CRC on messages.
ACK timeout. Counts the number of times that the sender timed out waiting for an acknowledgment. This is a common error, and will be on the first to respond to reflections or low level noise on the highway. It seems to be especially sensitive to problems on longer cables. It will also appear often if the receiver or transmitter circuitry on a module is marginal, or if the cable connections are loose.
Contention. Counts the number of times contention was detected. This will also appears quickly on noisy or overlength cables. This counter corresponds to error 93.
Bad ACK status. Counts the number of 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 possibly when debugging new computer programs.
Returned messages. Counts the number of times the highway driver returns a message to sender. Each count corresponds to one local error bit set or one reply message lost.
Transmit: memory full. Counts the number of times the highway driver returns a message to sender. Each time this happens the message is placed on a waiting queue for a half second. Each message will be re-tried five times before it is returned to the sender.
Poll timeout. Counts the number of times this station grabbed mastership of the highway because it timed out while waiting to hear a valid frame. On a highway that has just been powered up there should be only one station that has this counter incremented.
False poll. Counts the number of times that this station has tried to relinquish mastership and the station that was expected to take over failed to respond. This happens often on a noisy highway because the noise is mistaken for a poll response, and the wrong station is selected as the next master. When this occurs the old master resumes polling. It also can happen on a long highway if the poll response is very attenuated and is not picked up by the carrier detect circuit. If the new station does respond but the old master
Page 182
Page 7-26 Error Reporting
10.
11.
12.
13.
14.
15.
16.
does not hear it the old master will record a false poll and continue polling, and the new master will start polling also. This usually leads to the second station detecting contention and relinquishing.
Receiver heard status. Counts the number of times that the receiver received a status frame instead of a message frame. (This counter will never be incremented because the message size is checked first, and all status messages are too small to be accepted.
Frame too small. Counts the number of frames that were rejected because they were less than 6 bytes long. This counter will record all status frames that were received by a station that disabled its address recognizer in the second step of the mastership timeout process. This will happen often on a heavily loaded highway.
Wrong destination address. Counts the number of frames that were rejected because the destination address was incorrect. This can have the same cause as #9. This counter also detects frames that have the same source and destination address.
Receiver: memory full. Counts the number of 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.
Bad frame status. Counts the number of frames that were rejected because of a bad CRC. This error is very common on a noisy highway.
Buffer overflow. Counts the number of times a message was received that contained more than 250 bytes.
Memory overflow. Counts the number of times a message was received when there was no buffer space allocated for it. This usually follows a memory full error.
Retransmits. Counts the number of 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/reply bit are assumed to be duplicates.
Aborts. Counts the number of aborts received. The HDLC abort signal is not used on the Data Highway, but can be detected by the SIO in certain circumstances. Some stations whose addresses match the ringing pattern after a transmitter shutoff can be particularly susceptible to this error (stations 36, 76, and 176 for example). These numbers will depend on highway configurations.
Page 183
Page 7-27 Error Reporting
17. Transmitted messages. A 16-bit counter that records the number of messages successfully transmitted.
18.
19. Received messages. A 16-bit counter that records the number of messages successfully received.
20. MODEM CHANNEL COUNTERS
21, 16-bit count of the number of times the station attempted to send a message.
22,
23. 16-bit count of the number of messages that were successfully transmitted and ACKed.
24. 25. 16-bit count of the number of ACKs that were received.
26.
27, Number of ACKs successfully passed from the receiver’s separator to the transmitter.
28. Number of NAKs received.
29. Number of NAKs passed from the separator to the transmitter.
30. Number of timeouts waiting for a response. 31. Number of ENQs sent. 32. Number of messages that could not be successfully sent.
33. Number of reply messages that could not be forwarded and which were destroyed.
34. 16-bit count of messages received. 35.
36. 16-bit count of ACKs sent.
37.
38. Number of NAKs sent.
39. Number of ENQs received.
40. Number of retransmissions received and ACKed. A retransmission is a message that has a transparent word, command, and source that match the previous message.
41. Number of STX (full-duplex mode) or SOH (half-duplex mode) received. This is in effect a count of the number of messages that were started.
Page 184
Page 7-28 Error Reporting
7.3.4 1771-KG Error Counters
42. Number of messages, characters, or message fragments that were ignored.
43. Number of messages that were aborted by receipt of a DLE ENQ.
44. Number of messages that were aborted by the receipt of an unexpected control code other than DLE ENQ.
45. Number of times the DLE ACK response was sent but no buffer space for the next message.
46. Number of times DLE NAK was sent because there was no buffer.
47, Number of broadcast messages received.
48. Number of broadcast messages that were successfully received.
49. Number of messages seen that were not for this station. 50. Number of DLE EOTs sent.
51. Number of calls received.
52. Number of times that phone was hung up by the module. 53. Number of times that DCD was lost.
54. Number of times that the phone was hung up because of a DCD timeout.
MODEM CHANNEL COUNTERS
0. 16-bit count of the number of times the station attempted to send a message.
2. 16-bit count of the number of messages that were successfully transmitted and ACKed.
3,
4, 16-bit count of the number of ACKs that were received.
5.
6. Number of ACKs successfully passed from the receiver’s separator to the transmitted. Number of NAKs received
8. Number of NAKs passed from the separator to the transmitter.
9. Number of timeouts waiting for a response. 10. Number of ENQs sent. 11. Number of messages that could not be successfully sent.
12. Number of reply messages that could not be forwarded and which were destroyed.
13. 16-bit count of messages received.
Page 185
Page 7-29 Error Reporting
14. 15. 16. 17. 18. 19.
20.
21.
22.
23.
24,
25.
26. 27.
28. 29. 30. 31. 32. 33, 34.
16-bit count of ACKs sent.
Number of NAKs sent. Number of ENQs received.
Number of retransmissions received and ACKed. A retransmission is a messge has a transparent word, command, and source that match the previous message.
Number of STX (full-duplex mode) or SOH (half-duplex mode) received. This is in effect a count of the number of messages that were started.
Number of messages, characters, or message fragments that were ignored.
Number of messages that were aborted by receipt of a DLE ENQ.
Number of messages that were aborted by the receipt of an unexpected control code other than DLE ENQ.
Number of times the DLE ACK response was delayed because of a lack of buffer space for the next message.
Number of times the reply was changed from ACK to NAK because unexpected characters (any besides DLE ENQ) were received while waiting for memory to free up.
Number of broadcast messages received.
Number of broadcast messages that were successfully received.
Number of messages seen that were not for this station. Number of poll messages received for this station. Number of DLE EOTs sent.
Number of calls received.
Number of times that phone was hung up by the module. Number of times that DCD was lost.
Number of times that the phone was hung up because of a DCD timeout.
INTERVAL EVENT COUNTERS
30. 36. 37. 38. 39.
Number of messages routed to RS-232 port. Number of commands routed to command executor. Number of replies routed to reply processor. Number of messages sent to self.
Number of routing errors on inbound messages.
Page 186
Page 7-30 Error Reporting
7.3.5 1775-KA Diagnostic Counters
40. 41, 42.
Number of routing errors on outbound messages. Number of messages with incorrect network address.
16-bit count of messages sent by command initiator.
43.
44.
16-bit count of commands received by command executor.
45.
46.
16-bit count of replies sent by command executor.
47.
48.
16-bit count of replies received by command initiator.
49,
50. 51.
Number of breaks sent to IT.
Number of resyncs sent to PC.
DATA HIGHWAY PORT
1.
17 18 20 22
Bad CRC on acknowledgment (Local error “A’’) apy mowledgment before timeout occurred (Local error Contention (while master, detected message transmission by another station) Acknowledgement contained an error (Local error “C’”D) Local errors (Sum of A, B, and C above) Waits (no receive buffer space at destination station) Timed out (master failed) False polls (failure to transfer) Received acknowledgment when not master
. Message size too small (less than 5 bytes)
. Incorrect DST, or SRC = DST
. Memory not available for receive buffer
. Received message has bad CRC value
. Message too long
. Message arrived when no buffer space left
. Retransmissions of previously received message
. Aborts (result of line noise)
,19. Messages successfully transmitted
,21. Messages successfully received
,23. Command messages sent
Page 187
Page 7-31 Error Reporting
7.4
Transmissions Between Computer and Fuil- Duplex Modules
7.4.1 PLC-2/PLC
24,25. Reply messages received 26,27. Command messages received 28,29. Reply messages sent MODEM PORT
1,2. Command messages sent
3,4. Reply messages received
5,6. Command messages received 7,8. Reply messages sent
9,10, ACKs received
11,12. ACKs sent
13,14. NAKs received
15,16. NAKs sent
17. Undeliverable reply messages 18,19. Computer link timeout (preset to 500 msec)
20. Maximum number of NAKs accepted per message (preset to 10)
21. Maximum number of ENQs sent per message (preset to 10) 22, Current NAK count 23. Current ENQ count
The full-duplex protocol (and its half-duplex variation) provides for a message packet that contains a reply to have a status byte reserved in its header. This byte (known as the STS byte) provides information about the execution or failure of the corresponding command that was transmitted from the computer. A reply that returns zeros in the STS byte means the command was executed at the remote station. Non-zero status can be divided into two categories: remote errors and local errors. Remote errors mean that a command was successfully transmitted by the Data Highway controller to another Data Highway station, but the remote station was unable to execute the command. The remote station then formatted a reply with the STS byte containing some error code. Local errors mean that the Data Highway controller was unable to transmit the messge to the remote station. The local station then turns the command around, stuffs the STS byte with the appropriate error code, and returns it to the sender (computer). The error code format is as follows:
Page 188
Page 7-32 Error Reporting
7.4.2 PLC-3
When the error is local, the high nibble (7-4) is zero, and the reference to a particular code is in the low nibble as a Hex value. When the error is remote, the low nibble is zero and the error code is in the high nibble. Since the full-duplex message packet is actually transmitted on the highway itself (in an encapsulated form), the contents of the STS byte is what other (PC) highway stations use to generate the error word in the PC application program. To decode the contents of the STS byte, refer in section 1 to error codes (80-8B) for remote errors and error codes (90-97) for local errors.
For remote station errors, make sure the error codes correspond to the processor type at that station (either PLC/PLC-2 or PLC-3).
Match the last digit of the error code with value in hex in the appropriate nibble. For example, if the STS byte contains 04H, the low nibble = 4 and the high nibble is 0, indicating a local error. Referring to the local error codes (90-01), 04H matches to error 94 (contention on the highway).
NOTE: With PLC-2 compatibility mode for the 1775-KA, PLC-2 level commands addressed to a PLC-3 will only return errors as described above, that is, in the STS byte format.
In addition to the above, PLC-3 can also create a second layer of error codes, relative to PLC-3 type commands (CMD byte = 15). If the command is a PLC-3 level command addressed to a remote PLC-3, then the remote error returned from the 1775-KA will have an additional status byte stuffed into the data area called an EXT STS.
If there is a non-zero error value in the EXT STS byte, the STS byte will contain FOH (which, in effect, functions as a flag that there has been an error value generated). If the STS byte is zero, then the EXT STS will also be zero.
The following is a listing of relevant PLC-3 status codes for both the STS byte and the EXT STS byte:
Page 189
Page 7-33 Error Reporting
Hex Bits Value Meaning 04 to 0 No error 07 in STS byte 1 1, Iliegal command or command size 2. Specified data size (number of bytes) is zero, odd, or greater than 512 4 PLC-3 backplane fault occurred during message execution 5 1. Read/write file does not exist. 2. PLC-2 addressing violation (read/write file too small) 3. Read/write file overflow (more than 65,535 words) 4. Diagnostic read command attempted to read the PLC-3 backplane window 5. Invalid physical address 6. Attempted to write data past the end of memory 7. Attempted to read data from beyond the end of user program memory 6 1. Memory protect keyswitch disallows access into file 2. Upload/download option is not enabled at the destination station 7 PLC-3 in Program Mode 04 to 8 No file assigned to source station 07 in STS byte F Extended error format, look in the EXT STS byte for the error code EXT STS 1 Error in conversion of block address byte 2 Improper format for PLC-3 word address 3 Error in conversion of file address 4 Invalid symbol 5 Improper symbol specification format 6 Invalid PLC-3 word address 7 Improper file size 8 File size changed during message execution 9 File size too large A Message size too large B Write privileges not granted to remote station Cc Upload/download access is not available D Requesting station already has upload/download access privileges E Shutdown request could not be executed F Requesting station does not have upload/download access privileges