Download Print this page

Modbus Communication Instruction - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

15.3

MODBUS Communication Instruction

ADPRW
This instruction allows the MODBUS Master to communicate (read/write data) with the Slaves.
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d2
s2
s3
s4
s5d1
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Slave station No.
(s2)
Function code
(s3)
Function parameters depending on the function code
(s4)
Function parameters depending on the function code
(s5)/(d1)
Function parameters depending on the function code
(d2)
Head bit device number to which the execution status of
the communication is output
EN
Execution condition
ENO
Execution result
*1 Slave station No. that can be used in FX5 master station differs depending on the version. (Page 1097 Added and Changed
Functions)
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(s3)
(s4)
(s5)/(d1)
(d2)
*1 T, ST, C cannot be used.
15 EXTERNAL DEVICE COMMUNICATION INSTRUCTION
834
15.3 MODBUS Communication Instruction
(s2)
(s3)
(s4) (s5)/(d1) (d2)
Word
T, ST, C, D, W,
SD, SW, R
*1
*1
*1
*1
*1
*1
Structured text
ENO:=ADPRW(EN,s1,s2,s3,s4,s5d1,d2);
Range
*1
0 to F7H
01H to 06H, 0FH, 10H
0 to FFFFH
1 to 2000
Double word Indirect
U\G
Z
LC
Data type
16-bit signed binary
16-bit signed binary
16-bit signed binary
16-bit signed binary
Bit/16-bit signed binary
Bit
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANY16
ANY16
ANY16
ANY16
ANY_ELEMENTARY
ANYBIT_ARRAY
(Number of elements: 3)
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading