
A Standard System Protocol
R-16
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Receive Data Word Allocation (4th Operand of PMCR(260))
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.
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 a 00 + number of elements.
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.
Offset
Contents (data format)
Data
+0
Number of receive data words (4 digits Hex)
0003 to 00FA Hex (3 to 250 decimal)
+1
Response code (4 digits Hex)
The response code of CompoWay/F command will
be stored in hexadecimal form.
+2
on
Receive data (4-digit Hex)
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.
STX
Node No.
Subad-
dress
SID
Command code
Send data
ETX
BCC
MRC
SRC
Variable
type
First read
address
(Note)
Always
00
No. of ele-
ments
(02 Hex)
(
×
10
1
)
(
×
10
1
)
00
0
01
01
C0
0000
00
0001
(03 Hex)
Receive data
storage words
Number of receive data words
+0
+1
+2
on
Response code
Receive data
5 6 7 8
1 2 3 4
Rightmost word
Leftmost word
Receive data words
Receive frame
"12" "34" "56" "78"
CS/CJ-series PLC
CompoWay/F response
Read data = present value
CompoWay/F command
VARIABLE AREA READ
Command code: 01 01
First read address
Intelligent Signal Processor
K3N
@
-
@@@@
-FLK1/2/3/4/5/6
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...