Download Display - Siemens

Transcript
MB_PNHCL function block – Modbus client
In this example:
Address mapping
•
DB11 is 1002 bytes; a total of 500 registers are mapped (register 0 –
register 499) + 2 reserved bytes.
•
DB12 is 364 bytes; a total of 181 registers are mapped (register 720 –
register 900) + 2 reserved bytes
•
DB13 is 564 bytes; a total of 281 input registers are mapped (register
720 – register 1000) + 2 reserved bytes
•
DB14 is 80 bytes; a total of 611 coils (bits) are mapped (coil 640 – coil
1250) + 2 reserved bytes
•
DB15 is 78 bytes; a total of 601 inputs (bits) are mapped (input 1700 –
input 2300) + 2 reserved bytes
•
DB16 is 78 bytes; a total of 601 coils (bits) are mapped (coil 1700 –
coil 2300) + 2 reserved bytes
The figure below shows the Simatic memory areas and the register- and bitbased definition of memory in the Modbus devices. The figure is based on the
parameter assignment above.
In the Modbus device: The Modbus addresses shown in black relate to the
data link layer, and the addresses shown in gray to the application layer.
In SIMATIC: The SIMATIC addresses in the first column are the offset in the
DB. The Modbus register numbers are in the square brackets.
SIMATIC Modbus/TCP Redundant Communication of PN H Systems
6AV6676-6MB10-0AX0; Manual Edition 1.1
7-17