Omron CQM1H-SCB41 operation manual Example Variable Area Read, Command and Text, Response Text

Models: CQM1H-SCB41

1 421
Download 421 pages 6 Kb
Page 148
Image 148

CompoWay/F Master Protocol

Appendix B

 

 

 

Example: VARIABLE AREA READ

The following command and text are used to read the present value, maximum value, minimum value, and status of the Intelligent Signal Processor.

Command and Text

 

 

 

Variable

First read address

No. of

 

 

 

elements

 

 

 

type

 

 

 

 

 

 

 

2 bytes 2 bytes

 

2 bytes

4 bytes

4 bytes

1, 2, 3...

1. Variable Type

 

 

 

 

 

 

 

 

 

 

 

 

 

Variable type

 

 

 

Contents

 

 

 

 

 

 

 

“C0”

 

Present value, maximum value, minimum value, status ,

 

 

 

 

and comparison value

 

2.First Read Address

Specify the address of the data to be read in 4 digits Hex.

3.Number of Elements: 4 Digits Hex

Number of elements

Process

 

 

“0001”

Read the data and end normally.

Note If “0000” is specified, nothing will be read and a normal end will be returned. A parameter error will occur for any settings other than “0000” and “0001.”

Response Text

 

 

 

 

Response code

Read data

 

 

2 bytes 2 bytes

4 bytes

8 bytes

1, 2, 3...

1. Response Code: MRES, SRES

 

 

 

 

 

 

 

 

 

 

 

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

 

2. Read Data

The specified data is returned in 8 digits of hexadecimal data.

141

Page 148
Image 148
Omron CQM1H-SCB41 operation manual Example Variable Area Read, Command and Text, Response Text, Variable type Contents