CN203135924U - Industrial ethernet protocol converter - Google Patents

Industrial ethernet protocol converter Download PDF

Info

Publication number
CN203135924U
CN203135924U CN 201220722060 CN201220722060U CN203135924U CN 203135924 U CN203135924 U CN 203135924U CN 201220722060 CN201220722060 CN 201220722060 CN 201220722060 U CN201220722060 U CN 201220722060U CN 203135924 U CN203135924 U CN 203135924U
Authority
CN
China
Prior art keywords
module
ethernet
industrial ethernet
interface module
mcu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201220722060
Other languages
Chinese (zh)
Inventor
陆俭国
任世彬
刘国兴
李奎
王丽丽
张军
韩松
张添琦
陈思敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hebei University of Technology
Original Assignee
Hebei University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hebei University of Technology filed Critical Hebei University of Technology
Priority to CN 201220722060 priority Critical patent/CN203135924U/en
Application granted granted Critical
Publication of CN203135924U publication Critical patent/CN203135924U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model relates to an industrial Ethernet protocol converter and relates to data switch networks for digital information transmission. The industrial Ethernet protocol converter includes a hardware part and a software part, wherein the hardware part includes an MCU module, a power source module, an RS485 serial interface module, an Ethernet interface module, an scale-out memory, a communication state indication module and a reset and crystal oscillation circuit, and the software part includes an OpenTCP protocol stack and an HTTP webpage protocol embedded in an MCU. According to the hardware part, the MCU is adopted as a core device; the MCU is connected with a Modbus network through the RS485 serial interface module and is connected with an industrial Ethernet through the Ethernet interface module; and each component of the hardware part cooperates with each other so as to enable information communication between the Modbus network and the industrial Ethernet. With the industrial Ethernet protocol converter adopted, high-speed and real-time communication of on-site equipment can be realized on the Modbus network; and the defects of large installation space, high cost and inconvenient installation in the prior art can be eliminated.

Description

The industrial ethernet protocol transducer
Technical field
The technical solution of the utility model relates to the data switch network of digital information transmission, specifically industrial ethernet protocol transducer.
Background technology
The fast development of network technology has caused the deep technological change of automation field, being that the network control technology of representative is the product that modern automatic control technology combines with information network technique with fieldbus and Industrial Ethernet technology, is the emphasis R﹠D direction that using IT to propel industrialization.The network control technology just develops from traditional fieldbus networks control technology to Industrial Ethernet network control technique direction at present.Utilize a series of ready-made agreements of Ethernet, and add the agreement that industrial communication needs in application layer, satisfied the requirement of industrial communication now.
CN200510027275.5 discloses " method for converting protocol between a kind of Modbus and DeviceNet ", has provided the method for converting protocol between a kind of Modbus and DeviceNet.CN200720063832.3 has disclosed " a kind of universal serial port is to the converter of CAN bus interface ", has provided the method for a kind of CAN interface equipment and serial equipment interconnected communication.In above-mentioned prior art, relate to Modbus network and Devicenet network and the interconnected method of CAN bus network, but Devicenet network and CAN bus network communication speed are low, the access node number is limited, can not satisfy field apparatus on the Modbus network at a high speed and the requirement of real time communication.CN201639591U has reported a kind of Industrial Ethernet switch of embedded protocol converter function, and this body installing space is big, cost is high and inconvenience is installed.
The utility model content
Technical problem to be solved in the utility model is: the industrial ethernet protocol transducer is provided, Modbus RTU network and ethernet network is interconnected, utilize the advantage of Ethernet to realize field apparatus high speed and real time communication on the Modbus RTU network, overcome the shortcoming that the prior art installing space is big, cost is high and installation is inconvenient simultaneously.
The utility model solves this technical problem the technical scheme that adopts: the industrial ethernet protocol transducer, comprise hardware and software two parts, wherein hardware components is by MCU module, power module, RS485 serial interface module, ethernet interface module, outer extension memory, communications status indicating module with reset and crystal oscillating circuit constitutes; The circuit connecting relation of above-mentioned parts is: power module is connected to MCU module and RS485 serial interface module; The MCU module is again respectively with RS485 serial interface module, ethernet interface module, outer extension memory, communications status indicating module with reset and crystal oscillating circuit interconnection; Wherein software section is included in the OpenTCP protocol stack that single-chip microcomputer is embedded in and the HTTP web page protocol two parts that are embedded at single-chip microcomputer; Above-mentioned hardware components is core devices with MCU, realize and being connected of Modbus network by the RS485 serial interface module, realize and being connected of Industrial Ethernet that by ethernet interface module all hardware partly cooperatively interacts the Modbus network is communicated with Industrial Ethernet information.
Above-mentioned industrial ethernet protocol transducer, described power supply is touched piece, comprises DC24V input, DC24V-DC5V insulating power supply and DC5V-DC3.3V voltage stabilizing chip as the power supply primary input.
Above-mentioned industrial ethernet protocol transducer, described RS485 serial interface module comprises RS485 transceiving chip and RS485 terminal.
Above-mentioned industrial ethernet protocol transducer, described ethernet interface module comprises ethernet network transformer and RJ45 interface.
Above-mentioned industrial ethernet protocol transducer, described outer extension memory, its type is EEPROM.
Above-mentioned industrial ethernet protocol transducer, described communications status indicating module comprises state/power supply, speed/connection, Ethernet transmitting-receiving and four double-colored status indicator lamps of 485 transmitting-receivings.
Above-mentioned industrial ethernet protocol transducer, described resetting and crystal oscillating circuit carries electrification reset module and software reset's module comprising single-chip microcomputer inside, and crystal oscillating circuit selects for use the 25.000M crystal oscillator to provide required dominant frequency clock for single-chip microcomputer.
Above-mentioned industrial ethernet protocol transducer, the main-process stream of the software program in the described software section is: beginning → interruption initialization → serial ports and Ethernet initialization → master chip initialization → set up OpenTCP protocol stack → ethernet side to receive data? Startup Ethernet commentaries on classics Modbus module → with denying; Is the Modbus end received data? Startup Modbus commentaries on classics ethernet module → with denying; Trigger parameter configure interrupt whether? Enter configuration mode → with not; Return ethernet side and receive data?
Above-mentioned industrial ethernet protocol transducer, the flow process that the startup Ethernet in the main-process stream of the software program in the described software section changes the Modbus module is:
Does does beginning → set up TCP connection → this protocol converter intercept 502 ports → host computer and send data? Return this protocol converter and continue to intercept 502 ports; Ethernet interruption → resolution data bag → be the TCP type of message? Abandon receive message → returning this protocol converter continues to intercept 502 ports; MCU handles the TCP message, extracts PDU → MCU serial ports and interrupts, and sends Modbus RTU frame to slave computer → end.
Above-mentioned industrial ethernet protocol transducer, the flow process that enters configuration mode in the main-process stream of the software program in the described software section is:
Begin → read or revise serial ports and each parameter of Ethernet? Read each parameter among the EEPROM → each parameter value is back to host computer → end; Wipe parameter among the EEPROM, deposit wherein → reinitialize the modification value in serial ports and Ethernet → end.
Above-mentioned industrial ethernet protocol transducer, described to be embedded in the OpenTCP protocol stack at single-chip microcomputer be for realizing the data conversion software of data converting function between Modbus rtu protocol and Modbus Transmission Control Protocol, and described to be embedded in the HTTP web page protocol at single-chip microcomputer be for realizing the configuration software of serial ports parameter and Ethernet parameter configuration function.
Above-mentioned industrial ethernet protocol transducer, described MCU module are selected 16 HCS series monolithics of Freescale MC9S12NE64VTU for use, have 10M/100M self adaptation ethernet mac controller, by carrying the external Ethernet PHY of MII interface chip.
The beneficial effects of the utility model are: compared with prior art, the outstanding substantive distinguishing features of the utility model industrial ethernet protocol transducer is, adopt single device connectivity scenario, utilize 16 single-chip microcomputers of Freescale HCS12 series of integrated ethernet mac layer and physical layer to realize that single device Ethernet is connected, the smart machine that will have the Modbus communication interface is connected into Industrial Ethernet, make the intelligent communication device of different manufacturers production become network by ethernet interconnect, use the Ethernet monitoring software to realize centralized control and data acquisition function.Compared with prior art, the significant advantage of the utility model industrial ethernet protocol transducer is that design circuit plate length and width size only is 10cm*6cm in this industrial ethernet protocol transducer, need installing space little, in commercial Application, can be integrated into easily in the serial equipment; It is that the RJ45 interface is linked the 100Base-TX Ethernet with serial equipment that the Ethernet side provides electrical interface, and on the basis of satisfying the requirement of commercial Application operation implementation, the maximized enterprise's application cost that reduced is increased the benefit.
Description of drawings
Below in conjunction with drawings and Examples the utility model is further specified.
Fig. 1 is the hardware principle of compositionality block diagram of the utility model industrial ethernet protocol transducer.
Fig. 2 is the formation block diagram of power module, RS485 serial interface module and ethernet interface module in the utility model industrial ethernet protocol transducer hardware.
Fig. 3 is the arrangement schematic layout pattern of the hardware of the utility model industrial ethernet protocol transducer.
Fig. 4 is the general flow chart of the software section program of the utility model industrial ethernet protocol transducer.
Fig. 5 is that the startup Ethernet in the software section program of the utility model industrial ethernet protocol transducer changes the flow chart of Modbus module.
Fig. 6 is the flow chart that enters configuration mode in the software section program of the utility model industrial ethernet protocol transducer.
Among the figure, the 1.MCU module, 2. power module, the 3.RS485 serial interface module, 4. ethernet interface module, 5. outer extension memory, 6. the communications status indicating module 7. resets and crystal oscillating circuit.
Embodiment
Embodiment illustrated in fig. 1 showing, the utility model industrial ethernet protocol transducer hardware components is by MCU module 1, power module 2, RS485 serial interface module 3, ethernet interface module 4, outer extension memory 5, communications status indicating module 6 and reset and crystal oscillating circuit 7 constitutes; The circuit connecting relation of above-mentioned parts is: power module 2 is connected to MCU module 1 and RS485 serial interface module 3; MCU module 1 is again respectively with RS485 serial interface module 3, ethernet interface module 4, outer extension memory 5, communications status indicating module 6 with reset and crystal oscillating circuit 7 interconnection; Ethernet interface module 4 is connected with Industrial Ethernet, RS485 serial interface module 3 and Modbus network connection.
Embodiment illustrated in fig. 2 showing, the composition of power module 2, RS485 serial interface module 3 and ethernet interface module 4 in the utility model industrial ethernet protocol transducer hardware components.Wherein, Fig. 2 a shows that the power module 2 of the utility model industrial ethernet protocol transducer hardware components comprises DC24V input, DC24V-DC5V insulating power supply and the DC5V-DC3.3V voltage stabilizing chip as the power supply primary input; Fig. 2 b shows that the RS485 serial interface module 3 of the utility model industrial ethernet protocol transducer hardware components comprises RS485 transceiving chip and RS485 terminal; Fig. 2 c shows that the ethernet interface module 4 of the utility model industrial ethernet protocol transducer hardware components comprises too net network transformer and RJ45 interface.
Embodiment illustrated in fig. 3 showing, the arrangement layout of the hardware of the utility model industrial ethernet protocol transducer is that the way circuit plate is of a size of length * wide=10cm * 6cm, and profile is small and exquisite, is convenient to install; Wherein RS485 serial interface module 3 and ethernet interface module 4 lay respectively at two ends, are convenient to realize being connected of Modbus network and Industrial Ethernet; Main MCU module 1 is positioned at the center, ethernet network transformer in power module 2, the ethernet interface module 4, outer extension memory 5, communications status indicating module 6 and reset and crystal oscillating circuit 7 is distributed in around the MCU module 1, make MCU module 1 the shortest to each module distance, reduce the serial interference of signal.
Embodiment illustrated in fig. 4 showing, the main-process stream of the software program in the utility model industrial ethernet protocol transducer in the software section is:
Beginning → interruption initialization → serial ports and Ethernet initialization → master chip initialization → set up OpenTCP protocol stack → ethernet side to receive that data are not? Startup Ethernet commentaries on classics Modbus module → with denying; Is the Modbus end received data? Startup Modbus commentaries on classics ethernet module → with denying; Trigger parameter configure interrupt whether? Enter configuration mode → with not; Return ethernet side and receive data?
Embodiment illustrated in fig. 5 showing, the flow process that the startup Ethernet in the main-process stream of the software program in the software section of the utility model industrial ethernet protocol transducer changes the Modbus module is:
Does does beginning → set up TCP connection → this protocol converter intercept 502 ports → host computer and send data? Return this protocol converter and continue to intercept 502 ports; Ethernet interruption → resolution data bag → be the TCP type of message? Abandon receive message → returning this protocol converter continues to intercept 502 ports; MCU handles the TCP message, extracts PDU → MCU serial ports and interrupts, and sends Modbus RTU frame to slave computer → end.
Embodiment illustrated in fig. 6 showing, the flow process that enters configuration mode in the main-process stream of the software program in the software section of the utility model industrial ethernet protocol transducer is:
Begin → read or revise serial ports and each parameter of Ethernet? Read each parameter among the EEPROM → each parameter value is back to host computer → end; Wipe parameter among the EEPROM, deposit wherein → reinitialize the modification value in serial ports and Ethernet → end.
Embodiment
Become the utility model industrial ethernet protocol transducer according to the described embodiment device of above-mentioned Fig. 1~Fig. 6, wherein said MCU module 1, select 16 HCS series monolithics of Freescale MC9S12NE64VTU for use, has 10M/100M self adaptation ethernet mac controller, by carrying the external Ethernet PHY of MII interface chip, realize that Address Recognition and ethernet type filter, support half-duplex and full-duplex communication, adopt the twisted-pair feeder connected mode to link Industrial Ethernet, the longest communication distance is no more than 100 meters.The integrated circuit of this industrial ethernet protocol transducer is core with MCU module 1, power module 2 selects for use normally used DC24V input as the primary input of power supply, and avoid the excessive power module 2 that burns of a step-down, utilize the DC24V-DC5V insulating power supply that the DC24V input is become DC5V output earlier, recycling DC5V-DC3.3V voltage stabilizing chip becomes DC3.3V output with the DC5V input to be used for MCU module 1 and 485 serial interface modules 3; RS485 serial interface module 3 connects Modbus RTU network, and ethernet interface module 4 connects Industrial Ethernet.Above-mentioned integrated circuit is the internetwork node of Modbus RTU network and Industrial Ethernet, realized the function of Modbus TCP network primary station, and energy self adaptation ethernet side 10/100M speed is finished network connection, protocol analysis and data forwarding capability between Modbus-RTU agreement and the Modbus-TCP agreement.The communications status indicating module 6 of this industrial ethernet protocol transducer, comprise state/power supply, speed/connection, Ethernet transmitting-receiving and four double-colored status indicator lamps of 485 transmitting-receivings, wherein state/power supply indicator is indicated this protocol converter operating state and power supply connection status, speed/connection indicator light is indicated this protocol converter message transmission rate and TCP connection status, Ethernet transmitting-receiving indicator light indication ethernet side data transmit-receive state, 485 transmitting-receiving indicator lights are indicated 485 end data reiving/transmitting states.Resetting and crystal oscillating circuit 7 of this industrial ethernet protocol transducer, carry electrification reset module and software reset's module comprising single-chip microcomputer inside, can realize automatically reseting and hand-reset of single-chip microcomputer, crystal oscillating circuit selects for use the 25.000M crystal oscillator to provide required dominant frequency clock for single-chip microcomputer.
In the main-process stream of the software section program of above-mentioned industrial ethernet protocol transducer, described interruption initialization comprises that switch always interrupts serial ports interruption, Ethernet interruption etc., avoids triggering before initialization is not finished interrupting, and produces unforeseen run-time error; Described serial ports and Ethernet initialization comprise each the parameter setting of serial ports and Ethernet, to satisfy the different application occasion; Described master chip is single-chip microcomputer MC9S12NE64VTU, and described master chip initialization comprises clock initialization and timer initialization; Describedly judge whether ethernet side receives the program that data are later, refer to that starting Ethernet if ethernet side is received the data that host computer is sent changes the Modbus module, it is the flow process that startup Ethernet shown in Figure 5 changes the Modbus module, master chip is receiving that the Modbus PDU that comprises in the ethernet data frame extracts, and sends to descending smart machine according to Modbus RTU data frame format; Whether the described Modbus of judgement end receives that the later program of data is, if the Modbus end is received the reply data that descending smart machine returns, then start Modbus and change ethernet module, Modbus RTU Frame is embedded in the ethernet data frame, connects the host computer monitoring software that is transferred to ethernet side by TCP; The described later program of trigger parameter configure interrupt that judges whether is, if triggered this interruption, then enter configuration mode, the flow process of configuration mode as shown in Figure 6, judge that user's modification still reads serial ports and each parameter of Ethernet, if revise parameter, then wipe the parameter of having deposited among the EEPROM, the modification value that the user is new deposits among the EEPROM, and initialization string mouth and Ethernet again; If the parameter of reading then reads the data of storing among the EEPROM, and is back to host computer; If do not trigger this interruption, then got back to for the 4th step and continue to judge whether ethernet side receives data.The protocol converter software of above-mentioned industrial ethernet protocol transducer, adopt the transparent transmission theory, be embedded in the OpenTCP protocol stack at single-chip microcomputer, setting up TCP connects, Modbus RTU Frame is embedded in the TCP message transmits, realize the reliable communication of Modbus RTU network and Modbus TCP network, make this protocol converter place node have Modbus TCP master function simultaneously, Modbus agreement stipulations according to field apparatus send corresponding control command to the utility model, transmit by protocol analysis of the present utility model and data, reach the purpose of the descending serial equipment of control.
The device network that the industrial ethernet protocol transducer of present embodiment is set up the Modbus fieldbus is linked Industrial Ethernet, employing transparent transmission mode has realized the transfer of data between Modbus rtu protocol and Modbus Transmission Control Protocol, realized the function of Modbus TCP main website by setting up the OpenTCP protocol stack, revise baud rate by the configuration software based on the HTTP web page protocol, serial ports parameter and IP addresses such as verification mode, Ethernet parameters such as subnet mask, make host computer can monitor the operating state of Modbus serial equipment and the service data of gathering the Modbus serial equipment in real time, the interconnected one-tenth network of intelligent communication device that different manufacturers is produced realizes concentrating comprehensively monitoring.
Each used in above-described embodiment module device all obtains by being purchased approach, and the method for attachment between each hardware components is that those skilled in the art can grasp.

Claims (6)

1. industrial ethernet protocol transducer, it is characterized in that: comprise hardware and software two parts, wherein hardware components is by MCU module, power module, RS485 serial interface module, ethernet interface module, outer extension memory, communications status indicating module with reset and crystal oscillating circuit constitutes; The circuit connecting relation of above-mentioned parts is: power module is connected to MCU module and RS485 serial interface module; The MCU module is again respectively with RS485 serial interface module, ethernet interface module, outer extension memory, communications status indicating module with reset and crystal oscillating circuit interconnection; Wherein software section is included in the OpenTCP protocol stack that single-chip microcomputer is embedded in and the HTTP web page protocol two parts that are embedded at single-chip microcomputer; Above-mentioned hardware components is core devices with MCU, realize and being connected of Modbus network by the RS485 serial interface module, realize and being connected of Industrial Ethernet that by ethernet interface module all hardware partly cooperatively interacts the Modbus network is communicated with Industrial Ethernet information.
2. according to the said industrial ethernet protocol transducer of claim 1, it is characterized in that: described power supply is touched piece, comprises DC24V input, DC24V-DC5V insulating power supply and DC5V-DC3.3V voltage stabilizing chip as the power supply primary input.
3. according to the said industrial ethernet protocol transducer of claim 1, it is characterized in that: described RS485 serial interface module comprises RS485 transceiving chip and RS485 terminal.
4. according to the said industrial ethernet protocol transducer of claim 1, it is characterized in that: described ethernet interface module comprises ethernet network transformer and RJ45 interface.
5. according to the said industrial ethernet protocol transducer of claim 1, it is characterized in that: described communications status indicating module comprises state/power supply, speed/connection, Ethernet transmitting-receiving and four double-colored status indicator lamps of 485 transmitting-receivings.
6. according to the said industrial ethernet protocol transducer of claim 1, it is characterized in that: described resetting and crystal oscillating circuit, carry electrification reset module and software reset's module comprising single-chip microcomputer inside, crystal oscillating circuit selects for use the 25.000M crystal oscillator to provide required dominant frequency clock for single-chip microcomputer.
CN 201220722060 2012-12-19 2012-12-19 Industrial ethernet protocol converter Expired - Fee Related CN203135924U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220722060 CN203135924U (en) 2012-12-19 2012-12-19 Industrial ethernet protocol converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220722060 CN203135924U (en) 2012-12-19 2012-12-19 Industrial ethernet protocol converter

Publications (1)

Publication Number Publication Date
CN203135924U true CN203135924U (en) 2013-08-14

Family

ID=48943857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220722060 Expired - Fee Related CN203135924U (en) 2012-12-19 2012-12-19 Industrial ethernet protocol converter

Country Status (1)

Country Link
CN (1) CN203135924U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036892A (en) * 2012-12-19 2013-04-10 河北工业大学 Industrial ethernet protocol converter
CN111131194A (en) * 2019-12-10 2020-05-08 南京理工大学 Network protocol converter based on software and hardware protocol stack and protocol conversion method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036892A (en) * 2012-12-19 2013-04-10 河北工业大学 Industrial ethernet protocol converter
CN111131194A (en) * 2019-12-10 2020-05-08 南京理工大学 Network protocol converter based on software and hardware protocol stack and protocol conversion method

Similar Documents

Publication Publication Date Title
CN103036892A (en) Industrial ethernet protocol converter
CN101425948B (en) Industrial wireless network access industrial Ethernet, multi-protocol gateway of field bus and protocol conversion method
CN102833112B (en) Communication management machine having looped network function
CN203827378U (en) Serial server
CN103825883A (en) Multi-protocol conversion equipment based on wireless ZigBee, CAN bus and MODBUS/TCP and realization method thereof
CN103152236B (en) The protocol conversion module of Modbus and TCP and intelligent breaker
CN103248542A (en) Gateway device base on multi-antenna data information fusion
CN103475575A (en) PLC-based intelligent household gateway apparatus
CN201732467U (en) Multi-point and multi-type data acquisition system based on wireless sensor network
CN103763187A (en) IP gateway of EnOcean and KNX and communication network and method
CN203135924U (en) Industrial ethernet protocol converter
Hui et al. Design and application of communication gateway of EPA and MODBUS on electric power system
CN206991535U (en) Novel intelligent meter reading collecting transmitter
CN201556978U (en) Remote monitoring module for power system switching value
CN202334587U (en) Gateway device for mutual conversion of messages of buses
CN205899366U (en) A data acquisition and network device for intelligent manufacturing system
CN202331173U (en) Industrial controller and industrial network control system
CN203206485U (en) Electric power demodulator apparatus base station
CN106850368A (en) A kind of control method of repeater and its data transfer
CN103298167A (en) Mobile data gateway of Internet of things
CN208143237U (en) A kind of KNX IP gateway based on LoRa technology
CN207995122U (en) A kind of multi-protocols intelligent gateway based on narrowband Internet of Things
CN202043143U (en) EtherCAT high-dense digital IO (input/output) interface module
CN110165780A (en) Electric parameter monitoring device, monitor terminal for low-pressure side power grid
CN202135171U (en) Embedded remote intelligent upgrading device

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130814

Termination date: 20171219

CF01 Termination of patent right due to non-payment of annual fee