Appendix D MSG-SND/ MSG-RCV Functions (Ethernet)
D.1 Message Send Function (MSG-SND)
( 4 ) Connection Number (PARAM02)
Refer to D.1.4 ( 4 ) Connection Number (PARAM02).
( 5 ) Option (PARAM03)
Choose a unique setting for each communication device.
The following table provides the scope of the setting.
Communication Device
Ethernet(218IF, 218IFA or 218IFC) 0 to 247, 255
( 6 ) Function Code (PARAM04)
Set a function code to transmit.
The functions (read coil and input relay state, write to holding register, etc.) registered in the function codes are made
available by specifying the code.
The following table shows the available function codes when using MODBUS/TCP as a protocol.
Function
Code
00H
01H
02H
03H
04H
05H
06H
07H
:
0EH
0FH
10H
11H
:
15H
16H
17H
Note: 1. B: Bit type, W: Integer type
2. √: Available, -: Not available
3. Transmit and receive registers in the master operation mode are MW (MB) only.
4. In the slave operation mode, coil, holding register, input relay, and input register are MB, MW, IB, IW
respectively.
A-40
Valid Range
Table D.12 Function Code List (MODBUS/TCP)
Target Data
Type
–
Unused
B
Reads coil state
B
Reads input relay state
W
Reads holding register content
W
Reads input register content
B
Changes single coil state
W
Writes to single holding register
–
Unused
B
Changes multiple coil states
W
Writes to multiple holding registers
–
Unused
W
Mask writes to holding register
W
Reads/Writes multiple holding registers
Set a remote unit ID when MODBUS/TCP protocol is used.
When the transmission target is MP200 series, specify "0."
Function
Remarks
Communication device
Ethernet(218IFA/
Ethernet(218IF)
218IFC)
–
–
√
√
√
√
√
√
√
√
√
√
√
√
–
–
√
√
√
√
–
–
–
√
–
√