CN117714236A - Gateway communication device and communication system - Google Patents

Gateway communication device and communication system Download PDF

Info

Publication number
CN117714236A
CN117714236A CN202410160575.3A CN202410160575A CN117714236A CN 117714236 A CN117714236 A CN 117714236A CN 202410160575 A CN202410160575 A CN 202410160575A CN 117714236 A CN117714236 A CN 117714236A
Authority
CN
China
Prior art keywords
protocol
resistor
capacitor
unit
control module
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.)
Pending
Application number
CN202410160575.3A
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.)
6th Research Institute of China Electronics Corp
Original Assignee
6th Research Institute of China Electronics Corp
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 6th Research Institute of China Electronics Corp filed Critical 6th Research Institute of China Electronics Corp
Priority to CN202410160575.3A priority Critical patent/CN117714236A/en
Publication of CN117714236A publication Critical patent/CN117714236A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a gateway communication device and a communication system, relate to the communication technology field, gateway communication device includes first protocol processing module, first protocol control module, master control module, second protocol processing module that forms on the mainboard, wherein, every first protocol processing module is including the first protocol connecting unit that connects gradually, first transformation unit and first analog-to-digital conversion unit, first protocol connecting unit be used for with the first protocol communication interface connection of first target equipment, first analog-to-digital conversion unit still is connected with first protocol control module, first protocol control module still is connected with master control module's first target interface, second protocol processing module is including the second analog-to-digital conversion unit that connects gradually, second transformation unit and second protocol connecting unit, second protocol connecting unit be used for with the second protocol communication interface connection of second target equipment, second analog-to-digital conversion unit still is connected with master control module's second target interface.

Description

Gateway communication device and communication system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a gateway communications device and a communications system.
Background
Various devices on the industrial field need to follow a communication protocol to communicate, but the communication protocols configured between different devices are different, which can affect the control of the industrial field, for example, data interaction between a device adopting the EtherCAT protocol and a device adopting the Modbus protocol in the industrial field is not possible at present.
Disclosure of Invention
In view of this, an object of the present application is to provide a gateway communication apparatus and a communication system for implementing communication between a device employing the EtherCAT protocol and a device employing the Modbus protocol.
In a first aspect, the present application provides a gateway communication device, the gateway communication device includes a first protocol processing module, a first protocol control module, a main control module, and a second protocol processing module formed on a motherboard, where each first protocol processing module includes a first protocol connection unit, a first transformation unit, and a first analog-to-digital conversion unit that are sequentially connected, the first protocol connection unit is used for being connected with a first protocol communication interface of a first target device, the first analog-to-digital conversion unit is further connected with the first protocol control module, the first protocol control module is further connected with a first target interface of the main control module, the second protocol processing module includes a second analog-to-digital conversion unit, a second transformation unit, and a second protocol connection unit that are sequentially connected, the second protocol connection unit is used for being connected with a second protocol communication interface of a second target device, and the second analog-to-digital conversion unit is further connected with a second target interface of the main control module.
Preferably, the gateway communication device further comprises a power supply module formed on the main board, wherein the power supply module comprises a power interface, a protection unit, a first voltage reduction unit and a second voltage reduction unit, the power interface is used for being connected with an external power supply, the power interface is connected with the protection unit, the protection unit is connected with a first end of the first voltage reduction unit, a second end of the first voltage reduction unit is connected with a first end of the second voltage reduction unit, a third end of the first voltage reduction unit is used for providing a voltage signal of a first voltage value, and a second end of the second voltage reduction unit is used for providing a voltage signal of a second voltage value; the first voltage value is smaller than a third voltage value of the external power supply, and the first voltage value is larger than the second voltage value.
Preferably, the protection unit is further connected with a third target interface of the main control module, and inputs a voltage signal of a third voltage value to the third target interface, when the external power supply is abnormal, after the voltage signal input to the third target interface by the protection unit is smaller than the fourth voltage value, the protection unit continues to input the voltage signal of the third voltage value to the third target interface for a preset time period, so that the main control module stores the operation data.
Preferably, the power interface comprises a first terminal, a second terminal and a third terminal, one end of the first terminal is used for being connected with a live wire of an external power supply, one end of the second terminal is used for being connected with a zero line of the external power supply, one end of the third terminal is used for being connected with a ground wire of the external power supply, the protection unit comprises a protection circuit, an early warning circuit and an early warning power supply circuit, wherein the first end of the protection circuit is connected with the other end of the first terminal, the second end of the protection circuit is connected with the other end of the second terminal, the third end of the protection circuit is connected with the other end of the fourth terminal, the fifth end of the protection circuit is connected with the first end of the early warning circuit and the first end of the power supply circuit respectively, and the second end of the early warning circuit is connected with a third target interface of the main control module.
Preferably, the protection circuit comprises a first voltage stabilizing diode, a first resistor, a second resistor, a first gas discharge tube, a third resistor, a second gas discharge tube, a fourth resistor, a first capacitor, a second capacitor, a common mode inductor, a first filter inductor, a second filter inductor, a first TVS diode, a second TVS diode, a third TVS diode and a third capacitor which are sequentially connected in series, wherein the positive electrode of the first diode is connected with the other end of the first terminal, one end of the first gas discharge tube connected with the third resistor is also connected with the other end of the second terminal, one end of the second gas discharge tube is connected with the other end of the third terminal, the first end of the fourth resistor is connected between the first resistor and the second resistor, the second end of the fourth resistor is connected between the third resistor and the second gas discharge tube, the first end of the first capacitor is connected with the first end of the fourth resistor, the second end of the second capacitor is connected with the first end of the second capacitor, the second end of the second capacitor is connected with the second end of the second capacitor, the second end of the second capacitor is connected with the first end of the first capacitor, the second end of the second capacitor is connected with the first capacitor, the first end of the second capacitor is connected with the first end of the first capacitor, the first end of the first capacitor is connected with the first capacitor, the first end of the second capacitor is connected with the first end of the first capacitor, the first end of the second capacitor is connected with the first capacitor, the second capacitor is connected with the first end of the first capacitor, and the second capacitor is connected with the first end of the first capacitor, the second end of the third TVS diode is connected with the second end of the second TVS diode, the first end of the third capacitor is connected with the first end of the third TVS diode, the first end of the third capacitor is also connected with the first end of the early warning circuit and the first end of the power supply circuit respectively, and the second end of the third capacitor is connected with the second end of the first TVS diode and grounded.
Preferably, the early warning circuit comprises a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a voltage stabilizer, a comparator and a fourth capacitor, wherein the first end of the fifth resistor is connected with the first end of the third capacitor, the second end of the fifth resistor is connected with the cathode of the voltage stabilizer, the anode of the voltage stabilizer is grounded, the reference electrode of the voltage stabilizer is connected with the inverting input end of the comparator, the first end of the sixth resistor is connected with the first end of the fifth resistor, the second end of the sixth resistor is connected with the first end of the seventh resistor, the second end of the sixth resistor is also connected with the non-inverting input end of the comparator, the second end of the seventh resistor is grounded, the first end of the fourth capacitor is connected with the first end of the fifth resistor, the grounding end of the comparator is grounded, the output end of the comparator is connected with the first end of the eighth resistor, and the output end of the comparator is connected with the third target interface of the master control module.
Preferably, the early warning power supply circuit comprises a second voltage stabilizing diode, a third voltage stabilizing diode, a fourth voltage stabilizing diode, a ninth resistor, a tenth resistor connected in parallel with the ninth resistor, a fifth capacitor, a sixth capacitor, a seventh capacitor and an eighth capacitor connected in parallel, wherein the positive electrode of the second voltage stabilizing diode is connected with the first end of the third capacitor, the negative electrode of the second voltage stabilizing diode is connected with the first end of the ninth resistor, the second end of the ninth resistor is connected with the first end of the fifth capacitor, the second end of the fifth capacitor is grounded, the positive electrode of the third voltage stabilizing diode is connected with the positive electrode of the second voltage stabilizing diode, the negative electrode of the third voltage stabilizing diode is connected with a second power supply, the positive electrode of the fourth voltage stabilizing diode is connected with the second end of the ninth resistor, and the negative electrode of the fourth voltage stabilizing diode is connected with the second power supply.
Preferably, the first protocol connection unit is configured to receive a message signal output by a first protocol communication interface of the first target device; the first protocol control module is used for acquiring a control sub-message in a first protocol format according to the received message signal converted by the first analog-to-digital conversion unit; the main control module is used for processing the received control sub-message in the first protocol format into the control sub-message in the second protocol format based on a preset parameter mapping table; the second protocol connection unit is configured to send the received control sub-packet in the second protocol format after being converted by the second analog-to-digital conversion unit to a second protocol communication interface of the second target device, so that the second target device executes the target action indicated by the control sub-packet.
Preferably, the second protocol connection unit is further configured to receive a feedback sub-packet in a second protocol format, where the feedback sub-packet is used by the second target device to indicate that the target action is performed; the main control module is further used for processing the feedback sub-message in the second protocol format converted by the second analog-to-digital conversion unit into the feedback sub-message in the first protocol format based on a preset parameter mapping table; the first protocol control module is also used for adding the received feedback sub-message in the first protocol format into the target message signal; the first protocol connection unit is further configured to send the received target message signal converted by the first analog-to-digital conversion unit to a first protocol communication interface of the first target device or to a first protocol communication interface of the third target device.
In a second aspect, the present application provides a communication system, the system comprising a gateway communication device as described above, a first target apparatus connected to the gateway communication device via a first protocol communication interface, and a second target apparatus connected to the gateway communication device via a second protocol communication interface.
The gateway communication device comprises at least one first protocol processing module, a first protocol control module, a main control module and a second protocol processing module which are formed on a main board; each first protocol processing module comprises a first protocol connection unit, a first transformation unit and a first analog-to-digital conversion unit which are sequentially connected, wherein the first protocol connection unit is used for being connected with a first protocol communication interface of first target equipment, and the first analog-to-digital conversion unit is also connected with a first protocol control module; the first protocol control module is also connected with a first target interface of the main control module; the second protocol processing module comprises a second analog-to-digital conversion unit, a second transformation unit and a second protocol connection unit which are sequentially connected, the second protocol connection unit is used for being connected with a second protocol communication interface of second target equipment, the second analog-to-digital conversion unit is also connected with a second target interface of the main control module, and the gateway communication device can realize communication between equipment adopting EtherCAT protocol and equipment adopting Modbus protocol.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a gateway communication device according to an embodiment of the present application;
fig. 2 is a schematic diagram of a connection relationship between a first protocol control module and a main control module according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a power supply module according to an embodiment of the present disclosure;
fig. 4 is a circuit diagram of a protection circuit according to an embodiment of the present application;
fig. 5 is a circuit diagram of an early warning circuit and an early warning power supply circuit provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of another gateway communication apparatus according to an embodiment of the present application;
Fig. 7 is a schematic diagram of a communication system according to an embodiment of the present application.
Marking:
the voltage regulator comprises a first resistor-R1, a second resistor-R2, a third resistor-R3, a fourth resistor-R4, a fifth resistor-R5, a sixth resistor-R6, a seventh resistor-R7, an eighth resistor-R8, a ninth resistor-R9, a tenth resistor-R10, a first capacitor-C1, a second capacitor-C2, a third capacitor-C3, a fourth capacitor-C4, a fifth capacitor-C5, a sixth capacitor-C6, a seventh capacitor-C7, an eighth capacitor-C8, a first zener diode-D1, a second zener diode-D2, a third zener diode-D3, a fourth zener diode-D4, a first gas discharge tube-GDT 1, a second gas discharge tube-GDT 2, a first TVS diode-TVS 1, a second TVS diode-S2, a third capacitor-TVS 3, a common mode inductor-LP 1, a first filter inductor-LP 2, a second TVS diode-GDT 1, a third TVS diode-GDT 2, a common mode inductor-LP 2, a filter inductor-U3, and a voltage regulator interface.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment that a person skilled in the art would obtain without making any inventive effort is within the scope of protection of the present application.
First, application scenarios applicable to the present application will be described. The method and the device can be applied to the industrial field to realize communication between the device adopting the EtherCAT protocol and the device adopting the Modbus protocol.
Based on this, the embodiment of the application provides a gateway communication device, which includes at least one first protocol processing module, a first protocol control module, a main control module, and a second protocol processing module formed on a motherboard.
Each first protocol processing module comprises a first protocol connection unit, a first transformation unit and a first analog-to-digital conversion unit which are sequentially connected, wherein the first protocol connection unit is used for being connected with a first protocol communication interface of first target equipment, and the first analog-to-digital conversion unit is also connected with a first protocol control module; the first protocol control module is also connected with a first target interface of the main control module; the second protocol processing module comprises a second analog-to-digital conversion unit, a second transformation unit and a second protocol connection unit which are sequentially connected, wherein the second protocol connection unit is used for being connected with a second protocol communication interface of second target equipment, and the second analog-to-digital conversion unit is also connected with a second target interface of the main control module.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a gateway communication device according to an embodiment of the present application. As shown in fig. 1, the gateway communication device provided in the embodiment of the present application includes a first protocol processing module, a first protocol control module, a main control module, and a second protocol processing module formed on a motherboard.
Each first protocol processing module comprises a first protocol connection unit, a first transformation unit and a first analog-to-digital conversion unit which are sequentially connected, wherein the first protocol connection unit is used for being connected with a first protocol communication interface of first target equipment, and the first analog-to-digital conversion unit is also connected with a first protocol control module. The first protocol control module is also connected with a first target interface of the main control module.
The second protocol processing module comprises a second analog-to-digital conversion unit, a second transformation unit and a second protocol connection unit which are sequentially connected, wherein the second protocol connection unit is used for being connected with a second protocol communication interface of second target equipment, and the second analog-to-digital conversion unit is also connected with a second target interface of the main control module.
The first protocol connection unit is used for receiving a message signal output by a first protocol communication interface of the first target device. The first protocol control module is used for obtaining a control sub-message in a first protocol format according to the received message signal converted by the first analog-to-digital conversion unit. The main control module is used for processing the received control sub-message in the first protocol format into the control sub-message in the second protocol format based on a preset parameter mapping table. The second protocol connection unit is configured to send the received control sub-packet in the second protocol format after being converted by the second analog-to-digital conversion unit to a second protocol communication interface of the second target device, so that the second target device executes the target action indicated by the control sub-packet.
The gateway communication apparatus in this embodiment may be used for communication between a first target device of the EtherCAT protocol and a second target device of the Modbus protocol, where the first target device is a control device (e.g. a programmable logic controller PLC) that uses the EtherCAT protocol for communication, and the second target device may be an execution device (e.g. an electronic control valve or the like) that uses the Modbus protocol for communication that is to be controlled by the control device.
The following describes the conversion principle of the gateway communication device by using the communication process of converting the EtherCAT protocol into the Modbus protocol:
when the PLC needs to control the opening of the electric control valve, an instruction generated by the PLC is formed in a downlink message of the EtherCAT protocol communication network, and the downlink message is sent to the first protocol connection unit through a bus by a network port of the PLC.
The first protocol connection unit may be a bus connector, specifically an RJ45 network interface, an EBUS interface, or the like, and sends the acquired downlink message signal to the input end of the first voltage transformation unit. The first transforming unit may be a transformer, and is configured to process the message signal received by the first protocol connection unit to a suitable voltage value, so as to output the message signal to the first analog-to-digital conversion unit. The first analog-to-digital conversion unit may be a PHY chip, and is configured to convert a received down-link message signal (analog signal) after the step-down into a digital signal, so as to input the digital signal to the first protocol control module.
The first protocol control module can adopt EtherCAT slave station control chip ESC, each first analog-to-digital conversion unit can be connected with a PORT serial PORT of ESC, ESC is used for extracting appointed control sub-message from received digital signal.
Specifically, the ESC processes the EtherCAT data frame and writes the specified data to a buffer within the ESC. The designated data can be realized by setting a data identifier, and when the ESC reads the target data identifier, the message data carried by the target data identifier can be written into the buffer area. The ESC can also check if the read data format is correct. And finally, the first protocol control module sends the read control sub-message to the main control module.
The first protocol control module can specifically adopt an ET1100 chip to realize a protocol stack, an EEPROM (AT 24C 64B) can realize the storage of configuration information of the protocol stack, and an FPGA chip can also be adopted to realize the protocol stack.
Fig. 2 is a schematic diagram of a connection relationship between a first protocol control module and a main control module according to an embodiment of the present application, as shown in fig. 2, after the first protocol control module receives a digital signal, the first protocol control module triggers an external interrupt to the main control module through parallel port communication, and sends an extracted control sub-message to the main control module, so that the main control module performs protocol conversion.
After receiving the control sub-message through the parallel port, the main control module converts the control sub-message into a control sub-message in a second protocol format according to a preset parameter mapping table and sends the control sub-message to the second analog-to-digital conversion unit through the MII port. Here a number of parameter pairs are included in the parameter mapping table. Each parameter pair comprises an EtherCAT message parameter and a Modbus message parameter with the same meaning.
The main control module can adopt a GD32VF103 chip based on a RISC-V architecture, and can also adopt a SPARC-V8 architecture or an ARM architecture chip.
Specifically, the main control module can also be connected with the dial switch through the IO port, and an operator can set a data identifier by manually operating the dial switch.
The second analog-to-digital conversion unit is also a PHY chip (LAN 8720A), converts the control sub-packet (digital signal) in the second protocol format into an analog signal, and outputs the analog signal after being boosted by the second voltage transformation unit.
The second protocol connection unit is also a bus connector, and may be an RJ45 network port. The second protocol connection unit is connected with the communication interface of the electric control valve through a bus. The electric control valve changes the opening degree according to the received control sub message in the second protocol format.
The following describes the conversion principle of the gateway communication device by using the communication process of converting Modbus protocol into EtherCAT protocol:
the second protocol connection unit is further configured to receive a feedback sub-packet in a second protocol format, where the feedback sub-packet is used by the second target device to indicate that the target action is performed. The main control module is further configured to process the feedback sub-message in the second protocol format converted by the second analog-to-digital conversion unit into a feedback sub-message in the first protocol format based on a preset parameter mapping table. The first protocol control module is further configured to add the received feedback sub-packet in the first protocol format to the target packet signal. The first protocol connection unit is further configured to send the received target message signal converted by the first analog-to-digital conversion unit to a first protocol communication interface of the first target device or to a first protocol communication interface of the third target device.
It can be understood that after the opening of the electric control valve is changed, feedback information is formed in a Modbus protocol format and added into a downlink message of the Modbus protocol communication network. The process of converting the feedback sub-message in the Modbus protocol format into the feedback sub-message in the EtherCAT protocol by the gateway communication board is similar to the process of converting the feedback sub-message in the EtherCAT protocol into the feedback sub-message in the Modbus protocol format, and the difference is that the first protocol control module adds the feedback sub-message in the EtherCAT protocol into a downlink message, and the downlink message is fed back to the PLC or other control devices through the first protocol communication interface.
The two conversion processes may be performed by the same first protocol processing module, or may be performed by different first protocol processing modules.
Further, the gateway communication board reads and writes messages periodically, where the period may be determined according to the message cycle periods of the Modbus protocol communication network and the EtherCAT protocol communication network.
The gateway communication board provided by the embodiment of the application realizes communication between the equipment adopting the EtherCAT protocol and the equipment adopting the Modbus protocol, thereby widening the control network of the industrial field.
Fig. 3 is a schematic structural diagram of a power supply module provided in an embodiment of the present application, and fig. 6 is a schematic structural diagram of another gateway communication device provided in an embodiment of the present application. As shown in fig. 3 and fig. 6, in an embodiment of the present application, the gateway communication device further includes a power supply module formed on the motherboard, where the power supply module includes a power interface, a protection unit, a first voltage step-down unit, and a second voltage step-down unit.
The power interface is used for being connected with an external power supply, the power interface is connected with the protection unit, the protection unit is connected with the first end of the first voltage reduction unit, the second end of the first voltage reduction unit is connected with the first end of the second voltage reduction unit, and the third end of the first voltage reduction unit is used for providing a voltage signal of a first voltage value. The second end of the second voltage dropping unit is used for providing a voltage signal with a second voltage value. The first voltage value is smaller than a third voltage value of the external power supply, and the first voltage value is larger than the second voltage value.
The gateway communication device may be independently powered by an external power source of 24V, the first step-down unit may be a step-down voltage regulator (LM 2677) which regulates the external power source to 5V, and may supply power to the bus connector, while the second step-down unit outputs a voltage of 5V. The second step-down unit can be a synchronous step-down voltage stabilizer chip (LM 2853 MH-3.3), and can adjust the voltage of 5V to 3.3V and can supply power for the bus connector, the voltage transformation unit, the analog-to-digital conversion unit, the first protocol control module and the main control module.
Specifically, the power interface includes first terminal, second terminal and third terminal, and the one end of first terminal is used for being connected with external power source's live wire, and the one end of second terminal is used for being connected with external power source's zero line, and the one end of third terminal is used for being connected with external power source's ground wire. The power interface can be a wiring terminal and is connected with an external power supply through a three-phase power plug.
The protection unit comprises a protection circuit, an early warning circuit and an early warning power supply circuit, wherein the first end of the protection circuit is connected with the other end of the first terminal, the second end of the protection circuit is connected with the other end of the second terminal, the third end of the protection circuit is connected with the other end of the fourth terminal, and the fifth end of the protection circuit is respectively connected with the first end of the early warning circuit and the first end of the power supply circuit. The second end of the early warning circuit is connected with a third target interface of the main control module.
The protection circuit is used for filtering, surge protection and overvoltage protection.
Fig. 4 is a circuit diagram of a protection circuit according to an embodiment of the present application. As shown in fig. 4, the protection circuit includes a first zener diode, a first resistor, a second resistor, a first gas discharge tube, a third resistor, a second gas discharge tube, a fourth resistor, a first capacitor, a second capacitor, a common mode inductor, a first filter inductor, a second filter inductor, a first TVS diode, a second TVS diode, a third TVS diode, and a third capacitor, which are sequentially connected in series.
Wherein the positive electrode of the first diode is connected with the other end of the first terminal, one end of the first gas discharge tube connected with the third resistor is also connected with the other end of the second terminal, one end of the second gas discharge tube not connected with the other end of the third terminal, the first end of the fourth resistor is connected between the first resistor and the second resistor, the second end of the fourth resistor is connected between the third resistor and the second gas discharge tube, the first end of the first capacitor is connected with the first end of the fourth resistor, the second end of the first capacitor is connected with the first end of the second capacitor, the second end of the second capacitor is connected between the first gas discharge tube and the third resistor, the first end of the common-mode inductor is connected with the second end of the second capacitor, the second end of the common-mode inductor is connected with the first end of the first capacitor, the fourth end of the common-mode inductor is connected with the first end of the second filter inductor, the second end of the first filter inductor is connected with the first end of the first TVS diode, the second end of the second filter inductor is connected with the second end of the first TVS diode, the first end of the second TVS diode is connected with the other end of the third terminal, the first end of the third TVS diode is connected with the first end of the first TVS diode, the second end of the third TVS diode is connected with the second end of the second TVS diode, the first end of the third capacitor is connected with the first end of the third TVS diode, the first end of the third capacitor is also connected with the first end of the early warning circuit and the first end of the power supply circuit respectively, and the second end of the third capacitor is connected with the second end of the first TVS diode and grounded.
The first zener diode (model SK 14) is used here for protection against reverse. The first resistor (model 1812L 110/33) is used for overcurrent protection. The second resistor, the third resistor and the fourth resistor are piezoresistors (14D 390K in model) and the first gas discharge tube and the second gas discharge tube (BF 900M and BF801M in model respectively) together play roles of discharging lightning transient over-current and limiting over-voltage. The first capacitor and the second capacitor (both model 1 nF/Y2) play a role in filtering the ground. The common mode inductor (model is ACM 0706-103-2P) plays a role of EMI filtering and is used for inhibiting electromagnetic waves generated by the high-speed signal wire from radiating outwards. The first filter inductor and the second filter inductor (the model numbers are 33 uH/2A) are used for filtering. The first TVS diode, the second TVS diode and the third TVS diode (the model is 36V/1500W) are used for preventing surge and overvoltage protection. The third capacitor (220 uF/35V) was used for filtering.
The early warning circuit and the early warning power supply circuit of the protection unit are used for a low-voltage warning function.
Fig. 5 is a circuit diagram of an early warning circuit and an early warning power supply circuit provided in an embodiment of the present application. As shown in fig. 5, the protection unit is further connected to the third target interface of the main control module, and inputs a voltage signal of a third voltage value to the third target interface, when the external power supply is abnormal, after the voltage signal input by the protection unit to the third target interface is smaller than the fourth voltage value, the protection unit continues to input the voltage signal of the third voltage value to the third target interface for a preset period of time, so that the main control module stores the operation data.
The early warning circuit comprises a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a voltage stabilizer, a comparator and a fourth capacitor.
The first end of the fifth resistor is connected with the first end of the third capacitor, the second end of the fifth resistor is connected with the cathode of the voltage stabilizer, the anode of the voltage stabilizer is grounded, the reference electrode of the voltage stabilizer is connected with the inverting input end of the comparator, the first end of the sixth resistor is connected with the first end of the fifth resistor, the second end of the sixth resistor is connected with the non-inverting input end of the comparator, the second end of the seventh resistor is grounded, the first end of the fourth capacitor is connected with the first end of the fifth resistor, the second end of the fifth resistor is grounded, the power end of the comparator is connected with the first end of the fifth resistor, the ground of the comparator is grounded, the output end of the comparator is connected with the first end of the eighth resistor, the output end of the comparator is connected with the third target interface of the main control module, and the second end of the eighth resistor is connected with the first power supply.
The voltage stabilizer is TL431 and the comparator is LM393. When the voltage input by the non-inverting input end of the comparator is smaller than 16.7V (for example, when the external power supply is abnormally powered off), the output end of the comparator outputs a low level to the third target interface of the main control module. The main control module starts to save the current running data.
The first power supply is a 3.3V independent power supply, and can also be a second voltage reduction unit.
The early warning power supply circuit comprises a second voltage stabilizing diode, a third voltage stabilizing diode, a fourth voltage stabilizing diode, a ninth resistor, a tenth resistor connected with the ninth resistor in parallel, a fifth capacitor, a sixth capacitor, a seventh capacitor and an eighth capacitor which are connected in parallel.
The positive electrode of the second voltage stabilizing diode is connected with the first end of the third capacitor, the negative electrode of the second voltage stabilizing diode is connected with the first end of the ninth resistor, the second end of the ninth resistor is connected with the first end of the fifth capacitor, the second end of the fifth capacitor is grounded, the positive electrode of the third voltage stabilizing diode is connected with the positive electrode of the second voltage stabilizing diode, the negative electrode of the third voltage stabilizing diode is connected with the second power supply, the positive electrode of the fourth voltage stabilizing diode is connected with the second end of the ninth resistor, and the negative electrode of the fourth voltage stabilizing diode is connected with the second power supply.
When the input voltage is lower than 16.7V, the fifth capacitor to the eighth capacitor (2200 uF/35V) start to discharge, so that the power can be continuously supplied to the main control module, the data storage time of the main control module is prolonged, and the working stability of the gateway communication board is ensured.
The second power supply is a 24V independent power supply or an external power supply.
The gateway communication device in the embodiment can save data in emergency when the external power supply is abnormal, and ensures the stability of a communication network using the gateway communication device.
Fig. 7 is a schematic diagram of a communication system according to an embodiment of the present application. As shown in fig. 7, in an embodiment of the present application, there is further provided a communication system, where the system includes a gateway communication device as described above, a first target device connected to the gateway communication device through a first protocol communication interface, and a second target device connected to the gateway communication device through a second protocol communication interface.
In a specific embodiment, a PLC employing EtherCAT protocol in an industrial field needs to access an electric control valve employing MODBUS-TCP protocol through a gateway communication device to control the opening degree of the electric control valve.
At this time, the CPU of the PLC may be used as a master station in the EtherCAT protocol communication network, and the gateway communication board, the digital/analog input module of the PLC, the digital/analog output module of the PLC, or other modules may be used as slave stations in the EtherCAT protocol communication network.
In the EtherCAT protocol communication network, the message is sent circularly. Specifically, the slave station may directly process the received message, then read or write related data from the message, and then transmit the message to the next slave station. The last slave station returns the message circulated through all the slave stations to the last slave station, and finally returns the message to the master station through the first slave station.
In the MODBUS-TCP protocol communication network, the message is also sent circularly, which is different in that the gateway communication board is a MODBUS-TCP master station, and the executing devices such as the electronic control valve are MODBUS-TCP slave stations.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present application, and are not intended to limit the scope of the present application, but the present application is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, the present application is not limited thereto. Any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the technical scope of the disclosure of the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A gateway communication device is characterized in that the gateway communication device comprises a first protocol processing module, a first protocol control module, a main control module and a second protocol processing module which are formed on a main board,
wherein each first protocol processing module comprises a first protocol connection unit, a first transformation unit and a first analog-to-digital conversion unit which are sequentially connected, the first protocol connection unit is used for being connected with a first protocol communication interface of first target equipment, the first analog-to-digital conversion unit is also connected with the first protocol control module,
The first protocol control module is also connected with a first target interface of the main control module,
the second protocol processing module comprises a second analog-to-digital conversion unit, a second transformation unit and a second protocol connection unit which are sequentially connected, wherein the second protocol connection unit is used for being connected with a second protocol communication interface of second target equipment, and the second analog-to-digital conversion unit is also connected with a second target interface of the main control module.
2. The apparatus of claim 1, wherein the gateway communication apparatus further comprises a power supply module formed on the main board, the power supply module including a power interface, a protection unit, a first step-down unit, a second step-down unit,
wherein the power interface is used for being connected with an external power supply, the power interface is connected with the protection unit,
the protection unit is connected with the first end of the first voltage reduction unit, the second end of the first voltage reduction unit is connected with the first end of the second voltage reduction unit, the third end of the first voltage reduction unit is used for providing a voltage signal with a first voltage value,
the second end of the second voltage dropping unit is used for providing a voltage signal with a second voltage value,
The first voltage value is smaller than a third voltage value of an external power supply, and the first voltage value is larger than the second voltage value.
3. The apparatus of claim 2, wherein the protection unit is further connected to a third target interface of the main control module, and inputs a voltage signal of a third voltage value to the third target interface,
when the external power supply is abnormal, after the voltage signal input by the protection unit to the third target interface is smaller than the fourth voltage value, the voltage signal of the third voltage value is continuously input to the third target interface by the protection unit for a preset time period, so that the main control module stores operation data.
4. The apparatus of claim 3, wherein the power interface comprises a first terminal, a second terminal, and a third terminal, one end of the first terminal is used for connecting with a live wire of an external power source, one end of the second terminal is used for connecting with a neutral wire of the external power source, one end of the third terminal is used for connecting with a ground wire of the external power source, the protection unit comprises a protection circuit, an early warning circuit, and an early warning power supply circuit, wherein,
the first end of the protection circuit is connected with the other end of the first terminal, the second end of the protection circuit is connected with the other end of the second terminal, the third end of the protection circuit is connected with the fourth end of the protection circuit and the other end of the third terminal, the fifth end of the protection circuit is respectively connected with the first end of the early warning circuit and the first end of the power supply circuit,
And the second end of the early warning circuit is connected with a third target interface of the main control module.
5. The apparatus of claim 4, wherein the protection circuit comprises a first zener diode, a first resistor, a second resistor, a first gas discharge tube, a third resistor, a second gas discharge tube, and a fourth resistor, a first capacitor and a second capacitor, a common mode inductance, a first filter inductance, a second filter inductance, a first TVS diode, a second TVS diode, a third TVS diode, and a third capacitor in series in this order, wherein,
the positive electrode of the first diode is connected with the other end of the first terminal, one end of the first gas discharge tube connected with the third resistor is also connected with the other end of the second terminal, one end of the second gas discharge tube unconnected with the other end of the third terminal,
the first end of the fourth resistor is connected between the first resistor and the second resistor, the second end of the fourth resistor is connected between the third resistor and the second gas discharge tube,
the first end of the first capacitor is connected with the first end of the fourth resistor, the second end of the first capacitor is connected with the first end of the second capacitor, the second end of the second capacitor is connected between the first gas discharge tube and the third resistor,
The first end of the common-mode inductor is connected with the second end of the second capacitor, the second end of the common-mode inductor is connected with the first end of the first capacitor, the third end of the common-mode inductor is connected with the first end of the first filter inductor, the fourth end of the common-mode inductor is connected with the first end of the second filter inductor,
the second end of the first filter inductor is connected with the first end of the first TVS diode, the second end of the second filter inductor is connected with the second end of the first TVS diode,
a first end of a second TVS diode is connected with a second end of the first TVS diode, a second end of the second TVS diode is connected with the other end of the third terminal, a first end of a third TVS diode is connected with the first end of the first TVS diode, a second end of the third TVS diode is connected with the second end of the second TVS diode,
the first end of the third capacitor is connected with the first end of the third TVS diode, the first end of the third capacitor is also connected with the first end of the early warning circuit and the first end of the power supply circuit respectively, and the second end of the third capacitor is connected with the second end of the first TVS diode and grounded.
6. The apparatus of claim 5, wherein the pre-alarm circuit comprises a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a voltage regulator, a comparator, and a fourth capacitor, wherein,
The first end of the fifth resistor is connected with the first end of the third capacitor, the second end of the fifth resistor is connected with the cathode of the voltage stabilizer, the anode of the voltage stabilizer is grounded, the reference electrode of the voltage stabilizer is connected with the inverting input end of the comparator, the first end of the sixth resistor is connected with the first end of the fifth resistor, the second end of the sixth resistor is connected with the first end of the seventh resistor, the second end of the sixth resistor is also connected with the non-inverting input end of the comparator, the second end of the seventh resistor is grounded, the first end of the fourth capacitor is connected with the first end of the fifth resistor, the second end of the fifth resistor is grounded,
the power end of the comparator is connected with the first end of the fifth resistor, the grounding end of the comparator is connected with the first end of the eighth resistor, the output end of the comparator is connected with the third target interface of the main control module, and the second end of the eighth resistor is connected with the first power supply.
7. The apparatus of claim 6, wherein the early warning power circuit comprises a second zener diode, a third zener diode, a fourth zener diode, a ninth resistor, a tenth resistor in parallel with the ninth resistor, a fifth capacitor, a sixth capacitor, a seventh capacitor, and an eighth capacitor in parallel, wherein,
The positive pole of the second zener diode is connected with the first end of the third capacitor, the negative pole of the second zener diode is connected with the first end of the ninth resistor, the second end of the ninth resistor is connected with the first end of the fifth capacitor, the second end of the fifth capacitor is grounded, the positive pole of the third zener diode is connected with the positive pole of the second zener diode, the negative pole of the third zener diode is connected with the second power supply, the positive pole of the fourth zener diode is connected with the second end of the ninth resistor, and the negative pole of the fourth zener diode is connected with the second power supply.
8. The apparatus of claim 1, wherein the first protocol connection unit is configured to receive a message signal output by a first protocol communication interface of the first target device;
the first protocol control module is used for acquiring a control sub-message in a first protocol format according to the received message signal converted by the first analog-to-digital conversion unit;
the main control module is used for processing the received control sub-message in the first protocol format into the control sub-message in the second protocol format based on a preset parameter mapping table;
the second protocol connection unit is configured to send the received control sub-packet in the second protocol format after being converted by the second analog-to-digital conversion unit to a second protocol communication interface of the second target device, so that the second target device executes the target action indicated by the control sub-packet.
9. The apparatus of claim 8, wherein the second protocol connection unit is further configured to receive a feedback sub-packet in a second protocol format for the second target device to indicate that the target action is performed;
the main control module is further used for processing the feedback sub-message in the second protocol format converted by the second analog-to-digital conversion unit into the feedback sub-message in the first protocol format based on a preset parameter mapping table;
the first protocol control module is further configured to add the received feedback sub-message in the first protocol format to the target message signal;
the first protocol connection unit is further configured to send the received target message signal converted by the first analog-to-digital conversion unit to a first protocol communication interface of the first target device or to a first protocol communication interface of the third target device.
10. A communication system, characterized in that the system comprises a gateway communication apparatus according to any of claims 1-9, a first target device connected to the gateway communication apparatus via a first protocol communication interface, and a second target device connected to the gateway communication apparatus via a second protocol communication interface.
CN202410160575.3A 2024-02-05 2024-02-05 Gateway communication device and communication system Pending CN117714236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410160575.3A CN117714236A (en) 2024-02-05 2024-02-05 Gateway communication device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410160575.3A CN117714236A (en) 2024-02-05 2024-02-05 Gateway communication device and communication system

Publications (1)

Publication Number Publication Date
CN117714236A true CN117714236A (en) 2024-03-15

Family

ID=90151941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410160575.3A Pending CN117714236A (en) 2024-02-05 2024-02-05 Gateway communication device and communication system

Country Status (1)

Country Link
CN (1) CN117714236A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080080521A1 (en) * 2006-09-29 2008-04-03 Rockwell Automation Technologies, Inc. Industrial ethernet communications adapter
CN107948059A (en) * 2017-12-21 2018-04-20 中国电子信息产业集团有限公司第六研究所 EtherCAT and Modbus protocol conversion gateways based on SPARC architecture microprocessors
CN110061911A (en) * 2019-03-21 2019-07-26 西安电子科技大学 A kind of MODBUS-RTU gateway module based on production domesticization PLC
WO2020188493A1 (en) * 2019-03-18 2020-09-24 Tata Consultancy Services Limited System for securing communication between central controller and signaling devices in traffic signaling networks
CN215072446U (en) * 2021-03-03 2021-12-07 六所智达(北京)科技有限公司 EtherCAT slave station module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080080521A1 (en) * 2006-09-29 2008-04-03 Rockwell Automation Technologies, Inc. Industrial ethernet communications adapter
CN107948059A (en) * 2017-12-21 2018-04-20 中国电子信息产业集团有限公司第六研究所 EtherCAT and Modbus protocol conversion gateways based on SPARC architecture microprocessors
WO2020188493A1 (en) * 2019-03-18 2020-09-24 Tata Consultancy Services Limited System for securing communication between central controller and signaling devices in traffic signaling networks
CN110061911A (en) * 2019-03-21 2019-07-26 西安电子科技大学 A kind of MODBUS-RTU gateway module based on production domesticization PLC
CN215072446U (en) * 2021-03-03 2021-12-07 六所智达(北京)科技有限公司 EtherCAT slave station module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐健;宋宝;唐小琦;: "EtherCAT与Modbus协议转换网关的设计及实现", 组合机床与自动化加工技术, no. 04, 20 April 2015 (2015-04-20) *

Similar Documents

Publication Publication Date Title
CN107409053B (en) Active Ethernet power supply method and system
US7603570B2 (en) Power delivery over ethernet cables
EP3085028B1 (en) Adjustable data rates
US7327743B2 (en) Structure cabling system
CN102215113A (en) Power supply method, device and network equipment of Ethernet
US9325664B2 (en) Method for setting address for service blade, platform apparatus, and system
US11128741B2 (en) Auto-negotiation over extended backplane
JP2009516432A (en) Device server for daisy chain connection via Ethernet (registered trademark)
CN110519068B (en) POE power supply control device and POE power supply system
WO2023011067A1 (en) Charging requirement adaptation method, and electronic device and related product
CN117714236A (en) Gateway communication device and communication system
CN110912947A (en) Data processing method and device
CN115632900B (en) Computing equipment
EP3331199A2 (en) Method and system for simple device replacement in a class a (cca) network
CN115051889A (en) Single-wire communication system and method
JP2010193325A (en) Protocol conversion apparatus
CN114500158A (en) Computer resolvable Modbus-RTU universal standardized configuration method
CN114584630B (en) Communication method and device based on field bus protocol
US20120188871A1 (en) Ethernet port speed control method and device
CN216134478U (en) Ethernet switching circuit, adapter and laser control equipment
CN213989552U (en) Laser system based on cooperative work
CN114268517B (en) Photovoltaic inverter multi-host secure communication method and system based on Modbus protocol
CN218352645U (en) Test system of sensor module
JP2016082668A (en) Supply voltage amplifier and supply voltage amplification method
CN217770112U (en) EPA gateway equipment and EPA cross-network communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination