6. Function blocks
6.1 Manufacturer function blocks
FC
dec
Function description Function
Code
hex
FC1
Read Coils  Used to read outputs
0x01
FC2
Read Discrete Inputs  Used to read inputs
0x02
FC3
Read Multiple Holding Registers  Used to read multiple input registers
0x03
FC4
Read Input Registers  Used to read input registers
0x04
FC5
1)
Write Single Coil  Used to write to exactly one output
0x05
FC6
Write Single Holding Register  Used to write to a single output
register
0x06
FC15
1)
Write Multiple Coils  Used to write to multiple outputs
0x15
FC16
Write Multiple Holding Registers  Used to write to multiple output
registers
0x10
FC23
1)
Read and Write Multiple Holding
Registers
 Used to read or write from/to multiple
word output registers
0x17
1) Only available for Modbus TCP clients or Modbus RTU master in easyE4

Modbus TCP Client  Modbus TCP Server
Fig. 238: Overview of how function codes are used
Modbus TCP Server
The options are MS1 through MS4. This setting is used to select the Modbus TCP
server to which the request should be sent.
Unit ID
The value range is 1 to 255.
Response timeout
As soon as the server does not respond within the specified time, function block out-
put E1 will be set to a state of 1. Whether the registers are cleared when there is a
timeout will depend on the setting configured with the option of the same name
under Project view / Cyclical data tab – please refer to → " Clear register on timeout",
page 783 as well. 3000 ms is the default value.
easyE402/24 MN050009ENEaton.com
527