![background image](http://html1.mh-extra.com/html/omron/sysmac-cj1w-scu21-v1/sysmac-cj1w-scu21-v1_operation-manual_743586412.webp)
383
CompoWay/F Master Protocol
Appendix B
Variable Area Write
(Sequence No. 611 (Hex 0263))
This sequence writes the contents of the specified number of elements from the address of the specified variable type to
the specified node number.
Send Data Word Allocation (3rd Operand of PMCR(260))
Set the number of write bytes to twice the number of send data in memory. This is necessary 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 rightmost word to leftmost word and the
data is sent starting from the send data word with the largest offset. This is done because ladder programming
handles data in 2-word (4-byte) units.
Receive Data Word Allocation (4th Operand of PMCR(260))
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 Variable
type
(2 digits hex)
Set the area type (2 digits) and the first
read word (6 digits). The leftmost byte of
the first write address specifies the address
and the rightmost byte specifies the bit
location. Set the rightmost byte to 00 when
bit access is not required.
+3
First write address
(6 digits BCD)
+4 Number
of
elements
(4 digits BCD)
Set the number of elements to write.
+5
Number of bytes to write
(4 digits hex)
Set the number of bytes to send in the com-
munications line.
Note: The data is converted to ASCII in the
communications line, so the number of data
bytes is doubled from S+6 and onwards.
+6
on
Write data
Set the data to write from the first write
address.
Write data
First word of
send data
Number of send data words
+0
+1
+2
+3
+6
(Undefined)
First write address
Variable type
Node No.
Number of elements
+4
Number of bytes to write
+5
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
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.
Receive data
storage words
+0
+1
Number of receive data words
Response code
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...