User guide
DC 900-1338I 195
Appendix
C
Error Codes
There are several methods used by the DLI and ICP software to report errors, as
described in the following sections:
C.1 DLI Error Codes
The error code can be returned directly by the DLI function call in the global variable
dlerrno. Typical errors are those described in the Freeway Data Link Interface Reference
Guide.
C.2 ICP Global Error Codes
Ta bl e C –1 lists the ICP-related errors that can be returned in the global variable
iICPStatus. The DLI constants are defined in the dlicperr.h file.
C.3 ICP Error Status Codes
The ICP-related errors listed in Table C–1 can also be returned in the dlRead
optArgs.iICPStatus
field of the response, which is a duplicate of the iIPCStatus global vari-
able. The DLI sets the
dlRead optArgs.usProtCommand field to the same value as the
dlWrite request that caused the error.