Profinet-to-can protocol gateway
By introducing multiple CAN interfaces and bidirectional electrical connections into the Profinet to CAN protocol gateway, the problem of limited communication distance is solved, the communication distance is extended and wiring is simplified, and the stability and efficiency of the system are improved.
Patent Information
- Application Number
- PCT/CN2024/139341
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-31
- Filing Date
- 2024-12-13
- Publication Date
- 2025-08-07
AI Technical Summary
The existing Profinet to CAN gateway usually has only one CAN interface, and the communication distance is limited, which cannot meet the needs of certain application scenarios.
A Profinet to CAN protocol gateway is designed, which adopts multiple CAN interfaces and is connected by a bidirectional electrical connection between the Profinet communication circuit and the CAN communication circuit to realize the conversion between Profinet and CAN, supports multi-directional wiring and extends the communication distance.
It achieves the extension of communication distance, simplifies wiring process, improves communication efficiency and stability, and is suitable for complex factory automation and process automation systems.
Smart Images

Figure CN2024139341_07082025_PF_FP_ABST
Abstract
Description
A Profinet to CAN protocol gateway
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number 202420253822X, entitled “A Profinet to CAN Protocol Gateway,” filed with the China Patent Office on January 31, 2024, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of bus communication technology, and in particular to a Profinet to CAN master station gateway.
[0004] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.
[0005] Process Fieldbus (Profibus) is a fieldbus standard for factory and process automation. It is widely used in manufacturing automation (automotive, bottling systems, warehousing), process automation (petrochemical, paper, and textile industries), building automation (heating and air conditioning systems), traffic management automation, the electronics industry, and power transmission. Profibus features bus power supply. Different types of fieldbuses exist within Profibus applications, such as CAN and Profibus, which are used together in a system, requiring fieldbus interconnection. Conventional Profinet-to-CAN gateways typically have only one CAN interface, limiting communication distance.
[0006] Public content
[0007] In order to solve the above problems, the present disclosure proposes a Profinet to CAN protocol gateway, which adopts multiple CAN interfaces to extend the communication distance.
[0008] In order to achieve the above objectives, the present disclosure adopts the following technical solutions:
[0009] The present disclosure provides a Profinet to CAN protocol gateway, comprising: a housing, and a main control chip, a power supply circuit, a Profinet communication circuit, and at least two groups of CAN communication circuits arranged in the housing; the housing is provided with a network port and at least two groups of CAN interfaces, one end of the CAN interface is connected to the CAN communication circuit, the other end of the CAN interface is externally connected to a CAN bus, and the network port is connected to the Profinet communication circuit; the Profinet communication circuit and the CAN communication circuit are both connected to the main control chip, and the Ethernet signal input by the network port is processed by the Profinet communication circuit, the main control chip, and the CAN communication circuit, and then outputs a CAN signal through the CAN interface.
[0010] As an optional implementation, the Profinet communication circuit includes a Profinet communication chip. The Ethernet signal accessed by the network port through the network transformer is transmitted to the Profinet communication chip. The Profinet communication chip processes the Ethernet signal and then transmits it to the main control chip. There is at least one network port, and each network port is correspondingly provided with a network transformer.
[0011] As an optional implementation, it also includes a reset circuit, which includes a reset switch, a first monitoring chip and a second monitoring chip. The reset switch, the first monitoring chip and the second monitoring chip are connected in series, the output pin of the first monitoring chip is connected to the reset pin of the main control chip, and the output pin of the second monitoring chip is connected to the reset pin of the Profinet communication chip. When the reset switch is triggered, the first monitoring chip and the second monitoring chip send reset signals to the main control chip and the Profinet communication chip respectively.
[0012] As an optional implementation, the CAN communication circuit includes a CAN processing chip, the CAN high and low level pins on the CAN processing chip are respectively connected to the high and low level lines of the CAN bus, and a protection circuit is provided on the CAN high and low level pins, the protection circuit includes a voltage regulator connected in parallel to the CAN high and low level connection ends and two groups of transient voltage suppression diodes connected in parallel to the CAN high and low level connection ends, respectively, the CAN intermediate signal pin on the CAN processing chip is connected to the corresponding pin of the main control chip; a termination resistor is connected in parallel between the high and low level signals of the CAN interface.
[0013] As an optional implementation, the power supply circuit includes a primary step-down circuit, a secondary step-down circuit, and a tertiary step-down circuit;
[0014] The primary step-down circuit is configured to step down the 48V voltage to 5V to power the CAN communication circuit;
[0015] The secondary step-down circuit is configured to step down the 5V voltage to 3.3V to supply power to the 3.3V supply points on the main control chip and the Profinet communication circuit;
[0016] The three-stage step-down circuit is configured to step down the 5V voltage to 1V to supply power to the 1.5V supply voltage point on the main control chip and the Profinet communication circuit.
[0017] As an optional embodiment, it also includes a three-color alarm light driving circuit, which is connected to an external three-color alarm light through a three-color light interface. The three-color alarm light driving circuit includes three groups of optocouplers arranged in parallel, and the output ends of the three groups of optocouplers are all connected to the three-color light interface, and the input ends of the three groups of optocouplers are respectively connected to the three-color light control pins of the main control chip; the three-color alarm light driving circuit is powered by a four-stage step-down circuit, and the four-stage step-down circuit is configured to step down the 48V voltage to 24V.
[0018] As an optional implementation, it also includes an emergency stop circuit, which is connected to an emergency stop controller through an external emergency stop interface. The emergency stop circuit includes a group of photoelectric couplers, the output end of the photoelectric coupler is connected to the emergency stop control pin of the main control chip, and the output end of the photoelectric coupler is connected to the emergency stop interface. The emergency stop interface is powered by a 48V voltage.
[0019] As an optional embodiment, it also includes a relay connection circuit, which is connected to an external relay through a relay interface. The relay connection circuit includes two photoelectric couplers connected in series and a group of MOS tubes. The input end of the photoelectric coupler connected in series is connected to the relay control pin of the main control chip, and the two photoelectric couplers are respectively connected to the drain and gate of the MOS tube, and the drain and source of the MOS tube are respectively connected to the relay interface.
[0020] As an optional implementation, it also includes an infrared emitting circuit, which includes an infrared emitting circuit. The infrared emitting chip has its own infrared emitting source, and the data transmission interface on the infrared emitting chip is connected to the infrared control pin of the main control chip.
[0021] As an optional implementation, it also includes a LoRa transmission circuit, which is connected to an external transmitting antenna through a LoRa interface. The LoRa transmission circuit includes a LoRa chip, the control pin of the LoRa chip is connected to the LoRa control pin of the main control chip, and the output pin on the LoRa chip is connected to the LoRa interface.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] The present disclosure proposes a Profinet to CAN protocol gateway, which realizes conversion between Profinet and CAN through a bidirectional electrical connection between a Profinet communication circuit and a CAN communication circuit and a processor. It adopts multiple CAN interfaces and can be wired in multiple directions, extending the total communication distance, facilitating wiring, and reducing the wiring work between PLC and servo systems. It has a simple and convenient structure, high stability, and a large communication data volume. The CAN communication efficiency is improved through an independent CAN interface.
[0024] Advantages of additional aspects of the present disclosure will be given in part in the following description and in part will become apparent from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings, which constitute a part of the present disclosure, are used to provide a further understanding of the present disclosure. The exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation to the present disclosure.
[0026] FIG1 is a block diagram of the principle of the Profinet to CAN protocol gateway provided by the present disclosure;
[0027] FIG2 is a diagram of a first-stage step-down circuit provided by the present disclosure;
[0028] FIG3 is a diagram of a two-stage step-down circuit provided by the present disclosure;
[0029] FIG4 is a three-stage buck circuit diagram provided by the present disclosure;
[0030] Figure 5 (a)-(b) is a circuit diagram of the main control chip provided by the present disclosure;
[0031] FIG6 is a reset circuit diagram provided by the present disclosure;
[0032] FIG7 is a storage circuit diagram provided by the present disclosure;
[0033] FIG8 is a circuit diagram of an infrared emission circuit provided by the present disclosure;
[0034] FIG9 is a debugging circuit diagram provided by the present disclosure;
[0035] FIG10 is a diagram of an emergency stop circuit provided by the present disclosure;
[0036] FIG11 is a three-color warning light driving circuit provided by the present disclosure;
[0037] FIG12 is a four-stage buck circuit diagram provided by the present disclosure;
[0038] Figure 13 (a)-(b) is a Profinet communication circuit diagram provided by the present disclosure;
[0039] Figure 14 (a)-(b) is a circuit diagram of a network port provided by the present disclosure;
[0040] FIG15 is a first CAN communication circuit diagram provided by the present disclosure;
[0041] FIG16 is a second CAN communication circuit diagram provided by the present disclosure;
[0042] FIG17 is a clock circuit diagram provided by the present disclosure;
[0043] Figure 18 (a)-(b) is a relay connection circuit diagram provided by the present disclosure;
[0044] FIG19 is a LoRa transmission circuit diagram provided by the present disclosure;
[0045] FIG20 is a circuit diagram of a main control chip with a LoRa transmission circuit provided by the present disclosure;
[0046] FIG21 is a schematic diagram of the interior of a housing provided by the present disclosure;
[0047] FIG22 is a schematic diagram of the exterior of a housing without LoRa provided by the present disclosure;
[0048] FIG23 is a schematic diagram of the exterior of a housing with LoRa provided by the present disclosure;
[0049] FIG24 is a schematic diagram of one end of a housing provided by the present disclosure;
[0050] FIG25 is a schematic diagram of the other end of the shell provided by the present disclosure.
[0051] Among them, 1. Main control chip; 2. Profinet communication circuit; 3. Network port; 4. CAN communication circuit; 5. CAN interface; 6. LoRa interface; 7. First DO interface; 8. Second DO interface; 9. Third DO interface; 10. DI interface; 11. Status indicator light; 12. Power interface. DETAILED DESCRIPTION
[0052] The present disclosure will be further described below with reference to the accompanying drawings and embodiments.
[0053] It should be noted that the following detailed descriptions are exemplary and intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present disclosure belongs.
[0054] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "comprise" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0055] In the absence of conflict, the embodiments of the present disclosure and the features thereof may be combined with each other.
[0056] As shown in Figure 1, this embodiment provides a Profinet to CAN protocol gateway, including: a shell, and a main control chip 1, a Profinet communication circuit 2 and two groups of CAN communication circuits 4 arranged in the shell; a network port 3 and two groups of CAN interfaces 5 are provided on the shell, the CAN interface 5 is connected to the CAN communication circuit 4, and the network port 3 is connected to the Profinet communication circuit 2; the Profinet communication circuit 2 and the CAN communication circuit 4 are both connected to the main control chip 1, and the Ethernet signal input by the network port 3 is processed by the Profinet communication circuit 2, the main control chip 1 and the CAN communication circuit 4, and the CAN signal is output through the CAN interface 5. The two groups of CAN interfaces 5 are wired in two directions to increase the bus wiring length.
[0057] In this embodiment, a power supply circuit is also included, and the power supply circuit includes: a primary step-down circuit, a secondary step-down circuit and a tertiary step-down circuit;
[0058] The first-stage step-down circuit is configured to step down the 48V voltage to 5V to power the CAN communication circuit 4 .
[0059] The secondary step-down circuit is configured to step down the 5V voltage to 3.3V to supply power to the 3.3V supply points on the main control chip 1 and the Profinet communication circuit 2 .
[0060] The three-stage step-down circuit is configured to step down the 5V voltage to 1V to supply power to the 1.5V supply points on the main control chip 1 and the Profinet communication circuit 2 .
[0061] As shown in Figure 2, the first-stage step-down circuit includes: a power port J1 configured to be connected to a 48V power supply, the power port J1 is connected in parallel to a varistor RV1, a capacitor C15, a capacitor C19 and a TVS diode D2, and a fuse F1 and a TVS diode D1 are connected in series between the positive electrode of the power supply and the varistor RV1; the TVS diode D2 is connected to an inductor L1, and the inductor L1 is connected in parallel to a capacitor C29 and a capacitor C32, and the two ends of the capacitor C32 are connected to the VIN pin and the GND pin of the integrated chip U6 respectively, and the capacitor C3 One end of capacitor C2 is also connected to the VO+ pin of the integrated chip U6 through capacitor C39, and the other end of capacitor C32 is connected to the VO- pin of the integrated chip U6 through capacitor C40. The VO+ pin and VO- pin of the integrated chip U6 are connected in parallel with capacitor C51, capacitor C55 and TVS diode D3 in sequence. One end of the TVS diode D3 is connected to one end of the resistor R10 and outputs a 5V voltage. The other end of the resistor R10 is connected to the positive electrode of the diode D5. The negative electrode of the diode D5 is connected to the other end of the TVS diode D3 and grounded.
[0062] As an optional implementation, the integrated chip U6 is a step-down chip, and the circuit structures connected on both sides thereof both play a filtering and coupling function.
[0063] As shown in Figure 3, the secondary step-down circuit includes: an integrated chip U3; the VI pin of the integrated chip U3 is connected to the 48V to 5V circuit to access the 5V voltage; the VI pin is also grounded through the connection to the capacitor C2; the VOUT pin of the integrated chip U3 is connected to the first capacitor group and outputs a 3.3V voltage.
[0064] As an optional implementation, the first capacitor group includes several capacitors connected in parallel, as shown in FIG3 .
[0065] As shown in Figure 4, the three-stage step-down circuit includes: an integrated chip U4; the IN pin of the integrated chip U4 is connected to the 48V to 5V circuit to access the 5V voltage; the IN pin is also grounded by connecting to the capacitor C4; the SW pin of the integrated chip U4 is connected to one end of the inductor L2, the other end of the inductor L2 is connected to one end of the resistor R4 and one end of the capacitor C5, the other end of the resistor R4 is connected to the other end of the capacitor C5, and is connected to the FB pin of the integrated chip U4, the other end of the resistor R4 is also connected to one end of the resistor R5, and one end of the resistor R5 is also connected to the FB pin, and the other end of the resistor R5 is grounded; one end of the capacitor C5 and the other end of the resistor R5 are connected in parallel with a second capacitor group, and the capacitor group outputs a 1V voltage.
[0066] As an optional implementation, the second capacitor group includes several capacitors connected in parallel, as shown in FIG4 .
[0067] In this embodiment, as shown in FIG. 5( a )-( b ), the main control chip 1 includes an integrated chip U5 .
[0068] The PB12 and PB13 pins of the integrated chip U5 are connected to the first CAN communication circuit, and are configured to receive the CAN signal sent by the first CAN communication circuit and convert it into a Profinet signal for transmission, or to convert the Profinet signal into a CAN signal and then transmit it through the first CAN communication circuit.
[0069] The PB8 and PB9 pins of the integrated chip U5 are connected to the second CAN communication circuit, and are configured to receive the CAN signal sent by the second CAN communication circuit and convert it into a Profinet signal for transmission, or to convert the Profinet signal into a CAN signal and then transmit it through the second CAN communication circuit.
[0070] In this embodiment, the Ethernet signal pin of the integrated chip U5 is connected to the Profinet communication circuit 2. Relevant technicians know how to connect to the Profinet communication circuit 2 through the pin function setting of the integrated chip U5, which will not be repeated here.
[0071] In this embodiment, the PB10 pin of the integrated chip U5 is connected to the reset circuit, which includes a reset switch, a first monitoring chip and a second monitoring chip. The reset switch, the first monitoring chip and the second monitoring chip are connected in series. The output pin of the first monitoring chip is connected to the reset pin of the main control chip 1, and the output pin of the second monitoring chip is connected to the reset pin of the Profinet communication chip. When the reset switch is triggered, the first monitoring chip and the second monitoring chip send reset signals to the main control chip 1 and the Profinet communication chip respectively.
[0072] Optionally, as shown in FIG6 , the reset circuit includes: an integrated chip U12 and an integrated chip U7 .
[0073] The B pin of the integrated chip U12 is connected to the PB10 pin of the integrated chip U5 through the resistor R36.
[0074] The Y pin of the integrated chip U12 is connected to the RESENT pin of the Profinet communication chip.
[0075] The Y pin of the integrated chip U12 is further connected to the capacitor C82 and the capacitor C83 in sequence and then connected to the VCC pin of the integrated chip U12, and the VCC pin of the integrated chip U12 is connected to a 3V voltage.
[0076] The B pin of the integrated chip U12 is connected to a 3V voltage through a resistor R41.
[0077] The A pin of the integrated chip U12 is connected to the RST pin of the integrated chip U7, the B pin of the integrated chip U12 is connected to the VCC pin of the integrated chip U7 through the resistor R41, and a resistor R34 is connected in parallel between the RST pin and the VCC pin of the integrated chip U7.
[0078] A capacitor C67 is connected in parallel between the MR pin and the VSS pin of the integrated chip U7. One end of the capacitor C67 connected to the VSS pin is connected to one end of a capacitor C73. The other end of C73 is connected to the VCC pin of the integrated chip U7.
[0079] In this embodiment, the PA2 and PA3 pins of the integrated chip U5 are connected to the storage circuit.
[0080] Optionally, as shown in FIG7 , the storage circuit includes: an integrated chip U9; an SDA pin of the integrated chip U9 is connected to a PA3 pin of the integrated chip U5 via a resistor R28; and an SCL pin of the integrated chip U9 is connected to a PA2 pin of the integrated chip U5 via a resistor R29.
[0081] In this embodiment, the PC6, PC7 and PC8 pins of the integrated chip U5 are connected to the infrared transmitting circuit; the infrared transmitting circuit includes an infrared transmitting chip, which has its own infrared transmitting source, and the data transmission interface on the infrared transmitting chip is connected to the infrared control pin of the main control chip 1.
[0082] Optionally, as shown in Figure 8, the infrared circuit includes: an infrared transmitting chip U10; the TXD pin of the infrared transmitting chip U10 is connected to the PC6 pin of the integrated chip U5, the RXIR pin is connected to the PC7 pin of the integrated chip U5, and the SDIR pin is connected to the PC8 pin of the integrated chip U5.
[0083] The VCC2 pin of the infrared emission chip U10 is connected to the 5V voltage through the resistor R20, the VCC1 pin is connected to the VCC2 pin through the resistor R33, the VCC1 pin is connected to the VCC2 pin through the capacitor C74 and the capacitor C70, and the VCC1 pin is grounded through the capacitor C74.
[0084] In this embodiment, the PA9 and PA10 pins of the integrated chip U5 are connected to the debugging circuit;
[0085] Optionally, as shown in Figure 9, the debugging circuit includes: an integrated chip U21; the T1IN pin of the integrated chip U21 is connected to the PA10 pin of the integrated chip U5, and the R1OUT pin of the integrated chip U21 is connected to the PA9 pin of the integrated chip U5; the VCC pin of the integrated chip U21 is connected to a 3.3V voltage; the T1OUT pin, the R1IN pin and the GND pin are connected to the terminal J15.
[0086] In this embodiment, the PF6 pin of the integrated chip U5 is connected to the emergency stop circuit and configured as an emergency stop gateway; the emergency stop circuit is connected to the emergency stop controller through an external emergency stop interface. The emergency stop circuit includes a group of photoelectric couplers, and the output end of the photoelectric coupler is connected to the emergency stop control pin of the main control chip 1. The output end of the photoelectric coupler is connected to the emergency stop interface, and the emergency stop interface is powered by a 48V voltage.
[0087] Optionally, as shown in Figure 10, the emergency stop circuit includes: pins 2 and 3 of terminal J7 are connected to a 48V voltage, pin 1 of the emergency stop interface J7 is connected to one end of the resistor R32, the other end of the resistor R32 is connected to the positive electrode of the diode D6, the negative electrode of the diode D6 and pin 3 of the emergency stop interface J7 are connected in parallel with capacitor C75 and diode D7 in sequence, the diode D7 is connected to the optocoupler U11, the optocoupler U11 is connected to a 3.3V voltage and is connected to the PF6 pin of the integrated chip U5.
[0088] In this embodiment, the PF7 pin, PF8 pin, and PF9 pin of the integrated chip U5 are connected to the three-color alarm light driving circuit; the three-color alarm light driving circuit is connected to the three-color alarm light through the three-color light interface J12, and the three-color alarm light driving circuit includes three groups of optocouplers arranged in parallel, and the output ends of the three groups of optocouplers are all connected to the three-color light interface, and the input ends of the three groups of optocouplers are respectively connected to the three-color light control pins of the main control chip 1.
[0089] Optionally, as shown in Figure 11, the indicator light circuit is a three-color indicator light, including parallel optocouplers U8, U10 and U13, which are respectively configured to receive three-color light signals, the optocoupler U8 is connected to the PF7 pin of the integrated chip U5, U10 is connected to the PF8 pin of the integrated chip U5, and U13 is connected to the PF9 pin of the integrated chip U5.
[0090] In this embodiment, the three-color warning light driving circuit is powered by a four-stage step-down circuit, which is configured to step down a 48V voltage to 24V.
[0091] Optionally, as shown in FIG12 , the four-stage buck circuit includes:
[0092] The IN pin of the integrated chip U24 is connected to a 48V voltage and is connected to the EN pin through a resistor R110.
[0093] The IN pin is connected to a capacitor group consisting of capacitors C24, C34, and C118 connected in parallel and a resistor R119. One end of the resistor R119 is connected to the GND pin.
[0094] The BS pin of the integrated chip U24 is connected in series with the resistor R118, the capacitor C120 and the inductor L10. The connection point between the capacitor C120 and the inductor L10 is connected to the SW pin of the integrated chip U24 and the output end of the diode D23.
[0095] The other end of the inductor L10 is sequentially connected in parallel to a capacitor C121 , a resistor group consisting of a resistor R115 and a resistor R116 , a capacitor C122 , and a capacitor C123 .
[0096] The parallel connection point of capacitor C121 and resistor R115 is connected to the FB pin of integrated chip U24, resistor R116 is connected in parallel to the input end of diode DR12, and capacitor C123 outputs 12V voltage. Therefore, integrated chip U24 is connected to 48V and then steps down to output 12V voltage.
[0097] In this embodiment, as shown in Figure 13(a)-(b), there is a circuit diagram of the Profinet communication circuit 2. The Profinet communication circuit 2 includes a Profinet communication chip. The Ethernet signal connected to the network port 3 through the network transformer is transmitted to the Profinet communication chip. The Profinet communication chip processes the Ethernet signal and then transmits it to the main control chip 1. There is at least one network port 3, and each network port 3 is correspondingly provided with a network transformer. The circuit of the network port 3 is shown in Figure 14(a)-(b).
[0098] In this embodiment, the Profinet communication circuit 2 also has a 3V voltage supply point, which is powered by accessing a 3V voltage.
[0099] In this embodiment, the CAN communication circuit 4 includes a CAN processing chip, the CAN high and low level pins on the CAN processing chip are respectively connected to the high and low level lines of the CAN bus, and a protection circuit is provided on the CAN high and low level pins. The protection circuit includes a voltage regulator connected in parallel to the CAN high and low level connection ends and two groups of transient voltage suppression diodes connected in parallel to the CAN high and low level connection ends respectively. The CAN intermediate signal pin on the CAN processing chip is connected to the corresponding pin of the main control chip 1; a termination resistor is connected in parallel between the high and low level signals of the CAN interface 5.
[0100] Optionally, as shown in FIG15 , the first CAN communication circuit includes: an integrated chip U19.
[0101] The TXD pin of the integrated chip U19 is connected to the PB13 pin of the integrated chip U5, the RXD pin of the integrated chip U19 is connected to the PB12 pin of the integrated chip U5, and the CANH1 pin and CANL1 pin of the integrated chip U19 are configured to access the CAN communication signal.
[0102] The VCC1 pin of the integrated chip U19 is connected to a 5V voltage; the VCC1 pin is connected to capacitors C85 and C87 in parallel, one end of the capacitors C85 and C87 is connected to a 5V voltage, and the other end is connected to the GND1 pin of the integrated chip U19 and then grounded.
[0103] The integrated chip U19 also integrates a first protection circuit, specifically including: the VISO pin of the integrated chip U19 is connected to the capacitor C90 and the capacitor C91 in parallel, and the other ends of C90 and the capacitor C91 are connected to the GND2 pin of the integrated chip U19 and then grounded.
[0104] The CANH1 pin of the integrated chip U19 is connected to one end of the diode D15 and the first cathode port of the Zener diode D19, the CANL1 pin of the integrated chip U19 is connected to one end of the diode D16 and the second cathode port of the Zener diode D19, the other end of the diode D15, the other end of the diode D16 and the common anode port of the Zener diode D19 are connected to the GND2 pin of the integrated chip U19 and grounded.
[0105] As shown in FIG16 , the second CAN communication circuit includes: an integrated chip U20 .
[0106] The TXD pin of the integrated chip U20 is connected to the PB9 pin of the integrated chip U5, the RXD pin of the integrated chip U20 is connected to the PB8 pin of the integrated chip U5, and the CANH2 pin and CANL2 pin of the integrated chip U20 are configured to access the CAN communication signal.
[0107] The VCC1 pin of the integrated chip U20 is connected to a 5V voltage; the VCC1 pin is connected to capacitors C86 and C88 in parallel, one end of the capacitors C86 and C88 is connected to a 5V voltage, and the other end is connected to the GND1 pin of the integrated chip U20 and then grounded.
[0108] The integrated chip U20 also integrates a second protection circuit, specifically including: the VISO pin of the integrated chip U20 is connected to the capacitor C92 and the capacitor C93 in parallel, and the other ends of C92 and the capacitor C93 are connected to the GND2 pin of the integrated chip U20 and then grounded.
[0109] The CANH2 pin of the integrated chip U20 is connected to one end of the diode D17 and the first cathode port of the Zener diode D20, the CANL2 pin of the integrated chip U20 is connected to one end of the diode D18 and the second cathode port of the Zener diode D20, the other end of the diode D17, the other end of the diode D18 and the common anode port of the Zener diode D20 are connected, and then connected to the GND2 pin of the integrated chip U20 and grounded.
[0110] In this embodiment, a clock circuit as shown in FIG17 is also included, which is connected to the PF0 and PF1 pins of the integrated chip U5.
[0111] In this embodiment, a relay connection circuit as shown in Figure 18 (a)-(b) is also included; the relay connection circuit is connected to an external relay through a relay interface (J8 / J16), and the relay connection circuit includes two photoelectric couplers (U22 / U23) connected in series and a group of MOS tubes (Q1 / Q5). The input end of the photoelectric coupler connected in series is connected to the relay control pin of the main control chip 1 (that is, the PF7-PF11 pins of the integrated chip U5), and the two photoelectric couplers are respectively connected to the drain and gate of the MOS tube, and the drain and source of the MOS tube are respectively connected to the relay interface.
[0112] In this embodiment, a LoRa transmission circuit is also included. As shown in Figure 19, the LoRa transmission circuit is connected to an external transmitting antenna through the LoRa interface J14. The LoRa transmission circuit includes a LoRa chip U19. The control pin of the LoRa chip U19 is connected to the LoRa control pin of the main control chip 1, and the output pin on the LoRa chip is connected to the LoRa interface.
[0113] The main control chip 1 shown in Figure 5 (a)-(b) is not connected to the LoRa transmission circuit. The main control chip 1 shown in Figure 20 is connected to the LoRa transmission circuit, specifically: the PB7 pin of the integrated chip U1 is connected to the AUX pin of the LoRa chip U19; the PB10 pin of the integrated chip U1 is connected to the RX pin of the LoRa chip U19; the PB11 pin of the integrated chip U1 is connected to the TX pin of the LoRa chip U19; the PB14 pin of the integrated chip U1 is connected to the MM0 pin of the LoRa chip U19; and the PB15 pin of the integrated chip U1 is connected to the M1 pin of the LoRa chip U19.
[0114] In this embodiment, the shell is shown in Figures 21-23.
[0115] One end of the shell is provided with a LoRa interface 6, a first DO interface 7, a second DO interface 8, a third DO interface 9, a DI interface 10 and a power interface 12; as shown in Figure 24; wherein, the LoRa interface 6 is configured to access the LoRa transmission circuit and can be connected to the LoRa antenna; the first DO interface 7 and the second DO interface 8 are two-pin interfaces, connected to the DO two-pin interface circuit, and can be configured to connect to a relay; the third DO interface 9 is a four-pin interface, connected to the DO four-pin interface circuit, and can be configured to connect to a three-color alarm light; the DI interface 10 is a three-pin interface, connected to the DI three-pin interface circuit, and can be configured to connect to an emergency stop device.
[0116] The other end of the shell is provided with a status indicator light 11, two CAN interfaces 5 and two network ports 3, as shown in Figure 25; among them, the CAN interface 5 is connected to the CAN communication circuit 4, and the network port 3 is connected to the Profinet communication circuit 2.
[0117] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Those skilled in the art should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure. Industrial Applicability
[0118] The above solution can extend the total communication distance, facilitate wiring, reduce the wiring work between PLC and servo system, and has a simple and convenient structure, high stability, large communication data volume, and improve CAN communication efficiency through an independent CAN interface.
Claims
1. A Profinet to CAN protocol gateway, characterized in that: include: A housing, and a main control chip, a power supply circuit, a Profinet communication circuit, and at least two groups of CAN communication circuits arranged in the housing; the housing is provided with a network port and at least two groups of CAN interfaces, one end of the CAN interface is connected to the CAN communication circuit, the other end of the CAN interface is externally connected to a CAN bus, and the network port is connected to the Profinet communication circuit; the Profinet communication circuit and the CAN communication circuit are both connected to the main control chip, and the Ethernet signal input by the network port is processed by the Profinet communication circuit, the main control chip, and the CAN communication circuit, and then outputs a CAN signal through the CAN interface.
2. A Profinet to CAN protocol gateway according to claim 1, characterized in that: The CAN interfaces are provided in two groups, and the two groups of CAN interfaces are wired and connected in two directions.
3. A Profinet to CAN protocol gateway according to claim 1 or 2, characterized in that: The CAN communication circuit is provided with two groups, and the first pin and the second pin of the main control chip are connected to the first CAN communication circuit, and are configured to receive the CAN signal sent by the first CAN communication circuit and convert the CAN signal into a Profinet signal and send it; Or it is configured to convert the Profinet signal into a CAN signal and then send it through the first CAN communication circuit.
4. A Profinet to CAN protocol gateway according to claim 3, characterized in that: The third pin and the fourth pin of the main control chip are connected to the second CAN communication circuit, and are configured to receive the CAN signal sent by the second CAN communication circuit and convert it into a Profinet signal and send it out; Or it is configured to convert the Profinet signal into a CAN signal and then send it through the second CAN communication circuit.
5. A Profinet to CAN protocol gateway according to any one of claims 1 to 4, characterized in that: The Profinet communication circuit includes a Profinet communication chip. The Ethernet signal connected to the network port through the network transformer is transmitted to the Profinet communication chip. The Profinet communication chip processes the Ethernet signal and then transmits it to the main control chip. There is at least one network port, and each network port is correspondingly provided with a network transformer.
6. A Profinet to CAN protocol gateway according to any one of claims 1 to 5, characterized in that: The Profinet communication circuit further includes a 3V voltage supply point, which is powered by accessing a 3V voltage.
7. A Profinet to CAN protocol gateway according to claim 5 or 6, characterized in that: It also includes a reset circuit, which includes a reset switch, a first monitoring chip and a second monitoring chip. The reset switch, the first monitoring chip and the second monitoring chip are connected in series, the output pin of the first monitoring chip is connected to the reset pin of the main control chip, and the output pin of the second monitoring chip is connected to the reset pin of the Profinet communication chip. When the reset switch is triggered, the first monitoring chip and the second monitoring chip send reset signals to the main control chip and the Profinet communication chip respectively.
8. A Profinet to CAN protocol gateway according to any one of claims 1 to 7, characterized in that: The CAN communication circuit includes a CAN processing chip, the CAN high and low level pins on the CAN processing chip are respectively connected to the high and low level lines of the CAN bus, and a protection circuit is provided on the CAN high and low level pins. The protection circuit includes a voltage regulator connected in parallel to the CAN high and low level connection ends and two groups of transient voltage suppression diodes connected in parallel to the CAN high and low level connection ends respectively. The CAN intermediate signal pin on the CAN processing chip is connected to the corresponding pin of the main control chip; a termination resistor is connected in parallel between the high and low level signals of the CAN interface.
9. A Profinet to CAN protocol gateway according to any one of claims 1 to 8, characterized in that: The power supply circuit includes a primary step-down circuit, a secondary step-down circuit and a tertiary step-down circuit; The primary step-down circuit is configured to step down the 48V voltage to 5V to power the CAN communication circuit; The secondary step-down circuit is configured to step down the 5V voltage to 3.3V to supply power to the 3.3V supply points on the main control chip and the Profinet communication circuit; The three-stage step-down circuit is configured to step down the 5V voltage to 1V to supply power to the 1.5V supply voltage point on the main control chip and the Profinet communication circuit.
10. A Profinet to CAN protocol gateway according to any one of claims 1 to 9, characterized in that: It also includes a three-color alarm light driving circuit, which is connected to an external three-color alarm light through a three-color light interface. The three-color alarm light driving circuit includes three groups of photoelectric couplers arranged in parallel, and the output ends of the three groups of photoelectric couplers are all connected to the three-color light interface, and the input ends of the three groups of photoelectric couplers are respectively connected to the three-color light control pins of the main control chip; the three-color alarm light driving circuit is powered by a four-stage step-down circuit, and the four-stage step-down circuit is configured to step down the 48V voltage to 24V.
11. A Profinet to CAN protocol gateway according to any one of claims 1 to 10, characterized in that: It also includes an emergency stop circuit, which is connected to an emergency stop controller through an external emergency stop interface. The emergency stop circuit includes a group of photoelectric couplers, the output end of the photoelectric coupler is connected to the emergency stop control pin of the main control chip, and the output end of the photoelectric coupler is connected to the emergency stop interface. The emergency stop interface is powered by a 48V voltage.
12. A Profinet to CAN protocol gateway according to any one of claims 1 to 11, characterized in that: It also includes a relay connection circuit, which is connected to an external relay through a relay interface. The relay connection circuit includes two photoelectric couplers connected in series and a group of MOS tubes. The input ends of the photoelectric couplers connected in series are connected to the relay control pins of the main control chip, and the two photoelectric couplers are respectively connected to the drain and gate of the MOS tube. The drain and source of the MOS tube are respectively connected to the relay interface.
13. A Profinet to CAN protocol gateway according to any one of claims 1 to 12, characterized in that: It also includes an infrared emitting circuit, which includes an infrared emitting chip. The infrared emitting chip has its own infrared emitting source, and the data transmission interface on the infrared emitting chip is connected to the infrared control pin of the main control chip.
14. A Profinet to CAN protocol gateway according to any one of claims 1 to 13, characterized in that: It also includes a LoRa transmission circuit, which is connected to an external transmitting antenna through a LoRa interface. The LoRa transmission circuit includes a LoRa chip, a control pin of the LoRa chip is connected to the LoRa control pin of the main control chip, and an output pin on the LoRa chip is connected to the LoRa interface.
15. A Profinet to CAN protocol gateway according to any one of claims 1 to 14, characterized in that: Also includes: A clock circuit is connected to a pin of the main control chip.
16. A Profinet to CAN protocol gateway according to claim 14 or 15, characterized in that: One end of the housing is provided with a LoRa interface, a first DO interface, a second DO interface, a third DO interface, a DI interface and a power interface; The LoRa interface is configured to access the LoRa transmission circuit to connect to the LoRa antenna; The first DO interface and the second DO interface are two-pin interfaces connected to the DO two-pin interface circuit and configured to connect to the relay; The third DO interface is a four-pin interface, connected to the DO four-pin interface circuit, and configured to connect to a three-color warning light; The DI interface is a three-pin interface, connected to the DI three-pin interface circuit, and configured to connect to the emergency stop device.
Citation Information
Patent Citations
Conversion and scheduling method among profinet, FF Hi, CAN and profibus protocols
CN108809949A
Charging pile remote upgrading system and method based on CAN bus
CN112202602A
Expansion circuit with multiple CAN (Controller Area Network) channel interfaces
CN202602678U
Adapter for converting Ethernet interface into CAN (Controller Area Network) bus interface
CN213693991U
Profinet to CAN protocol gateway
CN221709865U