9. Program
47
9.3. Error Detection Processing
This program detects and handles the errors (1) to (3) below. For information on error codes,
refer to
9.8 Error Process
.
(1) Errors when executing the ExecPMCR instruction (ExecPMCR instruction error)
Errors occurred during an execution of the ExecPMCR instruction such as a unit error and
communications error are detected as ExecPMCR instruction errors. An error is detected
with the error code (ErrorID) and the expansion error code(ErrorIDEx) of the ExecPMCR
instruction.
(2) Errors at an execution of the protocol macro (protocol macro error)
When an operation ends in an error during an execution of a protocol macro for some
reason, it is detected as a protocol macro error. An error is detected with the Sequence
Abort Completion Flag (J01_P2_PmrSeqAbtSta).
(3) Errors in the destination device (Destination device errors)
Destination device errors include a command error, a parameter error, data error, and an
execution failure in the destination device. An error is detected with the response data
which is returned from the destination device. With this program, the destination device
does not send a response when an error occurs. Therefore, this error is detected as a
timeout error described in (2).
The causes of errors (1) and (2) may be related to each other. Therefore, all of the following
error codes are stored when either error occurs.
•
Error code of ExecPMCR instruction (ErrorID)
•
Expansion error code of ExecPMCR instruction (ErrorIDEx)
•
Protocol macro error code (lower four bits of J01_P2_PmrSta)
•
Transmission error status (J01_P2_TransErrSta)
Serial cable
Controller
Destination device
(2)
(1)
(3)
Содержание V400-R2 Series
Страница 57: ...9 Program 54 3 PMCR communications processing ...
Страница 58: ...9 Program 55 4 Processing number error process ...