
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
169
error_code Structure Element
The error_code structure element is relevant in the error classes:
x
DP_ERROR_EVENT_NET
x
DP_ERROR_REQ_PAR
x
DP_ERROR_CI
x
DP_ERROR_RES
x
DP_ERROR_USR_ABORT
error_decode, error_code_1, error_code_2
The error_decode, error_code_1 and error_code_2 structure elements are only
relevant in the DP_ERROR_EVENT error class. In this case, all three elements
must be evaluated. They contain an error coding that a DP-V1 slave can return in
the response frame after a DP-V1 request.
Description of the Error Classes
The following Figure 4 shows how a DP user program evaluates errors when a DP
function is called.
ErrClass = DP_xxx
Fetch confirmation
with DP_get_result
Job executed,
evaluate return
parameters
Error_decode,
evaluate
error_code1/2
Evaluate error_code
(DP_get_err_txt)
ErrClass?
DP_OK DP_OK_
ASYNC
DP_ERROR
EVENT
Other
Figure 4 Evaluation of the Return Values
Kommentare zu diesen Handbüchern