User`s guide

DC 900-1343D 59
Appendix
A
Error Codes
There are several methods used by the DLI and DDCMP software to report errors
(Table A–1 lists the DDCMP errors). The DLI error constant definitions are in the file
dlicperr.h.
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 DDCMP errors listed in Table A–1 can be returned in the global variable
iICPStatus.
3. The DDCMP errors listed in Table A–1 can also be returned in the
dlRead
pOptArgs.iICPStatus field of the response to a dlWrite request. The DLI sets the
dlRead pOptArgs.usProtCommand field to the same value as the dlWrite request
that caused the error. An example of this type of error is the
DLI_ICP_ERR_BAD_CMD
invalid command error.