Omron SYSMAC CS1W-SCB41-V1 Operation Manual page 400

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

Advertisement

CompoWay/F Master Protocol
Sequence
No.
606 (025E)
Send word order: Leftmost to rightmost
Rightmost word
Leftmost word
607 (025F)
Send word order: Rightmost to leftmost
Rightmost word
Leftmost word
Send with ASCII Conversion, with Response:
(Sequence No. 600 (Hex 0258))
• 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))
First word of
send data
Note 1. 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.
2. Frames are created and sent starting from the rightmost to leftmost word of the address in I/O mem-
ory.
Send sequence
Send data words
Send frame
1 2 3 4
"56"
"78"
5 6 7 8
Send data words
Send frame
1 2 3 4
"12"
"34"
5 6 7 8
+0
Number of send data words
+1
(Undefined)
+2
MRC
+3
Number of send bytes
Send data
+4
Offset
Contents (data format)
+0
Number of send data words
(4 digits Hex)
+1
(Undefined)
+2
MRC
(2 digits Hex)
+3
Number of send bytes (4 digits Hex)
+4
Send data (4-digit Hex)
on
Send data words
1 2 3 4
5 6 7 8
Receive word order: Leftmost to rightmost
Receive frame
"12"
"34"
"56"
"12"
"34"
Receive word order: Rightmost to leftmost
Receive frame
"56"
"78"
"12"
"34"
"56"
Node No.
SRC
0005 to 00FA Hex (5 to 250 decimal)
Node No. (2 digits
00 to 99
BCD)
SRC (2 digits Hex) Set the command code for the required ser-
vice
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)
The data specified in hexadecimal here will
be converted to ASCII and the number of
bytes specified in S+3 will be sent.
Send frame
"12"
"34"
"56"
"78"
Appendix B
Receive sequence
Receive data words
Rightmost word
5 6 7 8
"78"
Leftmost word
1 2 3 4
Receive data words
Rightmost word
1 2 3 4
"78"
Leftmost word
5 6 7 8
Data
371

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents