268 Rockwell Automation Publication 1766-UM001O-EN-P - September 2021
Appendix F MicroLogix 1400 Distributed Network Protocol
Word offset 7, 27 and 47 reflect the Error Codes that have been caused in the
sessions for DNP3 TCP Server, UDP and TCP Client respectively. The following
table lists the possible ranges of the Error Code. Any others are reserved.
60
6: BAD_PARAMETER – The received packet has invalid parameters except Function Code and Object
Codes. E.g. invalid Qualifier codes.
7: BAD_FILE_TYPE – The error was caused by invalid configuration in DNP3 Slave Application Layer.
Invalid File Type specified.
8: BAD_FILE_NUMBER – The error was caused by invalid configuration in DNP3 Slave Application Layer.
Invalid File Number specified.
9: BAD_DNP3_ADDRESS – The error was caused by invalid configuration in DNP3 Slave Application Layer.
Invalid File Number specified.
10: TABLE_WRITE_PROTECTED – The specified DNP3 object data file has been locked to be written.
11: TABLE_ACCESS_DENIED – The specified DNP3 object data file has been locked to be read or written.
12: TABLE_OWNERSHIP_ERROR – The specified DNP3 object data file has been locked to be read or
written.
If an error code is within 6…12, related file number and element number are shown in word 64 and 65.
DNP3 Slave – Application Layer Diagnostics for DNP3
Slave.
61 Application Layer Error Count
62 Function Code that caused the last error
63 Last Transmitted IIN in the response
64 Data file number of last error request
65 Data element number of last error request
66 Received Confirm Function Code Counter
67 Received Read Function Code Counter
68 Received Write Function Code Counter
69 Received Function Code Counter other than Confirm, Read and Write Function Codes.
70 Transmitted Solicited Response Function Code Counter
71 Transmitted Unsolicited Response Function Code Counter
72 Number of events to be reported.
73
Transport Function Layer Error Codes:
0: NO_ERROR – No error found in the Transport Layer.
1: DISCARD_NOT_FIRST_SEG – The received packet was discarded since it was not a first segment.
2: DISCARD_DUPLICATED_AND_MORE_SEG – The received packet was discarded since it had the same
sequence number as previous, more segments are expected.
3: DISCARD_DUPLICATED_AND_FINAL_SEG – The received packet was discarded since it had the same
sequence number as previous, final segment received.
4: DISCARD_OUT_OF_ORDER_SEG – The received packet was discarded since the sequence number was
out of order.
74 Transport Layer Error Count
75 Reserved
76 Reserved
77 Reserved
78 Reserved
79 Reserved
80 Reserved
Table 32 - Data File for Troubleshooting (Continued)
Word Offset Description Category
Table 33 - Error Codes
Value (DEC) Mnemonic Description
0 NO ERROR No error found.
1 ERR_SOCKET_CREATE Socket error during Create operation.
2 ERR_SOCKET_LISTEN Socket error during Listen operation.
3 ERR_SOCKET_BIND Socket error during Bind operation.
4 ERR_SOCKET_ACCEPT Socket error during Accept operation.
5 ERR_SOCKET_CONNECT Socket error during Connect operation.
6 ERR_SOCKET_SEND Socket error during Send operation.
7 ERR_SOCKET_RECEIVE Socket error during Receive operation.
8 ERR_SOCKET_UNLISTEN Socket error during Unlisten operation.
9 ERR_SOCKET_UNBIND Socket error during Unbind operation.