User`s guide
DC 900-1317J 119
Appendix
B
Error Codes
There are several methods used by the DLI and ADCCP NRM software to report errors
(Ta bl e B –1 lists the ADCCP NRM errors):
1. The error code can be returned directly by the DLI function call. Typical errors
are those described in the Freeway Data Link Interface Reference Guide.
2. The ADCCP NRM errors shown in Ta bl e B –1 can be returned in the dlRead
pOptArgs.iICPStatus
field of the response. The DLI sets the dlRead
pOptArgs.usProtCommand
field to the same value as the dlWrite request that caused
the error. The
DLI constants are defined in the file dlicperr.h.
3. The ADCCP NRM error can be reported in an error report response to a dlRead
request. The returned dlRead pOptArgs.usProtCommand field is set to
DLI_PROT_RESP_ERROR, and the dlRead pOptArgs.iICPStatus field is set to the actual
error code.
4. Under certain communication line conditions that cause queued transmission
buffers to be discarded, the ADCCP NRM error can be reported in a data
acknowledgment response to a
dlRead request. In this case, the returned dlRead
pOptArgs.usProtCommand
field is DLI_PROT_RESP_NORMAL_ACK, and the dlRead
pOptArgs.iICPStatus
field is set to the actual error code.