The text of a manual · part 16 of 31
DF1 Protocol and Command Set Reference Manual: 8 - Message Packet Status Codes (STS, EXT STS)
Pages 128 to 138 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 128
Chapter
8
Message Packet Status Codes (STS, EXT STS) Use this chapter to help interpret status codes that appear in asynchronous link message packets. You use asynchronous-link status codes to determine the status of a command sent from your computer to another device on your DH, DH+, or DH485 link. Asynchronous link status codes are passed in the message packet in these bytes: • status (STS) byte • extended status (EXT STS) byte (for some commands) This chapter contains these sections: Section
Page
STS Byte
8-2
EXT STS Byte
8-3
Remote STS and EXT STS Codes
8-5
Publication 1770-6.5.16 - October 1996
Page 129
8–2
Message Packet Status Codes (STS, EXT STS)
STS Byte
The STS byte provides information about the execution or failure of the corresponding command that was transmitted from the computer. If the reply returns a code of 00, the command was executed at the remote node. All other codes can be divided into two types: This error type
Occurs when local the local node is unable to transmit a message to the remote node. The local node interface turns the command around, stuffs the STS byte with the appropriate code, and returns it to the computer.
remote the command is successfully transmitted to a remote node, but the remote node is unable to execute the command. The remote node formats a reply message with the appropriate remote error code in the STS byte.
The STS byte is divided into two nibbles (4 bits each): Bit:
7 contains errors found by the remote node receiving the command
6
5
4
Remote Error Nibble
3
2
1
0
Local Error Nibble contains errors found by the local node
Local STS Error Codes The local STS error code nibble contains errors found by the local node. Error codes (in hex) that you may find in the local error code nibble include: Code
Explanation
00
Success no error
01
DST node is out of buffer space
02
Cannot guarantee delivery: link layer (The remote node specified does not ACK command.)
03
Duplicate token holder detected
04
Local port is disconnected
05
Application layer timed out waiting for a response
06
Duplicate node detected
07
Station is offline
08
Hardware fault
Local STS codes 09 through 0F (hex) are not used.
Publication 1770-6.5.16 - October 1996
Page 130
Message Packet Status Codes (STS, EXT STS)
8–3
Remote STS Error Codes The remote STS error code nibble contains errors found by the remote node receiving the command. Error codes (in hex) that you may find in the remote error code nibble of the STS byte include:
EXT STS Byte
Code
Explanation
00
Success no error
10
Illegal command or format
20
Host has a problem and will not communicate
30
Remote node host is missing, disconnected, or shut down
40
Host could not complete function due to hardware fault
50
Addressing problem or memory protect rungs
60
Function not allowed due to command protection selection
70
Processor is in Program mode
80
Compatibility mode file missing or communication zone problem
90
Remote node cannot buffer command
A0
Wait ACK (1775-KA buffer full)
B0
Remote node problem due to download
C0
Wait ACK (1775-KA buffer full)
D0
Not used
E0
Not used
F0
Error code in the EXT STS byte
You have an EXT STS byte if your STS code is F0 (hex). Definitions for this byte vary, depending on the command code (or type of command) in your message packet: CMD code (hex)
Type of code in EXT STS byte
Refer to
00 to 08
No EXT STS byte not applicable
0F
DH/DH+ codes page 8-4
0B, 1A, or 1B
DH485 codes page 8-5
Publication 1770-6.5.16 - October 1996
Page 131
8–4
Message Packet Status Codes (STS, EXT STS)
EXT STS Codes for CMD 0F Hex Code
Explanation
0 1 2 3 4 5 6 7 8
Not used A field has an illegal value Less levels specified in address than minimum for any address More levels specified in address than system supports Symbol not found Symbol is of improper format Address doesn't point to something usable File is wrong size Cannot complete request, situation has changed since the start of the command Data or file is too large Transaction size plus word address is too large Access denied, improper privilege Condition cannot be generated - resource is not available Condition already exists - resource is already available Command cannot be executed Histogram overflow No access Illegal data type Invalid parameter or invalid data Address reference exists to deleted area Command execution failure for unknown reason; possible PLC-3 histogram overflow Data conversion error Scanner not able to communicate with 1771 rack adapter Type mismatch 1771 module response was not valid Duplicated label Remote rack fault These codes are for passthru from a Timeout DH+ link to a remote I/O link. Unknown error File is open; another node owns it Another node is the program owner Reserved Reserved Data table element protection violation Temporary internal problem
9 A B C D E F 10 11 12 13 14 15 16 17 18 19 22 23 24 1A 1B 1C 1D 1E 1F
Publication 1770-6.5.16 - October 1996
Page 132
Message Packet Status Codes (STS, EXT STS)
8–5
DH485 EXT STS Codes
Remote STS and EXT STS Codes
Hex Code
Explanation
07H 0BH 0CH 0EH 12H 14H 19H 1AH 1BH
Insufficient memory module size (0000h is returned) Access denied, privilege violation Resource not available or can not do CMD can not be executed Invalid parameter Failure during processing Duplicate label File open by another node + owner's local node address, 1 byte Program owned by another node + program owner's local node address, 1 byte
For these codes remote STS codes from a PLC-2 or 1774-PLC processor
See section below remote STS and EXT STS codes from a PLC-3 processor page 8-6
Remote STS Codes from a PLC-2 or 1774-PLC Processor STS codes that may be sent from your PLC-2 (or 1774-PLC) processor to your computer include: STS Code
Explanation➀
10
The command message (command code, sub-command code, size of the command or requested reply size) was incorrect. There are verification errors within the host PLC processor. A condition exists at the PLC-2 processor that requires manual intervention, such as: •the cable between the module and the processor is unplugged •the processor is faulted A communication error on the cable or on backplane access between the module, and the processor has aborted message execution. An attempt to access an illegal address in the PLC-2 processor has aborted message execution. Illegal access may result from access outside: •the data table as defined by the PLC-2 •a memory access window (protected commands only) Illegal access may also mean that the PLC-2 processor has attempted to communicate with a PLC-3, PLC-5, or an SLC 500 processors that does not have the proper compatibility file. Execution of a command at the PLC-2 processor is disabled by a switch option. The PLC-2 processor is in Program or Remote Program mode, or the 1771-KA is in Download mode. Alternatively, this code can also mean that the PLC-2 processor is not in Program or Remote Program mode. Execution of protected commands at the PLC-2 processor is inhibited because its PROG light is on.
20 30
40 50
60 70
80 ➀
The error sets the remote error bit for the associated rung.
Publication 1770-6.5.16 - October 1996
Page 133
8–6
Message Packet Status Codes (STS, EXT STS)
Remote STS and EXT STS Codes from a PLC-3 Processor A PLC-3 interface module (1775-KA,-S5,-SR5) inserts the reply error code in the STS byte of any reply message packet it returns to a remote node (your computer). The meaning of each error code depends on the command message received from the computer. The following pages describe the error conditions that the various commands can generate. The error codes are listed according to the decimal value that is stored at the computer. When a remote node transmits one of these commands, the local PLC-3 interface module may issue a reply message that contains one of the error codes listed under that command. Error codes contained in the EXT STS bytes are only available if either another PLC-3 or computer originates the command message. Command
EXT STS Code
STS Code
Explanation diagnostic read
-
10
-
50 diagnostic status
-
40
•A two-byte ADDR field and a one-byte SIZE field are missing after the FNC byte in the command message. •The number of bytes of data requested in the SIZE field is greater than the maximum number allowed per reply packet (244), or SIZE is 0. The command is an illegal request to read from the PLC-3 interface module's backplane window. A backplane error occurred during determination of the physical address of the end of the ladder diagram program or of the end of user memory.
PLC/PLC-2 word write
-
10
•A two-byte ADDR field is expected after the TNS word, but only one byte is present. •There is an odd number of data bytes in the command packet. •The ADDR value is odd (that is, it does not specify a word address).
-
30
The local PLC-3 interface module has executed a shutdown request to the local PLC-3 processor.
-
40
Local PLC-3 backplane error (either memory parity, timeout, or disconnect).
-
50
•The destination file does not exist in PLC-3 memory. •The destination word does not exist in the destination PLC-3 file. •The length of the destination file is greater than 65,535 words.
-
60
Local keyswitch setting prohibits writing into desired destination file.
-
70
The local PLC-3 processor is in Program mode. There may be a major system fault.
Publication 1770-6.5.16 - October 1996
Page 134
Message Packet Status Codes (STS, EXT STS)
8–7
Command
EXT STS Code
STS Code
Explanation
PLC/PLC-2 read
-
10
•The required two-byte ADDR field and one-byte SIZE field are missing in the command message. •The ADDR value is odd (that is, it does not specify a word address). •The value of SIZE is 0. •The value of SIZE is greater than 244. •The SIZE value specifies an odd number of bytes.
-
30
-
40
-
50
-
70 10
-
30
-
40
-
50
-
60
-
70
The local PLC-3 interface module has executed a shutdown request to the local PLC-3 processor. Local PLC-3 backplane error (either memory parity, timeout, or disconnect). •A destination (DST) file does not exist. •The DST file is too small. •The source (SRC) file is more than 65,535 words long. PLC-3 processor is in Program mode. Incomplete bit description because the number of bytes after the TNS word is not a multiple of 4. The local PLC-3 interface module has executed a shutdown request to the local PLC-3 processor. Local PLC-3 backplane error (either memory parity or timeout/disconnect). •A DST file does not exist. •The DST bits do not exist in the destination file. •Length of the SRC file is greater than 65,535 words. The keyswitch setting at local PLC-3 processor prohibits access. The local PLC-3 processor is in Program mode.
PLC/PLC-2 bit write
Publication 1770-6.5.16 - October 1996
Page 135
8–8
Message Packet Status Codes (STS, EXT STS)
Command
EXT STS Code
STS Code
Explanation
PLC-3 word write
-
10
-
30
-
40
-
60
1
70 F0
2
F0
3
F0
4 5
F0 F0
•There are not at least two bytes of data after the end of the block address. •There is an odd number of data bytes after the end of the block address. •The sum of packet offset and size values specifies more than 65,535 words. •The sum of packet offset and size is greater than total transaction size. The local PLC-3 interface module has executed a shutdown request. A backplane error (either memory parity, timeout, or disconnect) has occurred. The processor keyswitch setting does not allow access. The local PLC-3 processor is in Program mode. There is an error in converting the block address (major section > 63, context >15, or section >15). Three or fewer addressing levels specified for a PLC-3 word address. The conversion of a file address to a block address resulted in more than nine addressing levels. The symbolic address was not found. The symbolic address is of length zero or is longer than eight bytes.
6
F0
7
F0
8
F0
9 A
F0 F0
B
F0
Publication 1770-6.5.16 - October 1996
•The DST file was not found. •The DST address does not point to a word (for word-range writes) or a file (for file writes). •The DST address specifies more levels than required. •The first word of the DST location does not exist. •Any word in the total transaction does not exist in the DST file. •For a file write, the SRC and DST files are not the same size. The DST file size changed between packets of a multi-packet transaction and became too small for the total transaction. There are more than 65,535 words in the SRC file. The sum of total transaction size and the word level PLC-3 addressing is greater than 65,535. The source node does not have access to the DST file.
Page 136
Message Packet Status Codes (STS, EXT STS)
8–9
Command
EXT STS Code
STS Code
Explanation
PLC-3 physical reads
-
10
•There is more than one byte of data after the byte address. •The number of bytes to read: - is an odd number. - equals zero. - is greater than the maximum allowed in a reply packet (244). •The sum of packet offset and size of data in words is greater than 65,535. •The sum of packet offset and size of data in words is greater than the total transaction size.
-
30
-
40
1
70 F0
2
F0
3
F0
4 5
F0 F0
The local PLC-3 interface module has executed a shutdown request. A backplane error (memory parity, timeout, or disconnect) has occurred. The local PLC-3 processor is in Program mode. There was an error converting the block address (major section > 63, context > 15, section > 15). Three or fewer addressing levels specified for a PLC-3 word address. The conversion of a file address to a block address resulted in more than nine addressing levels. The symbolic address was not found. The symbolic address is zero or more than eight bytes.
6
F0
7
F0
8
F0
9 A
F0 F0
•The file was not found. •DST 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. •The word specified by the PLC-3 address does not exist. •Any of the DST words in the DST file do not exist. •For a file read, the SRC and DST files are not the same size. The file size decreased between packets of a multi-packet transaction and became too small for the total transaction. You tried to read or write past the end of a file. Start bytes.
Publication 1770-6.5.16 - October 1996
Page 137
8–10
Message Packet Status Codes (STS, EXT STS)
Command
EXT STS Code
STS Code
Explanation
PLC-3 bit write
-
10
-
30
-
40
1
60 70 F0
2
F0
3
F0
4 5
F0 F0
More than four bytes of data exist after the PLC-3 address in the command message. The local PLC-3 interface module has executed a shutdown request. A backplane error (memory parity, timeout, or disconnect) has occurred. The keyswitch setting does not allow access to file. The local PLC-3 in the Program mode. There was an error in converting the block address (major section > 63, context > 15, section > 15). Three or fewer addressing levels specified for a PLC-3 word address. Conversion of a file address to a block address resulted in more than 9 addressing levels. The symbolic address was not found. The symbolic address is zero or more than eight bytes.
6
F0
9 B
F0 F0
Publication 1770-6.5.16 - October 1996
•File not found. •The DST address does not specify a PLC-3 word. •The PLC-3 address specifies more levels than required. •The word specified by the PLC-3 address does not exist. The file is larger than 65,535 words. The remote node does not have access to the DST file.
Page 138
Hi Module Diagnostics Ei
Diagnostic Counters, Chapter 9
Diagnostic Status Information, Chapter 10