
682
13 MODBUS COMMUNICATION INSTRUCTION
13.1 MODBUS Read/Write
13
MODBUS COMMUNICATION INSTRUCTION
13.1
MODBUS Read/Write
ADPRW
This instruction allows the MODBUS Master to communicate (read/write data) with the Slaves.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*1
T, ST, C cannot be used.
Processing details
• Function code (s2) is operated on Slave node address (s1) according to Parameters (s3), (s4), and (s5)/(d1). Use 0 as the
Slave Node Address for Broadcast commands. For details, refer to
MODBUS communication manual.
• The communication execution status (d2) is output according to the status of the ADPRW instruction such as
communicating/completed normally/completed with an error.
Precautions
Three devices are occupied from the device specified in (d2). Make sure that these devices are not used in other controls.
Ladder diagram
Structured text
ENO:=ADPRW(EN,s1,s2,s3,s4,s5d1,d2);
Operand
Description
Range
Data type
Data type (label)
(s1)
Slave node address
0 to 20H
16-bit signed binary
ANY16
(s2)
Function code
01H to 06H, 0FH, 10H
16-bit signed binary
ANY16
(s3)
Function parameters depending on the function code
0 to FFFFH
16-bit signed binary
ANY16
(s4)
Function parameters depending on the function code
1 to 2000
16-bit signed binary
ANY16
(s5)/(d1)
Function parameters depending on the function code
Bit/16-bit signed binary
ANY_ELEMENTARY
(d2)
Head bit device number to which the execution status of
the communication is output
Bit
ANY_BOOL
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s1)
(s2)
(s3)
(s4)
(s5)/(d1)
(d2)
(s1)
(s2)
(s3)
(s4) (s5)/(d1) (d2)
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......