9
.
Program
43
Error Detection Processing
9.3.
With this program, the error detection processing is performed according to the following
descriptions (1) and (2).
For information on error codes, refer to
9.7. Error Processing
.
(1)Errors at the execution of the SendCmd instruction (SendCmd instruction errors)
Errors such as a Unit error, a command format error and a parameter error are detected as
SendCmd instruction errors when executing the SendCmd instruction. If an error occurs,
the error code
ErrorID
or
ErrorIDEx
of the SendCmd instruction will be generated to identify
the error. If an error in communications with the Destination Device is caused by a
transmission error due to, for example, a character corruption or unmatched baud rate
setting, the transmission error status (J01_P1_TransErrSta) that is the allocated variable
area of the SCU will be stored in the output variable to show the communication error
status.
(2)Errors in the Destination Device (Destination Device errors)
Destination Device errors include a command error, a parameter error and an execution
failure in the Destination Device. An error is identified in the response data (receive data)
that is returned from the Destination Device. If an error occurs in the Destination Device, the
corresponding error code will be stored in the end code or response of the receive data.
Local
_recv
data
[0]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9] [10] [11] [12] [13] [14] [15] [16] [17]
・
28
03
aa
bb
AA BB CC DD
cc
dd
FF GG HH
II
ee
ff
gg hh
**
CompoWay/F
command
Comm-
and
end
code
Node
No.
Subad-
dress
End code
Command
Response
Text
Serial cable
Controller
Destination Device
(1)
(2)
Содержание E5*D series
Страница 51: ...9 Program 48 2 Initialization processing ...
Страница 52: ...9 Program 49 3 CompoWay F communications processing ...
Страница 53: ...9 Program 50 4 Processing number error process ...
Страница 60: ...2013 2018 0618 0113 P E1 0 ...