![background image](http://html1.mh-extra.com/html/omron/sysmac-cj1w-scu21-v1/sysmac-cj1w-scu21-v1_operation-manual_743586410.webp)
381
CompoWay/F Master Protocol
Appendix B
Send/Receive with ASCII Conversion with Response
(Sequence No. 607 (Hex 025F))
• Send word order: Rightmost to leftmost
• Receive word order: Rightmost to leftmost
This sequence converts the specified data beginning with the command code (MRC, SRC) 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. The frames are created and sent in order from the rightmost word
to leftmost word of the I/O memory address.
Receive Data Word Allocation (4th Operand of PMCR(260))
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 ser-
vice
+3
Number of send bytes (4 digits hex)
Number of data bytes from the next byte
after the command code (MRC, SRC) until
the byte just before the ETX.
0000 to 03D8 hex (0 to 984 decimal)
Note: The data is converted to ASCII in the
communications line, so the number of data
bytes is doubled from S+4 and onwards.
+4
on
Send data (4 digits 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
word order from the rightmost to the leftmost
word.
Send data
First word of
send data
Number of send data words
+0
+1
+2
+3
+4
(Undefined)
Number of send bytes
MRC
SRC
Node No.
1 2 3 4
5 6 7 8
Send data words
Send frame
"12" "34" "56" "78"
Offset
Contents (data format)
Data
+0
Number of receive data words
0003 to 00FA Hex (3 to 250 decimal)
+1
Response code (4 digits hex)
The CompoWay/F command response code
is stored in hexadecimal code.
+2
Receive data (4 digits hex)
The data from just after the response code
until just before the ETX is converted from
ASCII to hexadecimal and stored in order
from the rightmost word to the leftmost
word.
Receive data
storage words
+0
+1
+2
Number of receive data words
Response code
Receive data
Summary of Contents for SYSMAC CJ1W-SCU21-V1
Page 3: ...iv...
Page 5: ...vi...
Page 9: ...x...
Page 15: ...xvi...
Page 89: ...60 Basic Operating Procedure Section 1 9...
Page 151: ...122 RS 232C and RS 422A 485 Wiring Section 3 4...
Page 173: ...144 Host Link Function for Replacing Existing PLCs Section 4 6...
Page 223: ...194 Enhanced Protocol Macro Functions Section 5 6...
Page 277: ...248 Communications Frames Section 6 8...
Page 291: ...262 Basic Operating Procedure in No protocol Mode Section 7 4...
Page 301: ...272 Auxiliary Area and CIO Area Allocations Section 8 3...
Page 391: ...362 Introduction Appendix A...
Page 421: ...392 CompoWay F Master Protocol Appendix B...
Page 513: ...484 E5 K Digital Controller Read Protocol Appendix F...
Page 571: ...542 E5ZE Temperature Controller Write Protocol Appendix I...
Page 587: ...558 E5 J Temperature Controller Protocol Appendix J...
Page 627: ...598 ES100 Digital Controller Protocol Appendix K...
Page 661: ...632 V500 V520 Bar Code Reader Protocol Appendix M...
Page 697: ...668 3Z4L Laser Micrometer Protocol Appendix N...
Page 717: ...688 Visual Inspection System Protocol Appendix O...
Page 755: ...726 V600 V620 ID Controller Protocol Appendix P...
Page 763: ...734 Hayes Modem AT Command Protocol Appendix Q...
Page 767: ...738 Changing Communications Port Settings Using STUP 237 Appendix R...
Page 781: ...752 Revision History...