当前位置:文档之家› MODBUS-TCP协议介绍

MODBUS-TCP协议介绍

MODBUS-TCP

~~ IEEE 802.3 CSMA/CD 10Mb/s

(1)10 Base 5 RG-8 500m

(2)10 Base 2 RG-58 185m

(3)10 Base T UTP STP 100m

~~ 100Mb/s 802.3a 100 Base Tx 100 Base Fx ~~ 10/100M 100M “ ” (UTP) 100m 2 3km 100km 1000Mb/s 802.3z/802.3ab 10Gb/s 802.3ae

~~ IEEE802.3 EN50081-2 EN50082-2 1 DIN UTP STP( )

~TCP/IP

1. TCP/IP

~~ TCP/IP

20 80 X.25 TCP/IP ( ) TCP/IP TCP/IP TCP/IP

Internet TCP/IP TCP/IP

~~ TCP/IP OSI OSI TCP/IP 1 TCP/IP

2. Internet Protocol(IP)

~~IP Internet RFC79 ( RFC: Request For Comments )

~~IP IP “ ” I/O IP IP IP “IP ” “ ” “ ” “ ” IP IP

~~IP IP 2

~~IP 4 ( 3 ) A 16387064 (1 126) B 64516 ( 128 191) C 254 ( 192 223) D (“0.0.0.0”) 1 (“255.255.255.255”)

3. Transmission Control Protocol (TCP)

~~TCP ( 4 ) RFC793 TCP TCP TCP

4. TCP

~~TCP (Socket) RFC1700 2 502

5. (Protocal)

~~ “ ” IP TCP TCP/IP TCP/IP Internet

Modbus ( 5 ) ( )

~ Modbus TCP

~~Modbus IANA(Internet Assigned Numbers Authority, ) Modbus TCP 502 Modbus ~~Modbus IETF(Internet Engineering Task Force, ) Internet 1978 Modbus Modbus TCP/IP 300 Modbus 90% I/O Modbus TCP/IP Modbus Modbus Modbus TCP C/C++ JA V A ActiveX Modbus TCP

1. Modbus TCP/IP

~~ TCP/IP 5

/

/

32 IP IP

Modbus

2. Modbus TCP

~~ TCP/IP Ethernet II 802.3 6 Modbus TCP 3

MBAP (MBAP Modbus Application Protocol Modbus ) 4 7

3

3. Modbus

~~ 3

(1) ( 4 )

(2) 65 72 100 110 RFC (3)

~~ 3

1. 0 / (fc.3)

(fc.16)

2. 1 (fc.1) (fc.2)

(fc.4) (fc.5) (fc.6)

3. 2

4. (fc.15) (fc.20) (fc.21)

(fc.22) (fc.23)

4. Modbus

1.~

2. ( 5)

3.Modbus TCP ( 6)

4.Modbus TCP

Connect() TCP 502

a. Modbus 7 MBAP

b. send()

c.

d. recv()

TCP

5.Modbus TCP

a.JA V A

b. Unix C

c. Win32 C

6.Modbus TCP

www. ( )

~ TCP/IP Modbus

1.~

2.TCP/IP 93% TCP/IP

Modbus TCP

3.

1.

2. Modbus TCP

Unix Linux Windows Modbus TCP SEMI

1. 100M

4000 Modbus TCP 125 (16bit) 4000×125=500000 (8000000 )

1.

I/O IP Web I/O TCP/IPModbus

相关主题