![ELPRO 105G Скачать руководство пользователя страница 67](http://html1.mh-extra.com/html/elpro/105g/105g_user-manual_2396029067.webp)
105U-G Wireless Gateway
User Manual
Page
67
©
August 2003
4.9.3
Modbus TCP
To use Modbus TCP, select the Enable Modbus Server box. The Modbus TCP Server will
accept Modbus TCP connections on TCP/IP port 502.
Supported Commands
Function
Function
7 Class
Affects Area Addressing method
Code
Name
1 Read
coils
1
IN/OUT
Bit
2 Read
Input
discretes
1
IN/OUT
Bit
3
Read multiple registers 0
IN/OUT
Word
4
Read input registers
1
IN/OUT
Word
5 Write
coil
1
OUT Bit
6
Write single register
1
OUT
Word
7
Read exception status 1
-
-
15
Force multiple coils
2
OUT
Bit
16
Force multiple registers 0
OUT
Word
22
Mask write register
2
OUT
Word
23 Read/Write
registers
2 IN/OUT
Word
Modbus/TCP Addressing
The AnyBus-S IN and OUT areas can be configured to a maximum size of 2048 bytes each.
I/O Data is transferred from I/O registers to the IN area using fieldbus
write
mappings in the
configuration software. Conversely, Data is transferred from the OUT area to I/O registers
using fieldbus
read
mappings. When accessing these areas, with Modbus commands, the
addressing is done according to the following tables.
IN area
Word addr.
Bit address
000h
0000h 0001h 0002h 0003h 0004h 0005h 0006h 0007h 0008h 0009h 000Ah 000Bh 000Ch 000Dh 000Eh 000Fh
001h
0010h 0011h 0012h 0013h 0014h 0015h 0016h 0017h 0018h 0019h 001Ah 001Bh 001Ch 001Dh 001Eh 001Fh
...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
3FFh
3FF0h 3FF1h 3FF2h 3FF3h 3FF4h 3FF5h 3FF6h 3FF7h 3FF8h 3FF9h 3FFAh 3FFBh 3FFCh 3FFDh 3FFEh 3FFFh
OUT area
Word addr.
Bit address
400h
4000h 4001h 4002h 4003h 4004h 4005h 4006h 4007h 4008h 4009h 400Ah 400Bh 400Ch 400Dh 400Eh 400Fh
401h
4010h 4011h 4012h 4013h 4014h 4015h 4016h 4017h 4018h 4019h 401Ah 401Bh 401Ch 401Dh 401Eh 401Fh
...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
7FFh
7FF0h 7FF1h 7FF2h 7FF3h 7FF4h 7FF5h 7FF6h 7FF7h 7FF8h 7FF9h 7FFAh 7FFBh 7FFCh 7FFDh 7FFEh 7FFFh