Unibus conversion circuit for industrial communication
By converting the single bus signal into a differential signal in the single bus conversion circuit and introducing a protection circuit, the problem of single bus transmission failure in high-voltage equipment and electromagnetic interference environments is solved, and reliable communication in industrial sites with strong electromagnetic interference is achieved. and reduce production costs.
Patent Information
- Application Number
- CN202420068300.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2034-01-11
AI Technical Summary
Existing single-bus connection technology is susceptible to electromagnetic interference in high-voltage equipment and environments with strong electromagnetic interference, resulting in data transmission failure. Moreover, the transmission distance of a single bus is limited and cannot meet the needs of industrial communication.
A single bus conversion circuit is designed, which converts the single bus signal into a differential signal through a comparator and a single bus interface transceiver chip, and introduces a protection circuit in the circuit, including a transient suppression diode and a gas discharge tube, to extend the communication distance and Enhance anti-interference ability.
It effectively extends the communication distance, solves the problem of a single bus being susceptible to electromagnetic interference and short data transmission distance, makes the sensor suitable for industrial sites with strong electromagnetic interference, simplifies the circuit structure, and reduces production costs.
Smart Images

Figure CN221686943U
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a single bus conversion circuit for industrial communication. Background Art
[0002] A sensor is a device that receives signals or stimuli and reacts. It can convert the physical or chemical quantity to be measured into another corresponding output. It is used in automatic control, security equipment, etc. In the prior art, sensor test instruments and sensors commonly used adopt single bus connection technology. Any GPIO pin of the MCU is connected to the pin of the sensor through the single bus of the sensor. The MCU performs read and write operations on the sensor, and the sensor receives and sends data through the working mode of the gate circuit with open drain output.
[0003] The above-mentioned method of transmitting data by common-mode signals determines that the common-mode signal transmission method has poor anti-electromagnetic interference capability. When used in high-voltage equipment and other occasions, it will have a great impact on data transmission and communication. In severe cases, data transmission failure may occur, and the distance of a single bus should not be too long.
[0004] The present application intends to solve the above technical problems through a single bus conversion circuit. Through searching, the closest prior arts are as follows:
[0005] The patent document with application number 202110020162.1 discloses a temperature and humidity acquisition circuit based on a single bus, including a single bus, a control unit and an output branch. The input interface of the single bus is used to collect temperature and humidity information of the temperature and humidity sensor; the control unit includes at least four control branches, whose input end is used to receive the control instructions of the processor, and its output end is connected to the single bus interface; the control unit controls the single bus to collect the temperature and humidity information of the temperature and humidity sensor through different control branches according to the control instructions; the input end of the output branch is connected to the input interface of the single bus, and the output end is used to connect the input end of the processor; the output branch is used to send the temperature and humidity information to the processor; the temperature and humidity acquisition circuit of the present application can intelligently adjust the circuit load capacity to meet the communication requirements of single-bus temperature and humidity sensors of various quantities and distances. Although the above application involves the idea of a single bus, the circuit structure of the application is completely different from that of the present application, and involves devices such as transistors, with a complex structure, and cannot solve the problem of poor anti-electromagnetic interference ability.
[0006] In summary, a new technical solution is needed to solve the above technical problems. Utility Model Content
[0007] The present application provides a single bus conversion circuit for industrial communication, including a connector P1, a pin of the connector P1 is connected to a comparator U1, the comparator U1 is connected to a single bus interface transceiver chip U2, the single bus interface transceiver chip U2 is connected to the connector P2, and a protection circuit is provided between the single bus interface transceiver chip U2 and the connector P2.
[0008] As a preferred solution, the pins of the connector P1 include pin 1, pin 2, and pin 3. Pin 1 is connected to the positive electrode of a 5V power supply through connector lead 1, and pin 3 of the connector P1 is connected to the negative electrode of the power supply through connector lead 2. A transient suppression diode D2 and a diode D1 are arranged between connector lead 1 and connector lead 2, and pin 2 of the connector P1 is connected to the comparator U1.
[0009] As a preferred solution, the comparator U1 includes pin 1, pin 2, pin 3, pin 4, pin 7, and pin 8. Pin 3 of the comparator U1 is connected to pin 2 of the connector P1 through connector lead 3. Connector lead 3 is connected to the single bus interface transceiver chip U2 through comparator lead 1. A diode D3 is provided on comparator lead 1. A resistor R3 is connected to comparator lead 1 before the input end of the diode D3. One end of the resistor R3 is connected to the positive electrode of the 5V power supply. Pin 8 of the comparator U1 is connected to the 24V The positive pole of the power supply, pin 2 of the comparator U1 is connected to resistor R1 and resistor R2, one end of the resistor R1 is connected to the positive pole of the 5V power supply, one end of the resistor R2 is connected to the negative pole of the power supply through the negative pole line of the power supply, the negative pole line of the power supply is connected to the power line, the power line is connected to the positive pole of the 24V power supply, the power line is connected to a capacitor C1, the power line is connected to comparator lead 2, comparator lead 2 is connected to pin 4 of the comparator, pin 1 of the comparator is connected to comparator lead 2, and pin 7 of the comparator is connected to the single bus interface transceiver chip U2.
[0010] As a preferred solution, the single bus interface transceiver chip U2 includes pin 1, pin 2, pin 3, pin 4, pin 5, pin 6, pin 7, and pin 8. Pin 1 of U2 is connected to the output end of diode D3, pin 3 of U2 is connected to pin 7 of comparator U1 through comparator lead three, resistor R4 is arranged on comparator lead three, one end of resistor R4 is connected to the positive electrode of a 5V power supply, resistor R4 and resistor R3 are arranged in parallel, pin 4 of U2 is connected to resistor R5, resistor R5 is connected to the negative electrode of the power supply, pin 2 of U2 is connected to the negative electrode of the power supply, pin 6 of U2 and pin 7 of U2 are respectively connected to connector P2, pin 5 of U2 is connected to the positive electrode of the 5V power supply through a power line, capacitor C2 is arranged on the power line, the front of capacitor C2 is connected to the negative electrode of the power supply on the power line, and pin 8 of U2 is connected to the positive electrode of the 5V power supply.
[0011] As a preferred solution, the pins of the connector P2 include pin 1, pin 2, pin 3, and pin 4, pin 1 of the connector P2 is connected to the positive electrode of the 24 power supply, pin 2 of the connector P2 is connected to pin 7 of U2 through U2 lead 1, fuse F1 is provided on U2 lead 1, pin 3 of the connector P2 is connected to pin 6 of U2 through U2 lead 2, fuse F2 is provided on U2 lead 2, and pin 4 of the connector P2 is connected to the negative electrode of the power supply; resistor R7 is connected to U2 lead 1, one end of resistor R7 is connected to the negative electrode of the power supply, resistor R6 is connected to U2 lead 2, and resistor R6 is connected to a 5V power supply.
[0012] As a preferred solution, the protection circuit includes a gas discharge tube D7 and a transient suppression diode D5 connected to lead 1 of U2. The protection circuit also includes a gas discharge tube D6 and a transient suppression diode D4 connected to lead 2 of U2. The gas discharge tube D7, transient suppression diode D5, resistor R7, gas discharge tube D6, and transient suppression diode D4 are commonly connected to the negative pole of the power supply, and the transient suppression diode D4 is connected to the resistor R6.
[0013] The present application uses the above-mentioned circuit to convert the single bus signal into a differential signal, thereby extending the communication distance, solving the problem that the single bus is susceptible to electromagnetic interference and has a short data transmission distance, and making the sensor suitable for industrial sites with strong electromagnetic interference; in addition, in the design of the present application, the communication part of the sensor does not require programmable devices and programming, which simplifies the circuit structure and reduces production costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a circuit diagram of the present application; DETAILED DESCRIPTION
[0015] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be noted that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0016] The present embodiment provides a single bus conversion circuit for industrial communication, including a connector P1, which is used to connect a sensor (not shown in the figure). The sensor can be a sensor in the prior art, and the specific model is not limited. The connector P1 is preferably 2EDG 5.08-3P, and the pin of the connector is connected to the comparator U1, and the comparator U1 is connected to the single bus interface transceiver chip U2. The comparator U1 controls the reception and transmission enable of the single bus interface transceiver chip U2; the single bus interface transceiver chip U2 is connected to the connector P2, and the connector P2 is used to connect a controller (not shown in the figure). The connector P2 is preferably 2EDG 5.08-4P. A protection circuit is provided between the single bus interface transceiver chip U2 and the connector P2, and the protection circuit prevents the single bus circuit from having surge circuits and burning circuits, etc.; the TTL data signal generated by the sensor is converted into a differential signal after passing through the single bus interface transceiver chip U2 and transmitted to the bus connector interface of the wired temperature measurement lower computer to communicate with the lower computer.
[0017] Specifically, the pins of the connector P1 include pin 1, pin 2, and pin 3. Pin 1 is connected to the positive electrode of the 5V power supply through connector lead 1, and output pin 3 of the connector P1 is connected to the negative electrode of the power supply through connector lead 2. A transient suppression diode D2 and a diode D1 are arranged between connector lead 1 and connector lead 2, and output pin 2 of the connector P1 is connected to the comparator U1; the transient suppression diode D2 is used to protect the circuit, and the diode D1 is used to clamp the high level of the signal on the single bus of the sensor to the supply voltage.
[0018] The comparator U1 is preferably LM311, and the comparator U1 includes pin 1, pin 2, pin 3, pin 4, pin 7, and pin 8. Pin 3 of the comparator U1 is connected to pin 2 of the connector P1 through connector lead 3, and connector lead 3 is connected to the single bus interface transceiver chip U2 through comparator lead 1. A diode D3 is arranged on comparator lead 1, and comparator lead 1 is connected to resistor R3 before the input end of diode D3. One end of resistor R3 is connected to the positive electrode of the 5V power supply, and resistor R3 is used to assist the single bus to output a high level. Pin 8 of the comparator U1 is connected to the positive electrode of the 24V power supply, and pin 2 of the comparator is connected to resistor R1 and resistor R2. One end of resistor R1 is connected to the positive electrode of the 5V power supply, and one end of resistor R2 is connected to the negative electrode of the power supply through the negative power supply line, and the negative power supply line is connected to the power supply line, and the power supply line is connected to the 24V power supply. The power source is connected, a capacitor C1 is connected to the power line, a comparator lead 2 is connected to the power line, the comparator lead 2 is connected to pin 4 of the comparator U1, pin 1 of the comparator U1 is connected to comparator lead 2, and pin 7 of the comparator U1 is connected to the single bus interface transceiver chip U2; the specific function of the comparator U1: when idle, due to the existence of resistor R3, pin 3 of the comparator U1 is high level, and pin 2 has a voltage division of 0.3V due to resistors R1 and R2, so pin 1 outputs a low level, and the single bus interface transceiver chip U2 works in the receiving state: when the transceiver receives a "0" signal from the controller, pin 1 outputs a low level, due to the voltage drop of diode D3, the voltage of comparator pin 2 is the diode voltage drop value (about 0.5V at room temperature), so that the sensor is still in the receiving state while receiving a low level signal.
[0019] The single bus interface transceiver chip U2 is preferably MAX485, and U2 includes pin 1, pin 2, pin 3, pin 4, pin 5, pin 6, pin 7, and pin 8, wherein pin 1 of U2 is connected to the output end of the diode D3, and pin 3 of U2 is connected to pin 7 of the comparator U1 through comparator lead three. A resistor R4 is arranged on comparator lead three, and one end of the resistor R4 is connected to the positive electrode of the 5V power supply, and is arranged in parallel with the resistor R3. The resistor R4 is used to assist the comparator U1 to output a high level, and the pin 4 of U2 is connected to the resistor R5, and the resistor R5 is connected to the negative electrode of the power supply. The resistor R5 is used to pull down the pin level of U2 to a low level, and the pin 2 of U2 is connected to the negative electrode of the power supply. The pin 6 of U2 and the pin 7 of U2 are respectively connected to the connector P2, and the pin 5 of U2 is connected to the positive electrode of the 5V power supply through the power line. A capacitor C2 is arranged on the power line, and the front of the capacitor C2 is connected to the negative electrode line of the power supply on the power line. The pin 8 of U2 is connected to the positive electrode of the 5V power supply.
[0020] The connector P2 includes pin 1, pin 2, pin 3, and pin 4. Pin 1 of the connector P2 is connected to the positive electrode of a 24V power supply. Pin 2 of the connector P2 is connected to pin 7 of U2 through U2 lead 1. A fuse F1 is provided on U2 lead 1. Pin 3 of the connector P2 is connected to pin 6 of U2 through U2 lead 2. A fuse F2 is provided on U2 lead 2. Pin 4 of the connector P2 is connected to the negative electrode of the power supply. Fuse F1 and fuse F2 are used to protect the circuit from short circuits and the like. Resistor R7 is connected to U2 lead 1, one end of which is connected to the negative electrode of the power supply. Resistor R6 is connected to U2 lead 2, which is connected to a 5V power supply. The above resistors R6 and R7 are used to confirm the idle level of the single bus and assist the bus circuit in sending a positive differential signal.
[0021] The protection circuit is used to prevent surge voltage from burning the circuit, and includes a gas discharge tube D7 and a transient suppression diode D5 connected to lead 1 of U2. The protection circuit also includes a gas discharge tube D6 and a transient suppression diode D4 connected to lead 2 of U2. The gas discharge tube D7, the transient suppression diode D5, the resistor R7, the gas discharge tube D6, and the transient suppression diode D4 are commonly connected to the negative pole of the power supply, and the transient suppression diode D4 is connected to the resistor R6.
[0022] The power supply in this application includes the above-mentioned DC24V and DC5V, and the two power supplies share the same negative pole.
[0023] In this application, when the sensor sends "0" to the controller, since the voltage of comparator pin 3 (0.3V) is greater than the voltage of comparator pin 3, pin 1 outputs a high level, and the single bus interface transceiver chip U2 sends the data of pin 4 (low level) to the controller; when the sensor sends "1" to the controller, the voltage of comparator pin 2 is higher than the voltage of pin 3, so pin 1 outputs a low level, the transceiver is in a receiving state, and the high level signal is transmitted to the controller through resistors R3, R4, R6, and R7.
[0024] The present application uses the above-mentioned circuit to convert the single bus signal into a differential signal, and then connects 35 sensors and their configured signal conversion circuits. The measured communication distance is extended by at least 200m, which solves the problem that the single bus is susceptible to electromagnetic interference and the data transmission distance is short, so that the sensor can be used in industrial sites with strong electromagnetic interference. In addition, in the design of the present application, the communication part of the sensor does not require programmable devices and programming, which simplifies the circuit structure and reduces the production cost. The use of the circuit of the present application can increase the number of bus interfaces, arrange lines in different directions, improve the collection range of the sensor, and reduce the difficulty of use in industrial sites.
[0025] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings; however, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, a variety of simple modifications can be made to the technical solution of the present application, and these simple modifications all fall within the protection scope of the present application.
[0026] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the various possible combinations of this application will not be described separately.
[0027] In addition, the various implementation modes of the present application may be arbitrarily combined, and as long as they do not violate the concept of the present application, they should also be regarded as the contents disclosed in the present application.
Claims
1. A single bus conversion circuit for industrial communication, comprising a connector P1, characterized in that: The pin of the connector P1 is connected to the comparator U1, the comparator U1 is connected to the single bus interface transceiver chip U2, the single bus interface transceiver chip U2 is connected to the connector P2, and a protection circuit is provided between the single bus interface transceiver chip U2 and the connector P2.
2. A single bus conversion circuit for industrial communication according to claim 1, characterized in that: The pins of the connector P1 include pin 1, pin 2, and pin 3. Pin 1 is connected to the positive electrode of the 5V power supply through connector lead 1, and pin 3 of the connector P1 is connected to the negative electrode of the power supply through connector lead 2. A transient suppression diode D2 and a diode D1 are arranged between connector lead 1 and connector lead 2, and pin 2 of the connector P1 is connected to the comparator U1.
3. A single bus conversion circuit for industrial communication according to claim 2, characterized in that: The comparator U1 includes pin 1, pin 2, pin 3, pin 4, pin 7, and pin 8. Pin 3 of the comparator U1 is connected to pin 2 of the connector P1 through connector lead 3. Connector lead 3 is connected to the single bus interface transceiver chip U2 through comparator lead 1. A diode D3 is provided on comparator lead 1. A resistor R3 is connected to comparator lead 1 before the input end of diode D3. One end of resistor R3 is connected to the positive electrode of 5V power supply. Pin 8 of comparator U1 is connected to the positive electrode of 24V power supply. Pin 2 of the comparator U1 is connected to resistor R1 and resistor R2, one end of the resistor R1 is connected to the positive electrode of the 5V power supply, one end of the resistor R2 is connected to the negative electrode of the power supply through the negative electrode line of the power supply, the negative electrode line of the power supply is connected to the power line, the power line is connected to the positive electrode of the 24V power supply, the power line is connected to a capacitor C1, the power line is connected to comparator lead 2, comparator lead 2 is connected to pin 4 of the comparator, pin 1 of the comparator is connected to comparator lead 2, and pin 7 of the comparator is connected to the single bus interface transceiver chip U2.
4. A single bus conversion circuit for industrial communication according to claim 3, characterized in that: The single bus interface transceiver chip U2 includes pin 1, pin 2, pin 3, pin 4, pin 5, pin 6, pin 7, and pin 8. Pin 1 of U2 is connected to the output end of diode D3, pin 3 of U2 is connected to pin 7 of comparator U1 through comparator lead three, resistor R4 is arranged on comparator lead three, one end of resistor R4 is connected to the positive electrode of a 5V power supply, resistor R4 and resistor R3 are arranged in parallel, pin 4 of U2 is connected to resistor R5, resistor R5 is connected to the negative electrode of the power supply, pin 2 of U2 is connected to the negative electrode of the power supply, pin 6 of U2 and pin 7 of U2 are respectively connected to connector P2, pin 5 of U2 is connected to the positive electrode of the 5V power supply through a power line, capacitor C2 is arranged on the power line, the front of capacitor C2 is connected to the negative electrode line of the power supply on the power line, and pin 8 of U2 is connected to the positive electrode of the 5V power supply.
5. A single bus conversion circuit for industrial communication according to claim 4, characterized in that: The pins of the connector P2 include pin 1, pin 2, pin 3, and pin 4. Pin 1 of the connector P2 is connected to the positive electrode of the 24 power supply. Pin 2 of the connector P2 is connected to pin 7 of U2 through U2 lead 1. A fuse F1 is provided on U2 lead 1. Pin 3 of the connector P2 is connected to pin 6 of U2 through U2 lead 2. A fuse F2 is provided on U2 lead 2. Pin 4 of the connector P2 is connected to the negative electrode of the power supply. A resistor R7 is connected to U2 lead 1, and one end of the resistor R7 is connected to the negative electrode of the power supply. A resistor R6 is connected to U2 lead 2, and resistor R6 is connected to a 5V power supply.
6. A single bus conversion circuit for industrial communication according to claim 5, characterized in that: The protection circuit includes a gas discharge tube D7 and a transient suppression diode D5 connected to lead 1 of U2. The protection circuit also includes a gas discharge tube D6 and a transient suppression diode D4 connected to lead 2 of U2. The gas discharge tube D7, the transient suppression diode D5, the resistor R7, the gas discharge tube D6, and the transient suppression diode D4 are commonly connected to the negative pole of the power supply, and the transient suppression diode D4 is connected to the resistor R6.
