Omron SYSMAC CS1W-SCB41-V1 Operation Manual page 412

Sysmac cs series; sysmac cj series. serial communications boards and serial communications units
Table of Contents

Advertisement

CompoWay/F Master Protocol
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 address +0 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))
Number of send data words
+0
First word of
send data
+1
(Undefined)
+2
Variable type
+3
First write address
+4
Number of elements
+5
Number of bytes to write
+6
Write data
Offset
Contents (data format)
+0
Number of send data words
+1
(Undefined)
Node No.
(2 digits BCD)
+2
Variable type
(2 digits hex)
+3
First write address
(6 digits BCD)
+4
Number of elements
(4 digits BCD)
+5
Number of bytes to write
(4 digits hex)
+6
Write data
on
Send data words
0
0
0
3
4
0
0
0
2
3
0
0
0
1
2
0
0
0
0
1
+0
Receive data
Number of receive data words
storage words
+1
Response code
Offset
Contents (data format)
+0
Number of receive data words
+1
Response code (4 digits hex)
Node No.
0007 to 00FA hex (7 to 250 decimal)
00 to 99
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.
Set the number of elements to write.
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.
Set the data to write from the first write
address.
Send frame
1
2
3
4
0 0 0 0 0 0 0 1
0 0 0 2
0 0 0 3
Always 0002 hex (2 decimal)
The CompoWay/F command response
code is stored in hexadecimal code.
Appendix B
Data
Data
383

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents