6. Function blocks
6.1 Manufacturer function blocks
1. Requirement
Read the server's Modbus TCP map starting from register #120 and write the content
for 50 elements to the marker range starting from marker word MW10; i.e., in marker
range MW10 to MW59. Elements for FC23 mean a data type of WORD.
Due to the 0-based address system, #121 must be entered in easyE4 as
the 1st element index in order to read/write to the server's Modbus TCP
map starting from register #120.
2. Requirement
At the same time, write the content of 2 elements from the marker range starting with
marker word W100 (i.e., from marker range MW100 to MW101) to the server's Mod-
bus TCP map starting from register #200. Elements for FC23 mean a data type of
WORD.
Due to the 0-based address system, #201 must be entered in easyE4 as
the 1st element index in order to read/write to the server's Modbus TCP
map starting from register #200.
Fig. 242: Acyclical Modbus TCP request tab
Example FC15
Keep the 0-based address system in mind.
If the address range does not match the Modbus server's address range
because the former starts from 0 and the latter from 1, you will need to
use an offset.
In this case, you will need to set the start address to the original value
minus 1.
Alternatively, the option Auto-decrement on all addresses can be
activated with a checkmark.
The following parameter configuration for the MC function block does the following:
1. Requirement
Starting from register #21, write to the server's Modbus TCP map the content of 8 ele-
ments from the marker range starting with marker word MW10; elements for FC15
mean a data type of BIT. Write the first 8 least significant bits of MW10.
532
easyE402/24 MN050009ENEaton.com