9. Program
9.3. Error Detection Processing
This program detects and handles errors (1) to (3). For information on error codes, refer to 9.8
Error Process.
Serial cable
Destination device
CJ2M-CPU12
CJ1W-SCU42
(1) (2) (3)
rr
n executing the PMC
An incorrect sequence number and an incorrect memory address, which prevent the
as PMCR instruction errors. An error can
resses
ation device (Communications errors)
rr munications wit e is detected as a
comm tions erorrs include a transmission error caused by a
harac baud rate setting.
Transm ) of Transmission Error s allocated
to the
ation device error)
m ror, a vice
are detected as destination device errors. An error is detected with the response data which
ith this program, the destination device error is
ct ence between a n age (hereinafter
referre and error rec
error message). (Refer to 9.6.6. Receive Message Setti
’
*…* ** #0D0A
(1) E ors wh
e R instruction (PMCR instruction error)
execution of the PMCR instruction, are detected
be detected with error codes (1519.00 to 03) of the Port Operating Status in the add
located to the SCU Unit.
(2) Errors when communicating with destin
An e or that occurs during com h a destination devic
unications error. Communica
c ter corruption or unmatched An error can be detected with the
ission Error Flag (1518.15 Status in the addresse
SCU Unit.
(3) Errors in the destination device (Destin
A co mand error, parameter error, data er nd execution failure in the destination de
is sent from the destination device. W
dete ed when there is a differ ormal receive mess
d to as a normal message) eive message (hereinafter referred to as an
ngs for details.)
SOH
‘GETR’ ‘0000
Normal message
Start Command End Respon se FCS Terminator
code Code code data
#0D0A SOH
‘GETR’
**** ** Error me
FCS Ter
ssage
Start Command End minator
code Code code
** #0D0A SOH
‘ICMD’
****Error
(Unde
me
fin
FCS Terminator
ssage
ed
Start Command End
command) code Code code
54