9
Program
 
9.3.  Error Detection Processing 
In this program, the error detection processing performs with regard to the following areas (1) 
to (3). For error codes, refer to 9.8. Error Processing.   
 
(1)Errors when executing the PMCR instruction (PMCR instruction error)   
An incorrect communications sequence number and an incorrect memory address, which 
prevent the execution of the PMCR instruction, are detected as PMCR instruction errors. An 
error can be detected with error codes (1519.00 to 03) of the port operating status in the 
CIO area allocated to the SCU.   
 
(2)Errors when communicating with Destination Device (Communications error)   
Errors that occur in communications with Destination Device such as character corruption 
and transmission errors caused by unmatched baud rate setting are detected as 
communications errors. An error can be detected with error code (1519.10) of the sequence 
abort completion in the CIO area allocated to the SCU.   
 
(3)Errors in Destination Device (Destination Device errors) 
Destination Device errors include a command error, a parameter error, a data error, and an 
execution failure in Destination Device. An error is detected with the response data which is 
returned from Destination Device. In this program, an error is detected by comparing 
difference in formats between a receive message in normal operation (hereinafter referred 
to as "normal message") and a receive message in error (hereinafter referred to as "error 
message"). (For details, refer to 9.6.6. Receive Message Settings.) 
 
␣
␣
␣
 
Error message 
 
 
For information on the CIO area allocated to SCU, refer to 9.4.2 Lists of Allocations.