
R-15
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
Note
The hexadecimal equivalents of sequences numbers are given in parentheses.
Sequence No. 600 can be used for the normal CompoWay/F Master function (ASCII conversion, speci-
fied unit, and specification from command code).
Refer to the communications specifications for the OMRON CompoWay/F component to which the
command is being sent and set the command code and required data starting at the words specified for
the 3rd operand of PMCR(260), and execute the PMCR command.
The relationship between the CompoWay/F command and response frames and the operands of
PMCR(260) is described next.
•
Send word order: Rightmost to leftmost
•
Receive word order: Leftmost to rightmost
This sequence converts the specified data beginning with the command code to ASCII and sends it to
the specified Unit. The response is converted to hexadecimal and stored starting at the specified word.
Send Data Word Allocation (3rd Operand of PMCR(260))
Set the number of send bytes to twice the number of bytes in memory. This is necessary because
the data is converted to ASCII data before being sent.
Frames are created and sent starting from the rightmost to leftmost word of the address in I/O memory.
620 (026C)
Echoback test
Executes an echoback test at the specified
node.
Yes
Yes
621 (026D)
Operation command
Remotely stops/starts operations of the
device at the specified node number.
Yes
Yes
Send with ASCII Conversion, with Response:
(Sequence No. 600 (Hex 0258))
Offset
Contents (data format)
Data
+0
Number of send data words (4 digits Hex)
0005 to 00FA Hex (5 to 250 decimal)
+1
(Undefined)
Node No. (2 digits
BCD)
00 to 99
+2
MRC (2 digits Hex)
SRC (2 digits Hex)
Set the command code for the required service
+3
Number of send bytes (4 digits Hex)
Number of data bytes from the next byte after the
command code until the byte just before the ETX.
0000 to 03D8 Hex (0 to 984 decimal)
+4
on
Send data (4-digit Hex)
The data specified in hexadecimal here will be
converted to ASCII and the number of send bytes
specified in S+3 will be sent in order of rightmost
to leftmost.
Sequence
No.
Communications
sequence name
Function
Ladder interface
Send word
allocation
Receive word
allocation
Send data
First word of
send data
Number of send data words
+0
+1
+2
+3
+4
on
(Undefined)
MRC
SRC
Number of send bytes
Node No.
1 2 3 4
5 6 7 8
Send data words
Send frame
"12" "34" "56" "78"
Rightmost word
Leftmost word
Содержание 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...