![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498367.webp)
R-33
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
This sequence writes the contents of the specified number of elements from the address of the speci-
fied parameter area to the specified node number.
Send Data Word Allocation (3rd Operand of PMCR(260))
Set the number of bytes to write to twice the of the actual number of send data bytes. This is neces-
sary because the data is converted to ASCII data before being written. When hexadecimal data is
converted to ASCII data, data in the first write a0 and +1 is stored in I/O memory in order
from the leftmost word to the rightmost word and the data is sent starting from the send data word
with the largest offset. This is done because user programs handle data in 2-word (4-byte) units.
Receive Data Word Allocation (4th Operand of PMCR(260))
Parameter Area Write
(Sequence No. 616 (Hex 0268))
Offset
Contents (data format)
Data
+0
Number of send data words
0007 to 00FA Hex (7 to 250 decimal)
+1
(Undefined)
Node No.
(2 digits BCD)
00 to 99
+2
Parameter type (4 digits hex)
Set the parameter type.
+3
First write address (4 digits hex)
Set the first write address.
+4
Number of elements (4 digits hex)
Set the number of elements to write.
(The leftmost bit in the number of elements is always 1.)
+5
Number of bytes to write (4 digits hex)
Set the number of bytes of write data to send in hexa-
decimal code.
+6
on
Write data
Set the data to write from the first write address.
Offset
Contents (data format)
Data
+0
Number of receive data words
Always 0002 Hex (2 decimal)
+1
Response code (4 digits hex)
The CompoWay/F command response code is
stored in hexadecimal code.
Write data
First word of
send data
Number of send data words
+0
+1
+2
+3
(Undefined)
Node No.
+4
Number of bytes to write
+5
Parameter type
First write address
Number of elements
+6
on
0
0
0
3
0
0
0
2
0
0
0
1
0
0
0
0
4
3
2
1
0 0 0 0 0 0 0 1
0 0 0 3
1
2
3
4
0 0 0 2
Send data words
Send frame
Receive data
storage words
+0
+1
Number of receive data words
Response code
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...