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 23

Bulletin 1771 Communication Controller Module (Cat. Nos. 1771-KE, -KF) User's Manual, pages 171 to 180

Pages 171 to 180 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 171 read from a scan by OCR; it may hold reading errors

Page 7-15 Error Reporting

7.2.2.4 PLC/PLC-2 Read Commands

EXT STS Code STS Code Error (if applicable) (if applicable) Code Possible Causes 10 81 1. The required 2-byte ADDR field and 1-byte SIZE field are missing in the command message. 2. The ADDR value is odd (that is, it does not specify a word address). 3. The value of SIZE is 0 (zero). 4. The value of SIZE is greater than 244. 5. The SIZE value specifies an odd number of bytes. 30 83 Same as for PLC/PLC-2 write commands above. 40 84 Same as for PLC/PLC-2 write commands above. 50 85 1. Destination file does not exist. 2. Destination file is too small. 3. Source file is more than 65,535 words long. 70 87 PLC-3 processor is in program mode. 7.2.2.5 PLC/PLC-2 Bit Write Commands EXT STS Code STS Code Error (if applicable) (if applicable) Code Possible Causes 10 81 Incomplete bit discription because the number of bytes after the TNSW is not a multiple of 4. 30 83 Same as for PLC/PLC-2 word write commands above. 40 84 Same as for PLC/PLC-2 word write commands above. 50 85 1. Destination file does not exist. 2. Destination bits do not exist in destination file. 3. Length of source file is greater than 65,535 words. 60 86 Keyswitch setting at local PLC-3 processor prohibits access. 70 87 Local PLC-3 processor is in program mode.

Page 172 read from a scan by OCR; it may hold reading errors

Page 7-16 Error Reporting

7.2.2.6

PLC-3 Write Commands

EXT STS Code STS Code Error (if applicable) (if applicable) Code Possible Causes 10 81 1. There are not at least 2 bytes of data after the end of the block address. 2. There is an odd number of data bytes after the end of the block address. 3. Sum of packet offset and size values specifies more than 65,535 words. 4. Sum of packet offset and size is greater than total transaction size. 30 83 The local 1775-KA module has executed a shutdown request. 40 84 Backplane error (either memory parity or timeout/disconnect). 60 86 Keyswitch setting disallows access. 70 87 Local PLC-3 is in program mode. 1 FO 231 There is an error in converting the block address (major section > 63, context > 15, or section > 15). 2 FO 232 Three or fewer addressing levels specified in for a PLC-3 word address. 3 FO 233 Conversion of a file address to a block address resulted in more than 9 addressing levels. FO 234 Symbolic address not found. FO 235 Symbolic address is of length zero or is longer than 8 bytes. FO 236 1. Destination file not found. 2. Destination address does not point to a word (for word-range writes) or a file (for file writes). Destination address specifies more levels than required. First word of destination location does not exist. 7 FO 237 Any word in the total transaction does not exist in the destination file. 2. Fora file write, the source and destination files are not the same size. 8 FO 238 Destination file size changed between packets of a multi-packet transaction and became too small for the total transaction. 9 FO 239 There are more than 65,535 words in the source file. A FO 240 Sum of total transaction size and the word level of PLC-3 addressing is greater than 65,535. B FO 241 Source station does not have access to the destination file.

Page 173 read from a scan by OCR; it may hold reading errors

Page 7-17 Error Reporting

7.2.2.7 PLC-3 Read Commands

EXT STS Code STS Code Error (if applicable) (if applicable) Code Possible Causes 81 1. There is more than one byte of data after the byte address. 2. Number of bytes to read is odd. 3. Number of bytes to read is zero. 4. Number of bytes to read is greater than the maximum allowed in a reply packet (244). 5. Sum of packet offset and size of data in words is greater than 65,535. 6. Sum of packet offset and size of data in words is greater than the total transaction size. 83 The local 1775-KA module has executed a shutdown request. 84 Backplane error (memory parity or timeout/disconnect).

87 Local PLC-3 in program mode.

1 FO 231 Error in converting the block address (major section > 63, context > 15, section > 15). 2 FO 232 Three or fewer addressing levels specified for a PLC-3 word address. 3 FO 233 Conversion of a file address to a block address resulted in more than 9 addressing levels. 4 FO 234 Symbolic address not found. FO 235 Symbolic address is of length zero or more than 8 bytes. FO 236 1. File not found.

2. Destination address does not have enough levels to specify a PLC-3 word (for word-range reads) or a file (for file reads).

The PLC-3 address specifies more levels than required. Word specified by the PLC-3 address does not exist.

7 FO 237 1. Any of the destination words in the destination file do not exist. 2. Fora file read, the source and destination files are not the same size. 8 FO 238 The file size decreased between packets of a multi-packet transaction and became too small for the total transaction. 9 FO 239 File is larger than 65,535 words. A FO 240 Sum of total transaction size and PLC-3 address is greater than

65,535.

Page 174 read from a scan by OCR; it may hold reading errors

Page 7-18 Error Reporting

7.2.2.8

PLC-3 Bit Write Commands

Remote Error Codes

7.3

Internal Error Counter

EXT STS Code STS Code Error (if applicable) (if applicable) Code Possible Causes 10 81 More than 4 bytes of data exist after the PLC-3 address in the command message. 30 83 The local 1775-KA module has executed a shutdown request. 40 84 Backplane error (memory parity or timeout/disconnect). 60 86 Keyswitch setting disallows access to file. 70 87 Local PLC-3 in program mode. 1 FO 231 Error in converting the block address (major section > 63, context > 15, section > 15). 2 FO 232 Three or fewer addressing levels specified for a PLC-3 word address. 3 FO 233 Conversion of a file address to a block address resulted in more than 9 addressing levels. FO 234 Symbolic address not found. FO 235 Symbolic address is of length zero or more than 8 bytes. 6 FO 236 1. File not found. 2. Desti nation address does not specify a PLC-3 word. 3. The PLC-3 address specifies more levels than required. 4. Word specified by the PLC-3 address does not exist. 9 FO 239 File is larger than 65,535 words. FO 241 Remote station does not have access to the destination file. 7.2.3. Remote error codes are those reported in a reply message from a remote station that received a command message from the local PLC-3 station. These error codes are stored under user symbol ERROR in the local PLC-3 station.

The meaning of a particular remote error code will vary, depending on the type of communication interface module at the remote station. For example, if the remote station is a PLC-3 processor with a 1775-KA interface module, the remote error codes will have the meanings listed above. For the meanings of other remote error codes, refer to section 7.1, errors 80-89.

These counters can be read through the diagnostic read command. They are available only to a device that can format the diagnostic commands. PC user program is unable to set up a diagnostic command. They are used to record events of interest for debugging new highway software and for longer term reliability analysis. The counters occupy a block of the internal scratch RAM. Most are single byte counters that wrap around to zero when they overflow.

Page 175 read from a scan by OCR; it may hold reading errors

Page 7-19 Error Reporting

7.3.4 1771-KA/1774-KA Data Highway Counters (only)

These counters provide a useful tool for diagnosing problems. If a troubleshooter has available a device that will read the internal error counters of a module, the ACK timeout counter and the false poll counter will be useful for diagnosing bad cabling or a noisy or loaded highway installation. Also useful is the ratio of messages transmitted (successfully returned an ACK from the remote station) versus the commands sent (but not necessarily completed).

NOTE: Because of differences in revision levels in a given module and variations from module to module, the user must first request the location of these counters by transmitting to the module a diagnostic status command, Then, based on the address returned, the number of the following counters can be used as an offset to calculate the location of the desired counter, or to calculate how many counter values he wants returned. This information is then used to format a diagnostic read command, and the reply from that will contain the data stored in the counters. Also, the counters are divided into two categories: Data Highway and RS-232, and they apply to activity on their respective parts. Obviously, the 1771-KA will only have Data Highway counters. Most modules will have both.

The second section lists internal error counters, bytes of information stored in RAM in each Data Highway module. These numbers can only be read by issuing a diagnostic read command from a device connected to one of the modules that supports an RS-232-C port.

o

CRC error on ACK.

ACK timeout. Counts the number of times that the sender timed out waiting for an acknowlegement. This is a common error, and will be one of 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 show up often if the receiver or transmitter circuitry on a module is marginal, or if the cable connections are loose.

2. Contention. Counts the number of times contention was detected. This will also show up quickly on noisy or overlength cables. This counter corresponds to error 93. If 93 is a common error on a highway system then expect 37 (start bit timeout) errors also, since any reply that experiences contention will not be re-tried.

3. Bad ACK status. Counts the number of times the ACK was successfully received but contained a nonzero 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 code.

Page 176 read from a scan by OCR; it may hold reading errors

Page 7-20 Error Reporting

10.

11.

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 that the receiving station’s memory was full. Each time this happens the message is placed on a waiting queue for a half second. Each message will be re-tried five times for memory overflow before it is returned to sender.

Poll timeout. Counts the number of times that 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 does not hear it, the old master will record a false poll and continue polling. The mew 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 should occur only if a poll timeout is imminent (a master has had mastership for more than 170 ms) and the station has disabled its address recognizer to test for any valid traffic.

Frame too small. Counts the number of frames that were rejected because the header was incomplete. This should only be counted because of undebugged software or in the unlikely event that a bad frame fooled the CRC checker.

Wrong destination address. Counts the number of frames that were rejected because the destination address was incorrect. This can have the same cause as #8. 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 will result in a memory overflow error when the next message is received.

Page 177 read from a scan by OCR; it may hold reading errors

Page 7-21 Error Reporting

12.

13.

14.

15.

16.

17.

18. 19.

20. 21.

22. 23.

24. 25.

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.

Transmitted messages. A 16-bit counter that records the number of messages successfully transmitted.

Received messages. A 16-bit counter that records the number of messages successfully received.

Commands send. A 16-bit counter that records the number of command messages that were successfully generated as the result of a start bit being set. Some of these messages may not be recorded as being transmitted either because they were not successfully sent or because they were sent to the same station that originated them.

Messages executed. A 16-bit counter that records the number of command messages that were received to be executed from the highway. This count does not depend on whether execution was successful. For each message counted as received a reply message is sent.

Replies received. A 16-bit counter that records the number of reply messages that were received that resulted in the setting of a done or remote error bit.

Page 178 read from a scan by OCR; it may hold reading errors

Page 7-22 Error Reporting

7.3.2 1771-KC

26. 27. 28.

29.

30.

Breaks. Counts the number of breaks sent to the IT.

Resyncs. Counts the number of times the PC driver has to resyncronize with the PC. This counter will always count at least one resync (because of powerup).

IT errors. Counts down modulo 5 the number of errors on the KA-to-IT cable. Every time this count reaches zero the KA does a handshake to reset the forced I/O table in the PC.

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

NOTE: The intelligent device can read the memory of the 1771-KC it is hooked to by setting the destination equal to the module address.

0. 1.

Bad CRC on ACK.

ACK timeout. Counts the number of times that the sender timed out waiting for an acknowlegement. This is a common error, and will be one of 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 show up often if the cable connections are loose.

Contention. Counts the number of times contention was detected. This will also show up 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 nonzero status code other than memory full.

Returned messages. Counts the number of times the highway driver returns a message to sender with a non-zero status code because a reply was not received from a remote station. Each count corresponds to one local error bit set or one reply message lost.

Page 179 read from a scan by OCR; it may hold reading errors

Page 7-23 Error Reporting

10.

11.

12.

13.

Transmit: memory full. Counts the number of times that the receiving station’s memory was full. Each time this happens the message is placed on a waiting queue for a half second. Each message will be re-tried five times for memory overflow before it is returned to 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 staion 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 does not hear it the old master will record a false poll and continue polling, and the mew 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 should only occur if a poll timeout is imminent (a master has had mastership for more than 170 ms) and the station has disabled its address recognizer to test for any valid traffic. The probability of errors in #8, 9 and 10 increases substantially.

Frame too small. Counts the number of frames that were rejected because the header was incomplete. This should only be counted because of undebugged software or in the unlikely event that a bad frame fooled the CRC checker.

Wrong destination address. Counts the number of frames that were rejected because the destination address was incorrect. This can have the same cause as #8. 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 will result in a memory overflow error when the next messages 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.

Page 180 read from a scan by OCR; it may hold reading errors

Page 7-24 Error Reporting

14.

15.

16.

17.

18. 19.

20. 21. 22. 23. 24, 25. 26. 27. 28. 29.

30.

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 that 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 suceptible to this error (stations 36, 76, and 176 for example). These numbers will depend on highway configurations.

Transmitted messages. A 16-bit counter that records the number of messages successfully transmitted.

Received messages. A 16-bit counter that records the number of messages successfully received.

Number of ACKs received Not used

Number of ACKs

Not used

Number of NAKs received Not used

Number of NAKs sent Not used

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

Timeout preset