■Available devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB
(s1)
(s2)
(s3)
(s4)
(s5)/(d1)
(d2)
*1 T, ST, C cannot be used.
Processing details
• Function code (s2) is operated on slave station No. (s1) according to parameters (s3), (s4), and (s5)/(d1). Use 0 as the
slave station No. (s1) for broadcast commands. (Refer to Page 33 Function code and function parameters.)
• The communication execution status (d2) is output according to each status of the ADPRW instruction such as
communicating/completed normally/completed with an error. (Refer to Page 34 Communication execution status
output device.)
■Function code and function parameters
The following table shows the parameter allocation of (s3), (s4), and (s5)/(d1) for each function code (s2).
(s2): Function
(s3): MODBUS address
code
Applicable device: (Refer to the following
applicable devices.)
01H
MODBUS address:
Read coils
0000H to FFFFH
02H
MODBUS address:
Read inputs
0000H to FFFFH
03H
MODBUS address:
Read holding
0000H to FFFFH
registers
04H
MODBUS address:
Read input
0000H to FFFFH
registers
05H
MODBUS address:
Write coils
0000H to FFFFH
06H
MODBUS address:
Write holding
0000H to FFFFH
registers
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
*1
*1
*1
*1
*1
(s4): Device count
Device count:
1 to 2000
Device count:
1 to 2000
Device count:
1 to 125
Device count:
1 to 125
0 (fixed)
0 (fixed)
Double word Indirect
specification
Z
LC
LZ
(s5)/(d1): Start device storing data
Start device storing read data
Applicable device
Word device
(Refer to the following table of the applicable devices.)
Bit device
(Refer to the following table of the applicable devices.)
Number of
Word device
((s4) + 15) 16 points
occupied points
Bit device
(s4) points
Start device storing read data
Applicable device
Word device
(Refer to the following table of the applicable devices.)
Bit device
(Refer to the following table of the applicable devices.)
Occupied points
Word device
((s4) + 15) 16 points
Bit device
(s4) points
Start device storing read data
(Refer to the following table of the applicable devices.)
Applicable device
Occupied points
(s4) points
Start device storing read data
(Refer to the following table of the applicable devices.)
Applicable device
Occupied points
(s4) points
Start device storing write data
Applicable
Word device
*2
device
(Refer to the following table of the applicable devices.)
Bit device
(Refer to the following table of the applicable devices.)
Occupied points
1 point
Start device storing write data
(Refer to the following table of the applicable devices.)
Applicable device
Occupied points
1 point
Constant
Others
K, H
E
$
*1
*1
7 FUNCTION
7.1 Master Function
7
33