Omron CQM1H-SCB41 Operation Manual page 162

Sysmac cqm1h series serial communications board
Hide thumbs Also See for CQM1H-SCB41:
Table of Contents

Advertisement

CompoWay/F Master Protocol
Example: The following example illustrates reading the present value from a K3N@-series Intelligent 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 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 address + 00 + number of elements.
STX
Node No.
(02Hex)
1
1
( 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.
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
STX
Node No.
(02 Hex)
1
1
( 10
)
( 10
)
Data in shaded portions is stored at the location specified by the operand in the PMCR(260) instruction.
Note 1. Response Codes
2. The read data is returned as 4-digit hexadecimal as follows: F0019999 to 00099999 Hex.
Subad-
SID
Command code
dress
MRC
00
0
01
Subad-
End code
dress
01
Response code
"0000"
"1001"
"1002"
"1100"
"1101"
"1103"
"2203"
CS1-series PC
CompoWay/F response
Read data = present value
Send data
SRC
Variable
First read
type
address
(Note)
01
C0
0000
Command code
Response code
MRC
SRC
Note 1
01
00
Normal end
Command too long
Command too short
Parameter error
Area type error
First address range error
Operating error
Appendix B
Intelligent Signal Processor
K3N@-@@@@-FLK1/2/3/4/5/6
ETX
Always
No. of ele-
00
ments
00
0001
(03Hex)
Receive
ETX
data
Read data
(Note 2)
00
0000
(03 Hex)
Meaning
BCC
BCC
147

Advertisement

Table of Contents
loading

Table of Contents