Input relay status read holding register read – Yaskawa MP920 Communications Module User Manual

Page 269

Advertising
background image

Appendix B 218IF Messages

B.2.2 MEMOBUS RTU Mode

B-20

„

Input Relay Status Read

Holding Register Read

Slave address

Function code: 02H

Start No.

(L)

(H)

No. of relays

(L)

(H)

CRC-16

(L)

(H)

The function code is 02H when the relay status is read.

Set the leading address of the relays to be read.

Set the number of relays to be read.

Error check

Command

7

0

Slave address

No. of data items

Status of first 8 relays

Status of next 8 relays

Status of next 8 relays

Function code: 02H

CRC-16

(L)

(H)

The function code is 02H when the relay status is read.

The byte length of the read data is returned.

The read data contents are returned.

Error check

Response

7

0

Slave address

Function code: 03H

Start No.

(L)

(H)

No. of registers

(L)

(H)

CRC-16

(L)

(H)

The function code is 03H when the holding register contents

are read.
Set the leading address of the holding registers to be read.

Set the number of holding registers to be read.

Error check

Command

7

0

Slave address

Function code: 03H

No. of data items

(L)

(H)

Contents of first
holding register

Contents of next
holding register

Contents of next
holding register

(L)

(H)

(L)

(H)

CRC-16

(L)

(H)

The function code is 03H when the holding register
contents are read.

The byte length of the read data is returned.

The read data contents are returned.

Error check

Response

7

0

Advertising