Omron CJ1W-SCU32 Operation Manual page 350

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

Advertisement

A Standard System Protocol
Receive Data Word Allocation (4th Operand of PMCR(260))
Offset
+0
Number of receive data words (4 digits Hex)
+1
Response code (4 digits Hex)
+2
Receive data (4-digit Hex)
on
Received frames are stored starting from the leftmost to rightmost word of the address in I/O mem-
ory.
Example: The following example illustrates reading the present value from a K3N@-series Intelli-
gent Signal Processor.
CompoWay/F command
VARIABLE AREA READ
Command code: 01 01
First read address
Sequence No. 600 (Send with ASCII Conversion, with Response) is used. The specified data begin-
ning with the command code is converted ASCII and sent to the Intelligent Signal Processor with the
specified node number. The response is converted to hexadecimal and stored starting at the speci-
fied word.
The command frame (command code 01 01) for reading the present value for a K3N@-@@@@-
FLK1/2/3/4/5/6 Intelligent Signal Processor is shown below. The following data is specified in the
operands for PMCR(260).
• Rightmost byte of S+1: Node number (2 digits BCD)
• S+2: Command code: MRC + SRC = "0101"
• S+4 on: Send data = Variable type + first read address + 00 + number of elements.
STX
Node No.
Subad-
dress
(02 Hex)
1
1
00
(×10
)
(×10
)
Data in shaded portions is specified in the PMCR(260) instruction.
Note A first read address of 0000 specifies the present value. An address of 0001 specifies the
maximum value; 0002, the minimum value; and 0003, the status.
R-16
Number of receive data words
Receive data
+0
storage words
+1
+2
on
Contents (data format)
Receive frame
"12"
"34"
"56"
"78"
CS /CJ -series PLC
CompoWay/F response
Read data = present value
SID
Command code
MRC
SRC
0
01
01
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Response code
Receive data
0003 to 00FA Hex (3 to 250 decimal)
The response code of CompoWay/F command will
be stored in hexadecimal form.
The data from just after the response code until
just before the ETX will be converted from ASCII
to hexadecimal and stored here in order of left-
most to rightmost.
Receive data words
5 6 7 8
Rightmost word
1 2 3 4
Leftmost word
Intelligent Signal Processor
K3N@-@@@@-FLK1/2/3/4/5/6
Send data
Variable
First read
Always
type
address
00
(Note)
C0
0000
00
Data
ETX
BCC
No. of ele-
ments
0001
(03 Hex)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents