beautypg.com

Rockwell Automation 1771-SPI,D17716.5.122 SPI PROTOCOL INTERFACE User Manual

Page 58

background image

Interpreting Diagnostic Information

In LEDs and Error Codes

Chapter 5

5-8

Error Codes Returned in CDS

Error codes returned in CDS deal with communication with devices on the
SPI network, and fall into two categories:

commands not supported or not executed by the device

(return of 7000 series codes)

communication network error

(return of 8000 series codes)

7000 Series Error Codes for Commands Not Supported or Not Executed

A device on the SPI link can detect either of these conditions and indicate
them to the SPI module. In response, the SPI module can return a 7000
code to the processor if you set corresponding enable bits in MCC word 1:

Bit #

Title

SPI Module Reports

11

Cmd Not Supported

(CNS)

0 = Command Not Supported errors from all devices

1 = errors are not reported

15

Cmd Not Executed

(CNE)

0 = Command Not Executed errors from all devices

1 = errors are not reported

Each error code is defined as listed in Table 5.D.

Table 5.D

7000 Series Error Codes for Commands Not Supported or Not Executed

This table describes errors in data coming from the device to the SPI module.

Code

Type of Error

The SPI module returns this bit set = 1 when it detects:

7007

invalid data

outĆofĆrange data from the device (SPI module discards it.)

7006

device not ready

device temporarily cannot execute the command. Try later.

7005

reserved for future use

always set = 1

7004

always returned reset = 0

7003

command not supported that the device on the link cannot support the command

7002

command not executed

that the device on the link cannot execute the supported

command (typically returned with another error bit)

7001

invalid header

an error in the header from the device (may be due to noise)

7000

communication error

a framing error, a CRC error, or a protocol violation