当前位置:网站首页>Xingda easy control ModbusRTU to modbustcp gateway

Xingda easy control ModbusRTU to modbustcp gateway

2022-06-12 21:42:00 Xingda easy to control

Xingda is easy to control ModbusRTU turn modbusTCP gateway

Xingda is easy to control ModbusTCP turn ModbusRTU gateway (XD-ETHs20) Realization  Modbus TCP Network and Modbus RTU Data communication between serial buses , Can support RS485 Communications . namely  Modbus TCP  and  Modbus RTU  Seamless internal connectivity between networks .

modbusRTU turn modbusTCP
modbusRTU turn modbusTCP

Xingda is easy to control XD-ETHs20 Gateway is widely used : This product is widely used to support  RS485 Interface soft starter 、 Frequency converter 、 Intelligent high and low voltage electrical appliances 、 Electric quantity measuring device 、 Intelligent field measuring equipment 、 Meter 、PLC、DCS、FCS wait . Simple configuration : Users don't have to understand Modbus details , Just refer to the manual , The gateway can be configured as required , No complex programming required , The connection function can be realized in a short time .

Data exchange

 

modbusRTU turn modbusTCP
modbusRTU turn modbusTCP

Xingda is easy to control XD-ETHs20 The gateway TCP The data conversion between network and serial port is through “ mapping ” To build a relationship . stay XD-ETHs20 There are two data buffers in the , One is the input buffer (1500 byte ), Address range is 0x000-0x5DB; The other is the output buffer (1500 byte ), Address range is 0x5DC-0xBB7.

TCP Server End

It is assumed that the length of the input data configured by the user is  L1, The length of the output data is L2. Xingda is easy to control XD-ETHs20 The gateway will take [0x000,L1] Data within the address range is sent to TCP In the network , When from TCP When the network receives data ,TCP - RTURS485 Will write data to [0x5DC,0x5DC+L2] Address range .

Modbus RTU End

When the serial port is running  Modbus Master station agreement , For Xingda, it is easy to control XD-ETHs20 All write registers supported by the gateway 、 Write coil command , You can go from  0x000-0x5DB、0x5DC-0xBB7 Access data within the address range , issue Modbus From station . about XD-ETHs20 All supported read registers 、 Read coil command , Xingda is easy to control XD-ETHs20 The gateway will come from  Modbus The data returned from the station is written to 0x000-0x5DB Within the scope of .

Be careful :Modbus The number of commands that can be configured in the master station is 32 strip , Each command can read a continuous set of Modbus register .

Modbus master station

The configurable parameters are :Modbus Communication baud rate 、 Data bits 、 Parity mode 、 Stop bit 、 Communication transmission mode 、 Response waiting time 、 Polling delay time 、 Output command polling mode 、 Pulse output time 、 Scan rate Modbus through News wave , rate : 1200bit/s, 2400bit/s, 4800bit/s, 9600bit/s, 19200bit/s, 38400bit/s, 57600bit/s, 115200bit/. Data bits :7、8、9 position .

Parity mode : nothing 、 p. 、 accidentally .

Stop bit :1 position 、2 position .

Communication transmission mode :RTU.

Response waiting time : When  Modbus After the master station sends the command , Waiting time for response from the slave station , Range :100ms~50000ms.

Polling delay time : When  Modbus After the master station sends the command , After receiving the correct response or the response times out , Send next Modbus Delay time before command , Range :0~2500ms.

Output command polling mode :Modbus Write orders , There are four output modes : Continuous output 、 No output 、 Variable output and pulse output .

Continuous output : And  Modbus The output mode of read command is the same , Scan output according to the scan ratio ; No output : No output Modbus Write orders ;

Variable output : When the output data changes , Output write command , And stop the output after receiving the correct response data ;  Pulse output : According to the pulse period , Output write command .

Pulse output time : Pulse time of pulse output mode .

Scan rate :

Xingda is easy to control XD-ETHs20 Equipment in  TCP On one side TCP Server, stay RTU One side passes through RS485 It can be used as Modbus master station ;

Function code : Support  01H、02H、03H、04H、05H、06H、0FH、10H Function No ;

Power supply :24VDC(±5%), The most powerful 3.5W ;

Working environment temperature :-25~55℃, humidity ≤95%;

Dimensions :34mm( wide )×110mm( high )×70mm( thick ) ;

Installation mode :35mm Guide ;

Protection level :IP20;

www.endaic.com

classification :  gateway

原网站

版权声明
本文为[Xingda easy to control]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202281349195051.html