For e.g.
start_register
= 80 (0050h) the conversion takes place with the following
approach:
start_register = 0050h
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
start_register-offset_DB_no. = 00h
start_register-word-no. = 50h
n
Data block DB = Base-DB-
start_register-offset_DB_no.
–
Data block DB = 800 + 0 = 800
n
Data word DBW = start_register-word-no. x 2
–
Data word DBW = 80 x 2 = 160
start_register
offset_DB_no.
word_no.
Base DB
Number
DB
DBW
hex
decimal
decimal
hex
decimal
decimal
decimal
decimal
0000h
0
0
000h
0
800
800
0
01FAh
500
0
1F4h
500
800
800
1000
0384h
900
1
184h
388
800
801
776
03FFh
1023
1
1FFh
511
800
801
1022
6.4.8.4
FC 04 - Read Input Registers
n
This function is identical to FC 03.
n
The corresponding address allocation of the CPU memory area are established by
the properties of "FC 04" in the parameterization of the CP. Here the fixed "Modbus
address in transmission message" 0 may be assigned to a Base-DB-Number in the
"SIMATIC memory area".
n
For more information see FC 03.
Ä
Chap. 6.4.8.3 ‘FC 03 - Read Output Registers’
page 83
Conversion
Further values
VIPA System 300S
Communication protocols
Modbus > Modbus Slave - Function codes
HB130 | CP | 341-1CH01 | en | 18-40
84