6.4 MODBUS TCP Master Communication (SEND)
6.4.2 SEND Command (MODBUS Function Code Specified Type)
Command format
Operand
Items Settings Setting range
i Specify the operation unit. US / SS
S Specify the header of the source node data area. (Note 1) -
n Specify the No. of sent data. (Note 1) (Note 2)
1 - 127 words
1 - 2040 bits
D1
Specify the MODBUS command and partner station no. to be used. (Note 3)
Higher
byte
Two hexadecimal digits that indicate the
MODBUS function code
H5, H6, HF, H10
Lower
byte
Two hexadecimal digits that indicate the station
no.
H1 - HF7 (1 - 247)
D2
Specify the header of the MODBUS address in the receiver data area in
the partner node.
H0 - HFFFF (0 - 65535)
D3
Specify the device area in the source node to save the execution result
code (one word).
(Note 4)
(Note 1) Based on the types of device specified in operand [S] and the No. of sent data specified in [n], the
transmission methods and MODBUS function codes that can be used vary.
Types of device
to be specified in [S]
Transmission
method
No. of sent
data
[n]
Values that can be specified in
higher bytes of [D1]
16 bit device
WX, WY, WR, WL, DT,
LD
Register
transmission
1
H6: Preset Single Register (06)
HF: Force Multiple Coils (15)
H10: Preset Multiple Registers (16)
2 - 127
HF: Force Multiple Coils (15)
H10: Preset Multiple Registers (16)
1 bit device
X, Y, R, L, DT, n, LD, n
Bit
transmission
1
H5: Force Single Coil (05)
HF: Force Multiple Coils (15)
2 - 2040 HF: Force Multiple Coils (15)
(Note 2) The No. of sent data [n] is on a word basis for register transmission, and on a bit basis for bit transmission.
(Note 3) Operand [D1] is specified by combining two hexadecimal digits of MODBUS function code with two
hexadecimal digits of partner station no.
E.g. Specify "H0F0A" when MODBUS function code is 10 (Preset Multiple Registers) and station no. is 10.
(Note 4): Devices that can be specified for [D3] are: WX, WY, WR, WL, DT, LD. Saved as one word in the specified area.
0: Normal completion
1: Communication port is being used for master communication
2: Communication port is being used for slave communication
3: No. of master communication commands that can be used simultaneously has been exceeded
4: Sending timeout
5: Response reception timeout
6: Received data error
6-11