![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498351.webp)
R-17
A Standard System Protocol
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
R
-2
Com
p
o
W
a
y
/F Mast
er Pr
otoc
o
l
Re
f
R
-2-8
Str
ucture of
the Protocol
The response frame is shown below. The response code and receive data are stored according to
the operands for PMCR(260) as follows:
•
D+1: Response code
•
D+2 on: Receive data
Data in shaded portions is stored at the location specified by the operand in the PMCR(260) instruc-
tion.
Note 1
Response Codes
2
The read data is returned as 4-digit hexadecimal as follows: F0019999 to 00099999 Hex.
The 3rd and 4th operands of the PMCR(260) instruction are specified as follows.
Send Data Word Allocation (3rd Operand of PMCR(260))
Receive Data Word Allocation (4th Operand of PMCR(260))
STX
Node No.
Subad-
dress
End
code
Command code
Response code
Receive data
ETX
BCC
MRC
SRC
(Note 1)
Read data
(Note 2)
(02 Hex)
(
×
10
1
)
(
×
10
1
)
01
01
00
00
0000
(03 Hex)
Response code
Meaning
"0000"
Normal end
"1001"
Command too long
"1002"
Command too short
"1100"
Parameter error
"1101"
Area type error
"1103"
First address range error
"2203"
Operating error
Offset
Contents (data format)
Data
+0
Number of send data words (4 digits Hex)
0007 Hex
+1
(Undefined)
Node No. (2 digits
BCD)
0000 Hex
+2
MRC (2 digits Hex)
SRC (2 digits Hex)
0101 Hex
+3
Number of send bytes (4 digits BCD)
000C Hex
+4
Send data (12 digits Hex)
C000 Hex
+5
0000 Hex
+6
0001 Hex
Offset
Contents (data format)
Data
+0
Number of receive data words (4 digits Hex)
Stored at reception (0004 Hex)
+1
Response code (4 digits Hex)
The response code will be stored in hexadecimal
form.
The normal end response code is 0000.
+2
Receive data (8 digits Hex)
The 4 bytes of read data is stored.
+3