213
CompoWay/F Master Protocol
Appendix B
Example: The following example illustrates reading the present value from a K3N
#
-series Intelligent Signal
Processor.
Sequence No. 600 (Send with ASCII Conversion, with Response) is used. The specified data beginning 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 specified word.
The command frame for reading the present value for a K3N
#
-
####
-FLK1/2/3/4/5/6 Intelligent Signal Pro-
cessor (command code 01 01) 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.
The response frame is shown below. The response code and receive data are stored according to the oper-
ands for PMCR(260) as follows:
• D+1: Response code
D+2 and on: Receive data
Data in shaded portions is stored at the location specified by the operand in the PMCR(260) instruction.
Note 1.
Response Codes
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
(02Hex)
(
×
10
1
)
(
×
10
1
)
00
0
01
01
C0
0000
00
0001
(03Hex)
STX
Node No.
Subad-
dress
End
code
Command code
Response code
Receive
data
ETX
BCC
MRC
SRC
Note 1
Read data
(Note 2)
(02
Hex)
(
×
10
1
)
(
×
10
1
)
01
01
00
00
0000
(03
Hex)
CS/CJ-series PC
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
Response code
Meaning
“0000”
Normal end
“1001”
Command too long
“1002”
Command too short
“1100”
Parameter error
“1101”
Area type error
“1103”
First address range error
“2203”
Operating error
Содержание CJ1W-SCU41
Страница 2: ...6 60 6 6HULHV 6HULDO RPPXQLFDWLRQV RDUGV DQG 6HULDO RPPXQLFDWLRQV 8QLWV 2SHUDWLRQ 0DQXDO 5HYLVHG 0D ...
Страница 3: ...KX ...
Страница 5: ...XK ...
Страница 9: ......
Страница 19: ......
Страница 119: ......
Страница 177: ......
Страница 187: ......
Страница 221: ......
Страница 259: ......
Страница 317: ......
Страница 333: ......
Страница 373: ......
Страница 395: ......
Страница 407: ......
Страница 443: ......
Страница 463: ......
Страница 501: ......
Страница 509: ......
Страница 513: ......
Страница 525: ......
Страница 526: ... XWKRUL HG LVWULEXWRU Cat No W336 E1 3 Note Specifications subject to change without notice Printed in Japan 0501 M ...