Omron CJ1W-SCU32 Operation Manual page 359

Machine automation controller, cj / nj-series, serial communications units, cpu unit
Table of Contents

Advertisement

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))
First word of
send data
Offset
+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 digits hex)
on
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.
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Number of send data words
+0
+1
(Undefined)
Node No.
+2
MRC
+3
Number of send bytes
+4
Send data
on
Contents (data format)
Node No.
(2 digits BCD)
SRC (2 digits hex)
Send data words
Rightmost word
1 2 3 4
Leftmost word
5 6 7 8
A Standard System Protocol
SRC
0005 to 00FA hex (5 to 250 decimal)
00 to 99
Set the command code for the required service
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 com-
munications line, so the number of data bytes is
doubled from S+4 and onwards.
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 frame
"12"
"34"
"56"
Data
"78"
R-25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents