Intelligent switching circuit and industrial control equipment
Through the control module and level conversion module in the intelligent switching circuit, different serial communication interfaces are identified and adapted, which solves the problem of industrial control equipment being incompatible with different interface devices and achieves compatibility and flexibility for multiple interfaces.
Patent Information
- Application Number
- CN202420012299.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2034-01-03
AI Technical Summary
Existing industrial control equipment cannot meet the needs of different serial communication interface devices because they need to design different interface outputs, and RS-232, RS-422 and RS-485 have different electrical characteristics, resulting in incompatibility.
Design an intelligent switching circuit, including a control module and a level conversion module. The main control module identifies the serial port type of the access device and switches the working mode of the level conversion module according to the interface type to meet the interface requirements of the access device.
It realizes that industrial control equipment can be compatible with access equipment of different interface types, meet the needs of various usage scenarios, and improve the applicability and flexibility of the equipment.
Smart Images

Figure CN221631961U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of serial communication, in particular to an intelligent switching circuit and industrial control equipment. Background Art
[0002] With the development of serial communication interface technology, three main serial communication interfaces are currently in common use, namely RS-232, RS-422 and RS-485. RS-232 adopts an unbalanced transmission mode, namely the so-called single-ended communication, which only allows one-to-one communication, with a short communication distance and low rate; RS-422 adopts a balanced transmission mode, namely a differential transmission mode, which is a unidirectional, balanced transmission specification for single-machine transmission and multi-machine reception, which improves the shortcomings of RS-232 of short communication distance and low rate; RS-485 adds multi-point and bidirectional communication capabilities based on RS-422, that is, it allows multiple transmitters to be connected to the same bus, but RS-485 can only work in half-duplex mode, and transmission and reception cannot be performed at the same time.
[0003] Different serial communication interface devices use different specific serial communication interfaces in different usage scenarios, and RS-232, RS-422, and RS-485 have different electrical characteristics. Usually, different serial communication interfaces on industrial control devices require different interface outputs to be designed. When the serial communication interface on the industrial control device does not correspond to the customer's serial data interface device protocol standard, the industrial control device cannot be used and cannot meet the usage requirements of different scenarios. Utility Model Content
[0004] The utility model provides an intelligent switching circuit and industrial control equipment, aiming to solve the problem that current industrial control equipment cannot meet the use requirements of different interface devices.
[0005] In a first aspect, the utility model provides an intelligent switching circuit, which includes a control module and a level conversion module; the input end of the control module is used to connect to the output end of the main control module of the industrial control equipment; the controlled end of the level conversion module is connected to the output end of the control module, the input end of the level conversion module is connected to the main control module, and the output end of the level conversion module is connected to the access device; wherein, the control module switches the working mode of the level conversion module under the control of the main control module to meet the interface requirements of the access device.
[0006] Furthermore, the level conversion module includes a first receiver and a first transmitter; one end of the first receiver and one end of the first transmitter are both connected to the main control module, the other end of the first receiver and the other end of the first transmitter are both connected to the access device, and the first transmitter and the first receiver are also connected to the control module.
[0007] Furthermore, the level conversion module includes a second receiver and a second transmitter; one end of the second receiver and one end of the second transmitter are both connected to the main control module, and the other end of the second receiver and the other end of the second transmitter are both connected to the access device.
[0008] Furthermore, the level conversion module includes a third receiver and a third transmitter; one end of the third receiver and one end of the third transmitter are both connected to the main control module, and the other end of the third receiver and the other end of the third transmitter are both connected to the access device.
[0009] Furthermore, the level conversion module includes a fourth receiver and a fifth receiver; one end of the fourth receiver and one end of the fifth receiver are both connected to the main control module, and the other end of the fourth receiver and the other end of the fifth receiver are both connected to the access device.
[0010] In the second aspect, the utility model also provides an industrial control device, which includes a main control module and the intelligent switching circuit described in any one of the above items, the intelligent switching circuit includes a control module and a level conversion module, the control module is connected to the main control module, and the level conversion module is respectively connected to the control module, the main control module and the access device.
[0011] Furthermore, the intelligent switching circuit includes a first transmitter, a second transmitter, a third transmitter, a first receiver, a second receiver, a third receiver, a fourth receiver and a fifth receiver; one end of the first receiver and one end of the first transmitter are both connected to the main control module, the other end of the first receiver and the other end of the first transmitter are both connected to the access device, and the first transmitter and the first receiver are also connected to the control module; one end of the second receiver and one end of the second transmitter are both connected to the main control module, the other end of the second receiver and the other end of the second transmitter are both connected to the access device; one end of the third receiver and one end of the third transmitter are both connected to the main control module, the other end of the third receiver and the other end of the third transmitter are both connected to the access device; one end of the fourth receiver and one end of the fifth receiver are both connected to the main control module, the other end of the fourth receiver and the other end of the fifth receiver are both connected to the access device.
[0012] Furthermore, the first receiver is connected to the receiving data interface of the main control module, and the first transmitter is connected to the sending data interface of the main control module.
[0013] Further, the second receiver is connected to the carrier detection interface of the main control module, and the second transmitter is connected to the data terminal ready interface of the main control module.
[0014] Furthermore, the third receiver is connected to the data ready interface of the main control module, and the third transmitter is connected to the request sending interface of the main control module; the fourth receiver is connected to the clear sending interface of the main control module, and the fifth receiver is connected to the ringing indication interface of the main control module.
[0015] The industrial control equipment disclosed in the utility model includes an intelligent switching circuit and a main control module. The intelligent switching circuit includes a control module and a level switching module. The main control module can identify the serial port type of the access device connected, and switch the working mode of the level conversion module through the control module according to the interface type of the access device, so that the level conversion module meets the interface requirements of the access device, so that the industrial control equipment can meet the requirements of different access devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the utility model, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is a block diagram of an intelligent switching circuit provided by an embodiment of the utility model;
[0018] Figure 2 It is a circuit diagram of an intelligent switching circuit provided by an embodiment of the utility model;
[0019] Figure 3 It is a flow chart of an intelligent switching circuit provided by an embodiment of the utility model;
[0020] Figure 4 This is a circuit diagram of an intelligent switching circuit provided by an embodiment of the utility model in a first working mode;
[0021] Figure 5 This is a circuit diagram of an intelligent switching circuit provided by an embodiment of the utility model in a second working mode;
[0022] Figure 6 This is a circuit diagram of an intelligent switching circuit provided by an embodiment of the utility model in a third working mode. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0024] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, operations, elements, components and / or groups thereof.
[0025] It should also be understood that the terms used in this utility model specification are only for the purpose of describing specific embodiments and are not intended to limit the utility model. As used in the utility model specification and the appended claims, the singular forms of "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in the utility model specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0026] In addition, the directional terms mentioned in the present invention, such as "upper", "lower", "front", "back", "left", "right", "inner", "outer", "side", etc., are only for reference to the directions of the attached drawings and the use status of the product. Therefore, the directional terms used are used to illustrate and understand the present invention, but not to limit the present invention. In addition, in the drawings, structures with similar or identical structures are represented by the same reference numerals.
[0027] See also Figures 1 to 6 , Figure 1 1 is a block diagram of an intelligent switching circuit 100 provided in one embodiment of the present utility model; Figure 2 1 is a circuit diagram of an intelligent switching circuit 100 provided in one embodiment of the present utility model;
[0028] Figure 3 is a flow chart of an intelligent switching circuit 100 provided in one embodiment of the utility model; Figure 4 This is a circuit diagram of the intelligent switching circuit 100 provided by an embodiment of the utility model in the first working mode; Figure 5 This is a circuit diagram of the intelligent switching circuit 100 provided by an embodiment of the utility model in the second working mode; Figure 6 FIG. 1 is a circuit diagram of the intelligent switching circuit 100 provided in an embodiment of the present utility model in the third working mode. Figure 1 As shown, the intelligent switching circuit 100 includes a control module 10 and a level conversion module 20; the input end of the control module 10 is used to connect to the output end of the main control module 200 of the industrial control device; the controlled end of the level conversion module 20 is connected to the output end of the control module 10, the input end of the level conversion module 20 is connected to the main control module 200, and the output end of the level conversion module 20 is connected to the access device 300; wherein, the control module 10 switches the working mode of the level conversion module 20 under the control of the main control module 200 to meet the interface requirements of the access device 300.
[0029] Specifically, the control module 10 is used for logic control, the input end of the control module 10 is connected to the main control module 200 of the industrial control device, and the output end is connected to the level conversion module 20, and is used to exchange data signals and clock signals with the main control module 200. At the same time, the main control module 200 can output a control signal to the control module 10, and the control module 10 switches the working mode of the level conversion module 20 according to the control signal. Among them, the industrial control device can be a computer device.
[0030] See also Figure 3 , the level conversion module 20 may include a first working mode, a second working mode and a third working mode. The first working mode corresponds to the RS-485 serial port access device 300, the second working mode corresponds to the RS-422 serial port access device 300, and the third working mode corresponds to the RS-232 serial port access device 300. When the level conversion module 20 is connected to an access device 300 of a different interface type, the main control module 200 controls the level conversion module 20 to switch to a corresponding working mode through the control module 10. For example, if the access device 300 supports an RS-232 serial port, the main control module 200 can switch the working mode of the level conversion module 20 to the third working mode through the control module 10, so as to facilitate the industrial control device to communicate with the access device 300.
[0031] As a further embodiment, the level conversion module 20 includes a first receiver R1 and a first transmitter T1; one end of the first receiver R1 and one end of the first transmitter T1 are both connected to the main control module 200, the other end of the first receiver R1 and the other end of the first transmitter T1 are both connected to the access device 300, and the first transmitter T1 and the first receiver R1 are also connected to the control module 10.
[0032] Among them, one end of the first receiver R1 is connected to the main control module 200, the other end of the first receiver R1 is connected to the access device 300, one end of the first transmitter T1 is connected to the main control module 200, the other end of the first transmitter T1 is connected to the access device 300, and the first receiver R1 and the first transmitter T1 are also connected to the control module 10.
[0033] See also Figure 4 In the first working mode, that is, when the RS-485 serial port access device 300 is connected, the main control module 200 communicates with the control module 10 through the IIC, and controls the connection mode and enable state of the first receiver R1 and the first transmitter T1 through the control module 10. When the RS-485 single-end sends data, the control module 10 controls the first transmitter T1 to be in the working state, and the first receiver R1 is in the high impedance state. The TXD signal of the industrial control equipment is decomposed into positive and negative symmetrical differential signals NDCD (RS485 Data-) and NRXD (RS485 Data+) through the first transmitter T1 and sent to the access device 300 for data transmission. When the RS-485 single-end receives data, the control module 10 controls the first receiver R1 to be in the working state, and the first transmitter T1 is in the high impedance state. The industrial control equipment restores the differential signals NDCD (RS485 Data-) and NRXD (RS485 Data+) sent from the device end to the RXD signal through the first receiver R1 for data reception.
[0034] See also Figure 5 In the second working mode, that is, when the RS-422 serial port access device 300 is connected, the main control module 200 communicates with the control module 10 through IIC, and controls the connection mode and enable state of the first receiver R1 and the first transmitter T1 through the control module 10. When data communication is performed, the control module 10 controls the first transmitter T1 and the first receiver R1 to be in working state. The TXD signal of the industrial control equipment is decomposed into positive and negative symmetrical differential signals NDCD (RS422 T-) and NRXD (RS422 T+) through the first transmitter T1 and sent to the access device 300. The industrial control equipment restores the differential signals NTXD (RS422 R+) and NDTR (RS422 R-) sent by the access device 300 to RXD signals through the first receiver R1, and simultaneously receives and sends data.
[0035] As a further embodiment, the level conversion module 20 includes a second receiver R2 and a second transmitter T2; one end of the second receiver R2 and one end of the second transmitter T2 are both connected to the main control module 200, and the other end of the second receiver R2 and the other end of the second transmitter T2 are both connected to the access device 300.
[0036] Furthermore, the level conversion module 20 includes a third receiver R3 and a third transmitter T3; one end of the third receiver R3 and one end of the third transmitter T3 are both connected to the main control module 200, and the other end of the third receiver R3 and the other end of the third transmitter T3 are both connected to the access device 300.
[0037] Furthermore, the level conversion module 20 includes a fourth receiver R4 and a fifth receiver R5; one end of the fourth receiver R4 and one end of the fifth receiver R5 are both connected to the main control module 200, and the other end of the fourth receiver R4 and the other end of the fifth receiver R5 are both connected to the access device 300.
[0038] Among them, see Figure 6 In the third working mode, that is, when the RS-232 serial port access device 300 is connected, the main control module 200 communicates with the control module 10 through the IIC, and controls the connection mode and enable status of the receiver and the transmitter through the control module 10. When data communication is performed, the TXD / DTR / RTS signal level amplitude of the industrial control equipment is 3.3V, which is boosted to 5V by the first transmitter T1, the second transmitter T2 and the third transmitter T3 and then transmitted to the access device 300 for communication. The NDCD / NRXD / NDSR / NCTS / NRI signals of the access device 300 are stepped down to 3.3V by the first receiver R1, the second receiver R2, and the third receiver R3 and then transmitted to the industrial control equipment for communication.
[0039] The utility model also provides an industrial control device, which includes a main control module 200 and an intelligent switching circuit 100 as described in any one of the above embodiments, wherein the intelligent switching circuit 100 includes a control module 10 and a level conversion module 20, wherein the control module 10 is connected to the main control module 200, and the level conversion module 20 is respectively connected to the control module 10, the main control module 200 and an access device 300.
[0040] Specifically, the control module 10 is used to perform logic control, the input end of the control module 10 is connected to the main control module 200, and the output end of the control module 10 is connected to the level conversion module 20, and is used to exchange data signals and clock signals with the main control module 200. At the same time, the main control module 200 can output a control signal to the control module 10, and the control module 10 switches the working mode of the level conversion module 20 according to the control signal.
[0041] See also Figure 3, the level conversion module 20 may include a first working mode, a second working mode and a third working mode. The first working mode corresponds to an RS-485 serial port access device, the second working mode corresponds to an RS-422 serial port access device, and the third working mode corresponds to an RS-232 serial port access device. When the level conversion module 20 is connected to an access device 300 of a different interface type, the main control module 200 controls the level conversion module 20 to switch to a corresponding working mode through the control module 10. For example, if the access device 300 supports an RS-232 serial port, the main control module 200 can switch the working mode of the level conversion module 20 to the third working mode through the control module 10, so as to facilitate communication between the industrial control device and the access device 300.
[0042] As a further embodiment, the intelligent switching circuit 100 includes a first transmitter T1, a second transmitter T2, a third transmitter T3, a first receiver R1, a second receiver R2, a third receiver R3, a fourth receiver R4 and a fifth receiver R5; one end of the first receiver R1 and one end of the first transmitter T1 are both connected to the main control module 200, the other end of the first receiver R1 and the other end of the first transmitter T1 are both connected to the access device 300, and the first transmitter T1 and the first receiver R1 are also connected to the control module 10; one end of the second receiver R2 and the second transmitter One end of T2 is connected to the main control module 200, and the other end of the second receiver R2 and the other end of the second transmitter T2 are connected to the access device 300; one end of the third receiver R3 and one end of the third transmitter T3 are connected to the main control module 200, and the other end of the third receiver R3 and the other end of the third transmitter T3 are connected to the access device 300; one end of the fourth receiver R4 and one end of the fifth receiver R5 are connected to the main control module 200, and the other end of the fourth receiver R4 and the other end of the fifth receiver R5 are connected to the access device 300.
[0043] See also Figure 4In the first working mode, that is, when the RS-485 serial port access device is connected, the main control module 200 communicates with the control module 10 through the IIC, and controls the connection mode and enable state of the first receiver R1 and the first transmitter T1 through the control module 10. When the RS-485 single-end sends data, the control module 10 controls the first transmitter T1 to be in the working state, and the first receiver R1 is in the high impedance state. The TXD signal of the industrial control equipment is decomposed into positive and negative symmetrical differential signals NDCD (RS485 Data-) and NRXD (RS485 Data+) through the first transmitter T1 and sent to the access device 300 for data transmission. When the RS-485 single-end receives data, the control module 10 controls the first receiver R1 to be in the working state, and the first transmitter T1 is in the high impedance state. The industrial control equipment restores the differential signals NDCD (RS485 Data-) and NRXD (RS485 Data+) sent from the device end to the RXD signal through the first receiver R1 for data reception.
[0044] See also Figure 5 In the second working mode, that is, when the RS-422 serial port access device is connected, the main control module 200 communicates with the control module 10 through IIC, and controls the connection mode and enable state of the first receiver R1 and the first transmitter T1 through the control module 10. When data communication is performed, the control module 10 controls the first transmitter T1 and the first receiver R1 to be in working state. The TXD signal of the industrial control device is decomposed into positive and negative symmetrical differential signals NDCD (RS422T-) and NRXD (RS422T+) through the first transmitter T1 and sent to the access device 300. The industrial control device restores the differential signals NTXD (RS422 R+) and NDTR (RS422 R-) sent by the access device 300 to RXD signals through the first receiver R1, and receives and sends data at the same time.
[0045] See also Figure 6 In the third working mode, that is, when the RS-232 serial port access device is connected, the main control module 200 communicates with the control module 10 through IIC, and controls the connection mode and enable status of the receiver and the transmitter through the control module 10. When data communication is performed, the TXD / DTR / RTS signal level amplitude of the industrial control equipment is 3.3V, which is boosted to 5V by the first transmitter T1, the second transmitter T2 and the third transmitter T3 and then transmitted to the access device 300 for communication. The NDCD / NRXD / NDSR / NCTS / NRI signals of the access device 300 are stepped down to 3.3V by the first receiver R1, the second receiver R2, and the third receiver R3 and then transmitted to the industrial control equipment for communication.
[0046] See also Figure 2As a further embodiment, the first receiver R1 is connected to the receiving data interface RXD of the main control module 200 , and the first transmitter T1 is connected to the sending data interface TXD of the main control module 200 .
[0047] Further, the second receiver R2 is connected to the carrier detection interface DCD of the main control module 200 , and the second transmitter T2 is connected to the data terminal ready interface DTR of the main control module 200 .
[0048] Furthermore, the third receiver R3 is connected to the data ready interface DSR of the main control module 200, and the third transmitter T3 is connected to the request to send interface RTS of the main control module 200; the fourth receiver R4 is connected to the clear to send interface CTS of the main control module 200, and the fifth receiver R5 is connected to the ringing indication interface RI of the main control module 200.
[0049] The industrial control device may include a receiving data interface RXD, a sending data interface TXD, a carrier detection interface DCD, a data terminal ready interface DTR, a data ready interface DSR, a request to send interface RTS, a clear to send interface CTS, and a ring indication interface RI. In the first working mode and the second working mode, only the receiving data interface RXD is connected to the first receiver R1, and the sending data interface TXD is connected to the first transmitter T1. In the third working mode, all interfaces are connected to their respective corresponding receivers or transmitters.
[0050] The utility model discloses an intelligent switching circuit and industrial control equipment. The main control module can switch the working mode of the level conversion module through the control module to meet the requirements of access devices with different interface types.
[0051] The above is only a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the utility model, and these modifications or replacements should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.
Claims
1. An intelligent switching circuit, It is characterized in that Applied to industrial control equipment, including: A control module, wherein an input end of the control module is used to be connected to an output end of a main control module of the industrial control device; A level conversion module, wherein a controlled end of the level conversion module is connected to an output end of the control module, an input end of the level conversion module is connected to the main control module, and an output end of the level conversion module is connected to an access device; Wherein, the control module switches the working mode of the level conversion module under the control of the main control module to meet the interface requirements of the access device.
2. The intelligent switching circuit according to claim 1, It is characterized in that The level conversion module includes a first receiver and a first transmitter; One end of the first receiver and one end of the first transmitter are both connected to the main control module, the other end of the first receiver and the other end of the first transmitter are both connected to the access device, and the first transmitter and the first receiver are also connected to the control module.
3. The intelligent switching circuit as claimed in claim 2, It is characterized in that The level conversion module includes a second receiver and a second transmitter; One end of the second receiver and one end of the second transmitter are both connected to the main control module, and the other end of the second receiver and the other end of the second transmitter are both connected to the access device.
4. The intelligent switching circuit as claimed in claim 3, It is characterized in that The level conversion module includes a third receiver and a third transmitter; One end of the third receiver and one end of the third transmitter are both connected to the main control module, and the other end of the third receiver and the other end of the third transmitter are both connected to the access device.
5. The intelligent switching circuit as claimed in claim 4, It is characterized in that The level conversion module includes a fourth receiver and a fifth receiver; One end of the fourth receiver and one end of the fifth receiver are both connected to the main control module, and the other end of the fourth receiver and the other end of the fifth receiver are both connected to the access device.
6. An industrial control device, It is characterized in that It includes a main control module and an intelligent switching circuit as described in any one of claims 1 to 5, wherein the intelligent switching circuit includes a control module and a level conversion module, the control module is connected to the main control module, and the level conversion module is respectively connected to the control module, the main control module and an access device.
7. The industrial control device according to claim 6, It is characterized in that The intelligent switching circuit comprises a first transmitter, a second transmitter, a third transmitter, a first receiver, a second receiver, a third receiver, a fourth receiver and a fifth receiver; One end of the first receiver and one end of the first transmitter are both connected to the main control module, the other end of the first receiver and the other end of the first transmitter are both connected to the access device, and the first transmitter and the first receiver are also connected to the control module; One end of the second receiver and one end of the second transmitter are both connected to the main control module, and the other end of the second receiver and the other end of the second transmitter are both connected to the access device; One end of the third receiver and one end of the third transmitter are both connected to the main control module, and the other end of the third receiver and the other end of the third transmitter are both connected to the access device; One end of the fourth receiver and one end of the fifth receiver are both connected to the main control module, and the other end of the fourth receiver and the other end of the fifth receiver are both connected to the access device.
8. The industrial control device according to claim 7, It is characterized in that The first receiver is connected to the receiving data interface of the main control module, and the first transmitter is connected to the sending data interface of the main control module.
9. The industrial control device according to claim 8, It is characterized in that The second receiver is connected to the carrier detection interface of the main control module, and the second transmitter is connected to the data terminal ready interface of the main control module.
10. The industrial control device according to claim 9, It is characterized in that The third receiver is connected to the data ready interface of the main control module, and the third transmitter is connected to the request sending interface of the main control module; The fourth receiver is connected to the clear-to-send interface of the main control module, and the fifth receiver is connected to the ringing indication interface of the main control module.
