Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX
K
U
H SF
D
F
" "
D1
●
●
●
●
●
●
●
D2
●
●
●
●
●
●
●
(Note 1)
Only in the case of "direct address specification" (main instruction) in the MODBUS mode, an integer
can be specified for the sender address.
■
Available bit devices (●: Available)
Operand
Bit device
Specification of bit of
word device
Index modifier
X
Y
R
L
T
C
P
E
S
R
IN
O
T
DT.n
LD.n
S1
S2
●
●
●
●
●
●
●
n
D1
●
●
●
●
●
●
●
D2
■
Outline of operation
● The MODBUS command is sent from the communication port of the unit to send/receive data
to/from external devices.
● Data can be read and written by specifying station numbers and memory addresses and
executing the SEND and RECV instructions in a user program, because PLC automatically
creates messages according to the protocol.
● Specify the MODBUS command and the partner MODBUS address in a Hex format in [S1].
● When the RECV instruction is executed, data are read from the address starting with [S2] in
the partner unit, and stored in the area starting with [D1] in the master unit.
● The transfer method (register transfer/bit transfer) and the MODBUS function code that can
be used vary, depending on the type of device specified by [D1].
● The amount of received data [n] is specified in words for the register transfer, and in the
number of bits for the bit transfer.
● The execution result code is stored in the one-word area of the master unit that is specified
by [D2].
■
Specification of [S1] and [n]
● Operand [S1] is specified as a combination of a two-digit hexadecimal MODBUS function
code and a two-digit hexadecimal partner station number.
Example: Specify "H030F" in the case of MODBUS function code 03 (read holding registers)
and station number 15.
● The transfer method and the MODBUS function code that can be used vary, depending on
the type of device specified by the operand [D1].
15.7 RECV (MODBUS Master: Function Code Specification)
WUME-FP7CPUPGR-12
15-45
Summary of Contents for FP7 Series
Page 2: ... MEMO 2 WUME FP7CPUPGR 12 ...
Page 18: ... MEMO xviii WUME FP7CPUPGR 12 ...
Page 52: ... MEMO 1 34 WUME FP7CPUPGR 12 ...
Page 104: ... MEMO 2 52 WUME FP7CPUPGR 12 ...
Page 123: ...3 9 ANS AND stack WUME FP7CPUPGR 12 3 19 ...
Page 125: ...3 10 ORS OR Stack WUME FP7CPUPGR 12 3 21 ...
Page 129: ...3 11 PSHS Push stack RDS Read stack POPS Pop stack WUME FP7CPUPGR 12 3 25 ...
Page 190: ...3 26 JP LBL Jump Label 3 86 WUME FP7CPUPGR 12 ...
Page 239: ...Name Description SR8 ER 3 46 ST ST ST ST ST ST Data Comparison Start WUME FP7CPUPGR 12 3 135 ...
Page 246: ... MEMO 3 142 WUME FP7CPUPGR 12 ...
Page 258: ... MEMO 4 12 WUME FP7CPUPGR 12 ...
Page 304: ... MEMO 5 46 WUME FP7CPUPGR 12 ...
Page 321: ...Name Description ER 6 7 DIVFP2 Division FP2 Compatible WUME FP7CPUPGR 12 6 17 ...
Page 348: ... MEMO 6 44 WUME FP7CPUPGR 12 ...
Page 388: ... MEMO 7 40 WUME FP7CPUPGR 12 ...
Page 438: ... MEMO 8 50 WUME FP7CPUPGR 12 ...
Page 450: ... MEMO 9 12 WUME FP7CPUPGR 12 ...
Page 520: ... MEMO 10 70 WUME FP7CPUPGR 12 ...
Page 602: ... MEMO 11 82 WUME FP7CPUPGR 12 ...
Page 622: ... MEMO 12 20 WUME FP7CPUPGR 12 ...
Page 650: ... MEMO 13 28 WUME FP7CPUPGR 12 ...
Page 1160: ... MEMO 18 66 WUME FP7CPUPGR 12 ...
Page 1188: ... MEMO 19 28 WUME FP7CPUPGR 12 ...
Page 1220: ... MEMO WUME FP7CPUPGR 12 ...
Page 1221: ... MEMO WUME FP7CPUPGR 12 ...