2.15 Using Message Functions
Using Function Codes
2-364
Function Code: 0D Hex
Function: Reads data from multiple specified registers, one point at a time.
Data is read one word at a time from registers in the remote station as specified in the remote station
address table that is stored in registers in the local station. This function reads the number of data
items that is specified in the data size parameter.
The applicable registers that can be read from the remote station are the M registers. The register
addresses to store the data in the local station are set to the sum of each address specified in the
remote station address table and the local station data address.
The following parameters need to be set in the MSG-SNDE function.
The following example illustrates how the contents of non-consecutive hold registers are read by using
function code 0D hex. In this example, the contents of registers MW0001000, MW0002000, and
MW0003000 in the remote station are read and stored in registers GW0002000, GW0003000, and
GW0004000 in the local station. The remote station address table starts at register MW0010000 in the
local station.
The remote station address table contains a one-word address specifier for each data item, as illustrated
below.
MSG-SNDE Function Parameter Description
PARAM10 Connection Number Set the connection number used to determine the remote station.
PARAM11 Option
This parameter is used with the QnA-compatible 3E Frame protocol
and the FINS protocol. Refer to the section for each protocol for
details.
PARAM12 Function Code Set the function code for the function to use.
PARAM14
Remote Station Data
Address, Lower Word
Set the first register address where the remote station address table is
stored.
PARAM15
Remote Station Data
Address, Upper Word
PARAM16
Remote Station Register
Type
Set the register type (M, G, I, O, or S) in the local station where the
remote station address table is stored.
PARAM17 Data Size Set the number of data items to read.
PARAM18
Remote CPU Module
Number
This parameter is used with the Extended MEMOBUS protocol. Set the
CPU number at the remote station.
PARAM20
Local Station Data
Address, Lower Word
These parameters are used to offset the address for writing data in reg-
isters in the local station that have been read from the remote station.
Data will be written to the addresses that are the sum of each address
specified in the remote station address table and the local station data
address.
PARAM21
Local Station Data
Address, Upper Word
PARAM22
Local Station Register
Type
Set the register type (M, G, or O) to store the read data in the local sta-
tion.
PARAM24 For system use
Set this parameter to 0 from a user program or by other means in the
first scan after the power is turned ON. Thereafter, do not change the
value of this parameter. This parameter is used by the system.
MW
MW+1
MW+2
MW+n-1
Remote Station Address Table
Address setting − 1
Address setting − 2
Address setting − 3
Address setting − n
n data items
Remote Station Address Table When Using Function Code 0D Hex