834
15 EXTERNAL DEVICE COMMUNICATION INSTRUCTION
15.3 MODBUS Communication Instruction
15.3
MODBUS Communication Instruction
ADPRW
This instruction allows the MODBUS Master to communicate (read/write data) with the Slaves.
Setting data
■
Descriptions, ranges, and data types
*1 Slave station No. that can be used in FX5 master station differs depending on the version. (
■
Applicable devices
*1 T, ST, C cannot be used.
Ladder diagram
Structured text
ENO:=ADPRW(EN,s1,s2,s3,s4,s5d1,d2);
FBD/LD
Operand
Description
Range
Data type
Data type (label)
(s1)
Slave station No.
0 to F7H
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
ANYBIT_ARRAY
(Number of elements: 3)
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
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)
EN
ENO
d2
s1
s2
s3
s4
s5d1
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......