PLC hard matrix key control circuit

Through the PLC hard matrix key control circuit, each control button is connected to two diodes, solving the problems of high cost and low reliability in the prior art, achieving more efficient hardware resource utilization and higher equipment reliability.

CN221978913UInactive Publication Date: 2024-11-08谢春伟
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420525396.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-19
Publication Date
2024-11-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing control circuits have problems with cost and reliability. Point-to-point key control schemes are costly and wasteful of hardware resources. Dynamic scan input schemes are low in reliability in harsh industrial environments, which may lead to malfunctions and safety accidents.

Method used

Using PLC hard matrix key control circuit, each control key is connected to two diodes, and each diode corresponds to a signal input port. The number of switched control keys is calculated by formula C2n to realize signal reception of multiple control keys corresponding to the signal input port. , avoiding the participation of microprocessors.

Benefits of technology

It reduces hardware costs and resource waste, improves the reliability and response speed of equipment, avoids the reliability of microprocessors in harsh environments, and improves the security and performance of the overall system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221978913U_ABST
    Figure CN221978913U_ABST
Patent Text Reader

Abstract

The utility model discloses a PLC (Programmable Logic Controller) hard matrix key control circuit, which comprises a plurality of control keys for controlling the disconnection or connection of the circuit, each control key is connected with two diodes, and each diode corresponds to a signal input port of a PLC respectively; each signal input port is connected with a plurality of control keys through a diode, the number of the connected control keys is calculated according to a formula: C2n, and n is the number of the signal input ports; according to the technical scheme, the problem that one PLC can only correspond to one control key is solved, and the hardware cost is saved; the reaction is carried out on industrial equipment, specifically, the purchase cost of the equipment is reduced, and the labor cost is reduced; the reliability of key input is improved; meanwhile, no microprocessor participates, the reliability is higher than that of a dynamic scanning scheme, the reliability is higher than that of an existing point-to-point scheme, the participation cost of the microprocessor is saved, the cost is reduced, the performance is improved, and two purposes are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of control circuits, in particular to a PLC hard matrix key control circuit. Background Art

[0002] There are generally two types of control circuits used now:

[0003] The first existing solution is a point-to-point button control solution, where one control button corresponds to a signal input port of the PLC. The advantage is reliability, but the disadvantage is high cost and serious waste of hardware resources. Because one button corresponds to one PLC input port, if there are dozens of buttons, dozens of input ports are required, which requires a lot of hardware support.

[0004] The second existing solution is the dynamic scanning input solution, which requires a processor to dynamically scan the keys. The advantages are low cost and relatively less hardware resources, but it involves a microprocessor (mostly a single-chip microcomputer). Due to the low reliability of the microprocessor in harsh industrial environments, the reliability of the equipment is low, and malfunctions and safety accidents may occur. And due to the dynamic scanning, the real-time performance of the key will be reduced, resulting in a poor response of the entire electrical system, that is, the key has been pressed, but after a millisecond-level time, the shortest is a few milliseconds, and the longest can reach hundreds of milliseconds, the system detects that the key has been pressed. Summary of the invention

[0005] The utility model aims to solve the shortcomings in the prior art and proposes a PLC hard matrix key control circuit.

[0006] In order to achieve the above purpose, the utility model adopts the following technical solutions:

[0007] A PLC hard matrix key control circuit includes a plurality of control keys that control the circuit to disconnect or connect, each of the control keys is connected to two diodes, each of the diodes corresponds to a signal input port of the PLC; each of the signal input ports is connected to a plurality of control keys through a diode, and the number of the connected control keys is calculated by the formula: C 2 n Calculate, where n is the number of the signal input ports.

[0008] Preferably, one end of all the control buttons is connected together and connected to a common end.

[0009] Preferably, the diode comprises a P terminal and an N terminal, and whether the control button is connected to the P terminal or the N terminal depends on the voltage of the common terminal to which the other end of the control button is connected.

[0010] Preferably, the common terminal carries a positive voltage, and the P terminal of the diode is connected to the control button.

[0011] Preferably, the common terminal carries a negative voltage, and the N terminal of the diode is connected to the control button.

[0012] Preferably, one control button corresponds to two different signal input ports, and the signal input port is the control button input terminal.

[0013] Preferably, any two non-overlapping combinations of the signal input ports correspond to one of the control buttons.

[0014] Preferably: the maximum number of control buttons connected is C 2 n Wherein n is the number of the signal input ports.

[0015] Compared with the prior art, the beneficial effects of the utility model are:

[0016] The working principle is: the control button is connected to two diodes, one diode corresponds to a signal input port of a PLC; each signal input port is connected to multiple control buttons that control the circuit to be disconnected or connected, and the number of connected control buttons is calculated by the formula: C 2 n Calculation, where n is the number of signal input ports. In this way, through matrix calculation, it can be concluded that one signal input port corresponds to multiple control buttons, that is, the signal input port can receive signals from multiple control buttons.

[0017] Specific:

[0018] 1. One signal input port corresponds to multiple control buttons, that is, the signal input port can receive signals from multiple control buttons, which solves the problem that one control button corresponds to one input port of the PLC. If there are dozens of buttons, dozens of input ports are needed, which requires a lot of hardware support, high cost and waste of resources.

[0019] 2. The problem in the prior art that a microprocessor is needed to scan the dynamic state of the keys, while the reliability of the microprocessor is low in harsh industrial environments, resulting in low reliability of the equipment, possible malfunctions, safety accidents, etc., is solved. This circuit improves the reliability of the equipment and also saves the cost of the microprocessor.

[0020] In summary:

[0021] This technical solution solves the problem that one signal input port of a PLC can only correspond to one control button, saving hardware costs. It is reflected in industrial equipment in the following ways: specifically, the equipment procurement cost is reduced, labor costs are reduced, and the reliability of key input is improved. At the same time, there is no involvement of a microprocessor, so the reliability is higher than that of a dynamic scanning solution, and the reliability is even higher than that of existing point-to-point solutions, and the cost of microprocessor involvement is also saved. The above reduces costs and improves performance, killing two birds with one stone. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is the overall structure diagram of the utility model;

[0023] Figure 2 This is the circuit diagram of the utility model when the PLC is PNP input;

[0024] Figure 3 This is the circuit diagram of the utility model when the PLC is NPN input.

[0025] The markings in the figure are:

[0026] 1-control button, 2-diode, 3-signal input port. DETAILED DESCRIPTION

[0027] In order to make the technical problems solved by the present invention, the technical solutions adopted and the technical effects achieved more clearly, the technical solutions of the present invention are further explained below with reference to the accompanying drawings and through specific implementation methods.

[0028] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0029] In addition, features defined as "first" or "second" may explicitly or implicitly include one or more of the features, and are used to distinguish and describe features, without distinction of order or importance. In the description of the present utility model, unless otherwise specified, "plurality" means two or more.

[0030] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0031] Reference Figure 1-3 , Example:

[0032] A PLC hard matrix key control circuit includes a plurality of control keys 1 that are disconnected or connected by the control circuit, each of the control keys 1 is connected to two diodes 2, each of the diodes 2 corresponds to a signal input port 3 of the PLC; each of the signal input ports 3 is connected to a plurality of control keys 1 through the diode 2, and the number of the connected control keys 1 is determined by the formula: C 2 n Calculate, where n is the number of the signal input ports 3.

[0033] Further preferably, one end of all the control buttons 1 is connected together and connected to a common end.

[0034] Further preferably, the diode 2 comprises a P terminal and an N terminal, and whether the control button 1 is connected to the P terminal or the N terminal depends on the voltage of the common terminal to which the other end of the control button 1 is connected.

[0035] Further preferably, the common terminal carries a positive voltage, and the P terminal of the diode 2 is connected to the control button 1 .

[0036] Further preferably, the common terminal carries a negative voltage, and the N terminal of the diode 2 is connected to the control button 1 .

[0037] Further preferably, one control button 1 corresponds to two different signal input ports 3 , and the signal input port 3 is the input end of the control button 1 .

[0038] Further preferably, any two non-overlapping combinations of the signal input ports 3 correspond to one of the control buttons 1 .

[0039] Further preferably, the maximum number of the control buttons 1 that are turned on is C 2 n where n is the number of the signal input ports 3.

[0040] The working principle of the utility model is as follows: each control button 1 is connected to two diodes 2, each diode 2 corresponds to a signal input port 3; each signal input port 3 is connected to a plurality of control buttons 1 that control the circuit to be disconnected or connected, and the number of connected control buttons 1 is calculated by the formula: C 2 n Calculation is performed, where n is the number of the signal input ports 3 . Thus, through matrix calculation, it can be concluded that one signal input port 3 corresponds to multiple control buttons 1 , that is, each signal input port 3 receives signals from multiple control buttons 1 .

[0041] The existing technical solution is generally that one control button 1 corresponds to one input port of the signal input port 3, which is costly and wastes hardware resources seriously. When there are dozens of buttons, dozens of input ports are needed, which requires a lot of hardware support.

[0042] Another existing solution is the dynamic scanning input solution, which requires a processor to dynamically scan the keys. It also saves hardware resources, but it involves a microprocessor (mostly a single-chip microcomputer). Due to the low reliability of the microprocessor in harsh industrial environments, the reliability of the equipment is low, and malfunctions and safety accidents may occur. In addition, due to the dynamic scanning, the real-time performance of the keys will be reduced, resulting in poor response of the entire electrical system.

[0043] In view of the above two existing technologies, this technical solution designs a hard matrix key control circuit for the signal input port 3, which is as follows:

[0044] One control button 1 corresponds to two signal input ports 3, and these two signal input ports 3 respond at the same time when the control button 1 is pressed. The system recognizes that the control button 1 has been pressed, that is, there is a signal display at the same time; after the control button 1 rebounds, the corresponding two signal input ports 3 respond at the same time, that is, there is no signal at the same time, and it is considered to be released only after it is displayed as zero. If only one of the signal input ports 3 has more than one signal or no signal response when it is pressed or rebounded, it will be recognized as invalid. It must be valid when both are one at the same time, with signals or no signals at the same time. The above is a description of the operation of the control button 1 and the corresponding reaction process.

[0045] When the circuit fails, it is just the opposite of the above. The control button 1 corresponds to two signal input ports 3. As long as one of the signal input ports 3 cannot work properly, a fault will be displayed, and the system will recognize that the operation of the control button 1 is invalid. Only when the two signal input ports 3 act synchronously, that is, they are 1 or 0 at the same time, the system will recognize that the control button 1 is pressed or popped up effectively. Because the design of the control button 1 is to control the two signal input ports 3 at the same time, it cannot be controlled when one of them fails. If there is a problem with one of them, it becomes a single-line control in the prior art. This is why the scheme mentioned above is more reliable than the point-to-point scheme, because in industrial equipment, the safety principle is to rather not let the equipment act than to let the equipment malfunction. In the point-to-point scheme, if one of the signal input ports 3 is short-circuited or damaged, the system may think that the control button 1 is pressed, but in this scheme, if one of them fails, the system will think it is invalid and prompt an alarm.

[0046] There can be multiple signal input ports 3, and then multiple signal input ports 3 are randomly combined without repetition. Each control button 1 is connected to a different signal input port 3 through two diodes 2, and the combination of the signal input ports 3 connected to each button is also different. That is, through the formula: C 2 n Calculate the number of connected control buttons 1, where n is the number of signal input ports 3. For example, if n is 8, then the number of signal input ports 3 is 8. Thus, by using formula C 2 n It can be calculated that there are 28 control buttons 1, so 8 signal input ports 3 can control a maximum of 28 control buttons 1. If the number of control buttons 1 decreases, they can be controlled through 8 signal input ports 3. However, if the number of control buttons 1 increases, the number of signal input ports 3 needs to be increased. The specific number of signal input ports 3 can be increased through C 2 n Formula calculation.

[0047] The control button 1 includes a common terminal, and the diode 2 includes a P terminal and an N terminal. Whether the control button 1 is connected to the P terminal or the N terminal depends on the voltage carried by the common terminal, that is, when the common terminal carries a positive voltage, the control button 1 is connected to the P terminal, and when the common terminal carries a negative voltage, the control button 1 is connected to the N terminal to ensure the return of the current in the entire circuit.

[0048] One control button 1 corresponds to two different signal input ports 3, the signal input port 3 includes an input port, the control button 1 corresponds to the input port, and the input port is the input end of the control button 1, which facilitates the flow of control signals.

[0049] Any two signal input ports 3 are combined to form a control button 1. 2n The formula can be used to calculate the number of control buttons 1, where n is the number of signal input ports 3.

[0050] Connect control button 1 up to C 2 n where n specifically refers to an input port on the signal input port 3 , and the control button 1 is formed by the input port on the signal input port 3 .

[0051] One signal input port 3 corresponds to multiple control buttons 1, that is, the signal input port 3 can receive signals from multiple control buttons 1, which solves the problem that one control button 1 corresponds to one input port of the signal input port 3. If there are dozens of buttons, dozens of input ports are needed, which requires a large amount of hardware support, is costly and is also a waste of resources.

[0052] The problem in the prior art that a microprocessor is needed to scan the dynamic state of the keys, but the reliability of the microprocessor is low in harsh industrial environments, resulting in low reliability of the equipment, possible malfunctions, safety accidents, etc., is solved. The circuit improves the reliability of the equipment and also saves the cost of the microprocessor.

[0053] The technical solution solves the problem that one signal input port 3 can only correspond to one control button 1, thus saving hardware costs. In industrial equipment, this is reflected in the following aspects: the purchase cost of the equipment is reduced, the labor cost is reduced, the reliability of the key input is improved, and at the same time, there is no involvement of a microprocessor, so the reliability is higher than that of a dynamic scanning solution, and the reliability is even higher than that of an existing point-to-point solution, and the cost of the microprocessor involvement is also saved. The above reduces costs and improves performance, killing two birds with one stone.

[0054] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes within the technical scope disclosed by the present invention according to the technical scheme and the utility model concept of the present invention, which should be covered by the protection scope of the present invention.

[0055] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the utility model. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

Claims

1. A PLC hard matrix key control circuit, It is characterized in that It includes a plurality of control buttons for disconnecting or connecting the control circuit, each of the control buttons is connected to two diodes, each of the diodes corresponds to a signal input port of the PLC; each of the signal input ports is connected to a plurality of control buttons through a diode, and the number of the connected control buttons is calculated by the formula: C 2 n Calculate, where n is the number of the signal input ports.

2. According to claim 1, a PLC hard matrix key control circuit, Features: One end of all the control buttons is connected together and connected to a common end.

3. According to the PLC hard matrix key control circuit of claim 1, Features: The diode includes a P terminal and an N terminal, and whether the control button is connected to the P terminal or the N terminal depends on the voltage of the common terminal to which the other end of the control button is connected.

4. According to claim 3, a PLC hard matrix key control circuit, Features: The common terminal has a positive voltage, and the P terminal of the diode is connected to the control button.

5. According to claim 3, a PLC hard matrix key control circuit, Features: The common terminal has a negative voltage, and the N terminal of the diode is connected to the control button.

6. A PLC hard matrix key control circuit according to claim 1, Features: One control button corresponds to two different signal input ports, and the signal input port is the control button input end.

7. A PLC hard matrix key control circuit according to claim 6, Features: Any two non-overlapping combinations of the signal input ports correspond to one of the control buttons.

8. A PLC hard matrix key control circuit according to claim 7, Features: The maximum number of control buttons that are turned on is C 2 n Wherein n is the number of the signal input ports.