A-75, 8 ) data size (param06) – Yaskawa MP2300S Basic Module User Manual

Page 397

Advertising
background image

Appendix G MSG-SND/MSG-RCV Functions (Ethernet)

G.1 Message Transmit Function (MSG-SND)

A-75

Appendices

2. Address table

An address table used for the read/write request to the multiple holding registers is used for specifying
addresses indirectly in order to indicate read/write data. The four words of addresses at the beginning
of the M register set by PARAM05 (data address) are used as an address table.
For the address table, specify a data address and data size for reading and a data address and data
size for writing.
Read behaves same as “Reads holding register content (function code: 03H)”. Write behaves same as
“Writes to multiple holding registers (function code: 10H)”.
The address table used when reading/writing multiple holding registers is as follows:

( 8 ) Data Size (PARAM06)

Set the data size (number of bits or words) for the read/write request.
Be sure that the last data address determined based on the offset, data address, and data size does not go beyond the
scope of the data addresses.
The range of data sizes may differ, depending on the function code.
The following table gives the valid ranges of data sizes when using MODBUS/TCP as a protocol.

* 1. Specify the number of bits
* 2. Specify the number of words
* 3. Invalid when Ethernet (218IF) is used.

Note: The data size in the table is represented in decimal number.

MW

MW

+1

MW

+2

MW

+3

PARAM05

For reading

For writing

Address table for reading/

writing multiple holding registers

Data address

Data size

Data address

Data size

Table G.14 Valid Range of Data Sizes (MODBUS/TCP)

Function Code

Target

Data Type

Function

Valid Range of Data Addresses

00H

Unused

Disable

01H

B

Reads coil state

*1

1 to 2000

02H

B

Reads input relay state

*1

1 to 2000

03H

W

Reads holding register content

*2

1 to 125

04H

W

Reads input register content

*2

1 to 125

05H

B

Changes single coil state

*1

Disable

06H

W

Writes to single holding register

*2

Disable

07H

:

Unused

Disable

0EH

0FH

B

Changes multiple coil states

*1

1 to 00

10H

W

Writes to multiple holding registers

*2

1 to 100

11H

:

Unused

Disable

15H

16H

W

Mask writes to holding register

*2, *3

Disable

17H

W

Reads/Writes multiple holding registers

*2, *3

Read: 1 to 125

Write: 1 to 100

Advertising