6. Function blocks
6.1 Manufacturer function blocks
Example FC23
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 MU function block does the following:
1. Requirement
Read the slave's Modbus RTU 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 slave's Modbus RTU
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 slave's Modbus
RTU 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 slave's Modbus RTU
map starting from register #200.
Fig. 252: Acyclical Modbus RTU request tab
easyE402/24 MN050009ENEaton.com
547