Tyepc interface function separation circuit for PLC, PLC equipment and data line
By designing a Type-C interface function separation circuit in the PLC, the problem of functional mismatch between the Type-C interface in the development and application stages is solved, achieving hardware simplification and cost reduction, while supporting flexible debugging functions.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- SUZHOU BAOKONG ELECTRONIC TECH CO LTD
- Filing Date
- 2025-06-20
- Publication Date
- 2026-05-05
AI Technical Summary
In PLC design, the functional requirements of the Type-C interface during the development phase do not match the utilization rate during the application phase, leading to increased component costs and circuit board complexity, and reducing the cost-effectiveness of the design.
Design a Type-C interface function separation circuit to separate debugging function and normal function. The debugging function can be activated when needed through an external debugging interface circuit, which simplifies the hardware layout and reduces costs.
Without changing the PLC hardware layout, the Type-C interface was implemented for power supply and data transmission during the application phase, increasing the flexibility of debugging functions, simplifying the circuit, and reducing hardware costs.
Smart Images

Figure CN224203612U_ABST
Abstract
Description
Technical Field
[0001] This utility model belongs to the field of circuit design technology, and in particular relates to a tyepc interface function separation circuit for PLC, PLC equipment, and data cable. Background Technology
[0002] Type-C, with its symmetrical design, completely solves the "insertion backwards" problem of traditional interfaces, boasting a plug-and-play lifespan of over 10,000 cycles, significantly reducing the risk of user error and equipment damage. Furthermore, Type-C's flexible power supply, support for data exchange between devices, and assistance with program downloading and debugging during the development phase have made it a standardized hardware design. Currently, almost all electronic products on the market are equipped with Type-C ports.
[0003] In the traditional PLC design field, more and more manufacturers are using Type-C as the standard design. Adding a Type-C port to a PLC not only allows users to directly power it with a power bank or other power source for basic function debugging and verification, but also facilitates firmware upgrades, development debugging, and data exchange via terminal interfaces. Especially in high-performance PLCs, such as those supporting Linux systems, Type-C has become an indispensable design element. These designs often require the inclusion of a USB hub controller chip and a serial port chip in the circuitry, enabling Type-C to achieve multi-port interface functionality.
[0004] However, when Type-C is used for system debugging and as a terminal interface, it is often only needed during the development phase. In normal project applications, Type-C is usually only used for temporary power supply or data file download and upload. If the final product circuit is equipped with all the necessary functional circuits for Type-C, the utilization rate of these functions, which are only needed during the development phase, will be very low during the application phase. This leads to additional component costs and increased circuit board complexity, thus significantly reducing the overall cost-effectiveness of the design. Utility Model Content
[0005] The purpose of this invention is to address the aforementioned problems by proposing a functional application separation design, providing a PLC with a separate function EPC interface circuit, PLC device, and data cable. The PLC device retains its normal functions to meet routine application requirements; simultaneously, it incorporates flexible and convenient function access methods, facilitating the integration of debugging functions during R&D and production, reducing PLC hardware layout space and costs while meeting both routine and debugging needs.
[0006] A TYEPC interface function separation circuit for PLC, comprising,
[0007] PLC hardware, including the main control chip and Type-C female connector;
[0008] The Type-C female connector includes power supply pins, detection pins, auxiliary pins, and data pins. The power supply pins are connected to a 5V power supply port, the data pins are connected to the USB interface of the main control chip, and the detection pins and auxiliary pins are connected to the serial interface of the main control chip.
[0009] The external debugging interface circuit includes a USB hub circuit, a serial port conversion circuit connected to the USB hub circuit, and a Type-C male port connected to the USB hub circuit and the serial port conversion circuit respectively.
[0010] The USB hub circuit splits the USB signal into a first group of differential signals and a second group of differential signals;
[0011] The serial port conversion circuit converts the second set of differential signals into serial debugging signals;
[0012] The Type-C male connector is used to connect to the Type-C female connector so that the first set of differential signals and serial debugging signals can be accessed through the Type-C female connector.
[0013] In the above-mentioned Type-C interface function separation circuit for PLC, the Type-C female connector includes a power supply pin VBUS, an auxiliary pin SBU, a detection pin CC, and a data pin DN / DP.
[0014] The power supply pin VBUS is connected to the 5V power supply port;
[0015] The auxiliary pin SBU is connected to the serial interface RX of the main control chip;
[0016] The detection pin CC is connected to the serial interface TX of the main control chip;
[0017] The data pin DN is connected to the USB_DM port of the main control chip;
[0018] The data pin DP is connected to the USB_DP port of the main control chip.
[0019] In the above-mentioned Type-C interface function separation circuit for PLC, the Type-C female connector includes two power supply pins VBUS, two auxiliary pins SBU, two detection pins CC, and two data pins DN / DP.
[0020] Both power supply pins VBUS are connected to the 5V power supply port;
[0021] Both auxiliary pins SBU are connected to the serial interface RX of the main control chip;
[0022] Both detection pins CC are connected to the serial interface TX of the main control chip;
[0023] Both data pins (DN ports) are connected to the USB_DM port of the main control chip;
[0024] Both data pins DP are connected to the USB_DP port of the main control chip;
[0025] Furthermore, any two identical pins are arranged in a mirror-symmetrical configuration to support insertion in either direction.
[0026] In the above-mentioned Type-C interface function separation circuit for PLC, the Type-C female connector also includes two signal ground interfaces that are symmetrically distributed vertically and horizontally, and connected to the ground terminal.
[0027] The Type-C female connector also includes two physical ground interfaces that are symmetrically distributed vertically and horizontally, and are connected to the ground terminal.
[0028] In the above-mentioned tyepc interface function separation circuit for PLC, the four output terminals of the USB hub circuit for outputting two sets of differential signals are connected in series with a 22Ω resistor and in parallel with a 15kΩ pull-down resistor, respectively, to obtain a first interface pair corresponding to the first set of differential signals and a second interface pair corresponding to the second set of differential signals.
[0029] In the aforementioned tyepc interface function separation circuit for PLC, the serial port conversion circuit includes a serial port chip for converting the second interface pair into a serial interface pair.
[0030] In the above-mentioned Type-C interface function separation circuit for PLC, the structure of the Type-C male connector is the same as that of the Type-C female connector.
[0031] The first interface is respectively connected to the two data pins DN and two data pins DP of the Typec male port;
[0032] The serial interface is connected to the two auxiliary pins SBU and the two detection pins CC of the Type-C male port, respectively.
[0033] In the above-mentioned Type-C interface function separation circuit for PLC, when the external debugging interface circuit is not connected, the Type-C female connector only opens the power supply channel and the data transmission channel.
[0034] When the external debugging interface circuit is connected, its serial interface is physically connected to the detection pin CC and auxiliary pin SBU of the Type-C female connector respectively to activate the debugging function.
[0035] A PLC device that integrates the aforementioned Type-C female connector.
[0036] A data cable including the aforementioned external debugging interface circuit.
[0037] Compared to common connection methods, the advantages of this utility model are:
[0038] This solution provides a functional separation circuit for PLC Type-C interface applications, separating the terminal debugging and data transmission functions of the Type-C port. During application, the PLC's Type-C female port only serves for power supply and data transmission, and cannot be used for debugging or terminal interaction. When debugging and terminal interaction are required, an external debugging interface circuit 2 is used to implement a USB-to-Type-C male port that supports serial communication. This eliminates the need to change the existing hardware layout of the PLC; simply connect the Type-C male port to the Type-C female port to achieve serial data printing and terminal interaction capabilities. This not only reduces the PLC's hardware layout space and lowers hardware costs, but also makes the design and application of functions more flexible and convenient. Attached Figure Description
[0039] Figure 1 This is a circuit block diagram of the tyepc interface function separation circuit for PLC of this utility model;
[0040] Figure 2 This is a schematic diagram of the PLC hardware Type-C circuit in the PLC Type-C interface function separation circuit of this utility model.
[0041] Figure 3 This is a schematic diagram of the USB hub circuit 21 of the external debugging interface circuit 2 in the tyepc interface function separation circuit of PLC of this utility model.
[0042] Figure 4 This is a schematic diagram of the signal conditioning circuit of the external debugging interface circuit 2 in the PLC tyepc interface function separation circuit of this utility model;
[0043] Figure 5 This is a schematic diagram of the serial port conversion circuit 22 of the external debugging interface circuit 2 in the tyepc interface function separation circuit of PLC of this utility model;
[0044] Figure 6 This is a schematic diagram of the Type-C male port 23 of the external debugging interface circuit 2 in the Type-C interface function separation circuit for PLC of this utility model.
[0045] Figure labels: PLC hardware 1, main control chip 11, Type-C female connector 12, external debugging interface circuit 2, USB hub circuit 21, serial port conversion circuit 22, Type-C male port 23. Detailed Implementation
[0046] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0047] like Figure 1 As shown, this embodiment uses a Type-C female connector 12 containing power supply pins, detection pins, auxiliary pins, and data pins in the PLC hardware 1, removes the debugging function-related circuits, and designs a corresponding external debugging interface circuit 2. When serial port functionality and terminal interaction functionality are required, the external debugging interface circuit 2 can be used to achieve this. The specific implementation circuit is as follows:
[0048] like Figure 2 As shown, the two power supply pins VBUS of the Type-C female connector 12 connect to port P1, which is a 5V power supply port; the two auxiliary pins SBU connect to port P2, which is the serial interface RX of the main control chip 11; the two detection pins CC connect to port P3, which is the serial interface TX of the main control chip 11; the two data pins DN connect to port P4, which is the USB_DM port (data negative line) of the main control chip 11; and the two data pins DP connect to port P5, which is the USB_DP port (data positive line) of the main control chip 11. The design also supports reversible insertion.
[0049] At this point, the Type-C port can be directly plugged into a portable power source, such as a power bank, for temporary power supply using a common USB-to-Type-C male cable (a common mobile phone charging cable, allowing users to verify the product's basic functions without a specific connector). It can also be directly connected to a computer for data transfer, downloading, or firmware flashing, as long as the system software conforms to the USB transmission protocol of the main control chip 11.
[0050] The above simplified design greatly simplifies the hardware circuit structure, reduces layout space, lowers costs, and can meet most of the product's application function requirements.
[0051] Meanwhile, this solution also provides an external debugging interface circuit 2, including a USB hub circuit 21, a serial port conversion circuit 22 connected to the USB hub circuit 21, and a Type-C male port 23 connected to the USB hub circuit 21 and the serial port conversion circuit 22 respectively.
[0052] USB hub circuit 21 splits the USB signal into a first group of differential signals and a second group of differential signals. For example... Figure 3 As shown, the USB signals MAIN_DP and MAIN_DM are split into two by the USB hub chip, forming two differential signals: USB1 and USB2, labeled as HUB USB1 DM / HUB USB1 DP and HUB USB2 DM / HUB USB2 DP, respectively.
[0053] like Figure 4 As shown, the two sets of differential signals HUB USB1 DM / HUB USB1 DP and HUB USB2 DM / HUB USB2DP are respectively processed by signal conditioning circuits to achieve current limiting and suppress signal reflection, while stabilizing the bus idle state. Specifically, the two sets of differential signals HUB USB1 DM / HUB USB1 DP and HUB USB2 DM / HUB USB2 DP are connected in series with a 22Ω resistor for current limiting, suppressing signal reflection and high frequency, while a 15kΩ resistor is pulled down to ground to stabilize the bus idle state. Finally, the first interface pair USB0_DM\USB0_DP corresponding to HUB USB1 DM / HUB USB1 DP and the second interface pair UD+\UD- corresponding to HUB USB2DM / HUB USB2 DP are obtained respectively.
[0054] The serial port conversion circuit 22 converts the second set of differential signals into serial debugging signals. For example... Figure 5 As shown, a serial port chip is used to convert the second interface pair UD+\UD- into serial interface pairs CH340_RXD and CH340_TXD, thus realizing a serial data line.
[0055] Type-C male connector 23 is used to connect to a Type-C female connector so that the first set of differential signals and serial debug signals can be accessed through the Type-C female connector. For example... Figure 6 As shown, the serial interface pins CH340_RXD and CH340_TXD are connected to the two auxiliary pins SBU and two detection pins CC of the Typec male port, respectively. The first interface pins USB0_DM and USB0_DP are connected to the two data pins DN and DP of the Typec male port, respectively. The Typec male port and... Figure 2 It corresponds to the Type-C female connector 12 interface.
[0056] When debugging functions is required, Figure 6 The Typec male port is connected to Figure 2 The Type-C female connector 12 connects the first set of differential signals USB0_DM and USB0_DP to the data pins of the Type-C female connector 12, and the serial debug signals CH340_RXD and CH340_TXD are connected to the detection pin CC and auxiliary pin SBU of the Type-C female connector to activate the debug function. Figure 3 The USB data cable is designed to connect to the computer's USB port or Type-C port. This adds serial port debugging functionality to the original design.
[0057] This solution cleverly separates and combines the functions of the debugging and application phases. Only the serial port debugging function needs to be connected during the system debugging phase; under normal circumstances, only charging and data transmission functions are retained. Furthermore, all interfaces are Type-C ports, ensuring normal Type-C functionality while also supporting the additional connection of serial port debugging. It offers high flexibility, meeting the needs of different scenarios from R&D and production to application, while simplifying the circuit structure and reducing circuit costs.
[0058] Furthermore, this embodiment also provides a PLC device that integrates the aforementioned Type-C female connector. The connection method between the Type-C female connector and the main control chip of the PLC device has been mentioned above and will not be repeated here.
[0059] Furthermore, this embodiment also provides a data cable specifically designed for implementing debugging functions in the aforementioned PLC device. This data cable includes the aforementioned external debugging interface circuit. One end of the data cable is a USB hub circuit 21, which splits the USB signal into a first group of differential signals and a second group of differential signals. The other end is a Type-C male connector 23, used to connect to a Type-C female connector.
[0060] The specific embodiments described herein are merely illustrative examples illustrating the spirit of this utility model. Those skilled in the art to which this utility model pertains may make various modifications or additions to the described specific embodiments or use similar methods to substitute them, without departing from the spirit of this utility model or exceeding the scope defined by the appended claims.
[0061] Although this document uses terms such as PLC hardware 1, main control chip 11, Type-C female connector 12, external debugging interface circuit 2, USB hub circuit 21, serial port conversion circuit 22, and Type-C male connector 23 extensively, the possibility of using other terms is not excluded. These terms are used merely for the convenience of describing and explaining the essence of this utility model; interpreting them as any additional limitation would contradict the spirit of this utility model.
Claims
1. A TYEPC interface function separation circuit for PLC, characterized in that, include, PLC hardware, including the main control chip and Type-C female connector; The Type-C female connector includes power supply pins, detection pins, auxiliary pins, and data pins. The power supply pins are connected to a 5V power supply port, the data pins are connected to the USB interface of the main control chip, and the detection pins and auxiliary pins are connected to the serial interface of the main control chip. The external debugging interface circuit includes a USB hub circuit, a serial port conversion circuit connected to the USB hub circuit, and a Type-C male port connected to the USB hub circuit and the serial port conversion circuit respectively. The USB hub circuit splits the USB signal into a first group of differential signals and a second group of differential signals; The serial port conversion circuit converts the second set of differential signals into serial debugging signals; The Type-C male connector is used to connect to the Type-C female connector so that the first set of differential signals and serial debugging signals can be accessed through the Type-C female connector.
2. The tyepc interface function separation circuit for PLC according to claim 1, characterized in that, The Type-C female connector includes a power supply pin VBUS, an auxiliary pin SBU, a detection pin CC, and a data pin DN / DP. The power supply pin VBUS is connected to the 5V power supply port; The auxiliary pin SBU is connected to the serial interface RX of the main control chip; The detection pin CC is connected to the serial interface TX of the main control chip; The data pin DN is connected to the USB_DM port of the main control chip; The data pin DP is connected to the USB_DP port of the main control chip.
3. The tyepc interface function separation circuit for PLC according to claim 2, characterized in that, The Type-C female connector includes two power supply pins VBUS, two auxiliary pins SBU, two detection pins CC, and two data pins DN / DP. Both power supply pins VBUS are connected to the 5V power supply port; Both auxiliary pins SBU are connected to the serial interface RX of the main control chip; Both detection pins CC are connected to the serial interface TX of the main control chip; Both data pins (DN ports) are connected to the USB_DM port of the main control chip; Both data pins DP are connected to the USB_DP port of the main control chip; Furthermore, any two identical pins are arranged in a mirror-symmetrical configuration to support insertion in either direction.
4. The tyepc interface function separation circuit for PLC according to claim 3, characterized in that, The Type-C female connector also includes two signal ground interfaces that are symmetrically distributed vertically and horizontally, and connected to the ground terminal; The Type-C female connector also includes two physical ground interfaces that are symmetrically distributed vertically and horizontally, and are connected to the ground terminal.
5. The tyepc interface function separation circuit for PLC according to claim 1, characterized in that, The four output terminals of the USB hub circuit, which are used for outputting two sets of differential signals, are connected in series with a 22Ω resistor and in parallel with a 15kΩ pull-down resistor, to obtain a first interface pair corresponding to the first set of differential signals and a second interface pair corresponding to the second set of differential signals, respectively.
6. The tyepc interface function separation circuit for PLC according to claim 5, characterized in that, The serial port conversion circuit includes a serial port chip for converting the second interface pair into a serial interface pair.
7. The tyepc interface function separation circuit for PLC according to claim 6, characterized in that, The male Type-C connector and the female Type-C connector have the same structure. The first interface is respectively connected to the two data pins DN and two data pins DP of the Typec male port; The serial interface is connected to the two auxiliary pins SBU and the two detection pins CC of the Type-C male port, respectively.
8. The tyepc interface function separation circuit for PLC according to claim 7, characterized in that, When the external debugging interface circuit is not connected, the Type-C female connector only opens the power supply channel and the data transmission channel; When the external debugging interface circuit is connected, its serial interface is physically connected to the detection pin CC and auxiliary pin SBU of the Type-C female connector respectively to activate the debugging function.
9. A PLC device, characterized in that, Integrating the Type-C female connector as described in any one of claims 1 to 8.
10. A data cable comprising the external debugging interface circuit as described in any one of claims 1 to 8.