Intelligent circuit and switch quantity acquisition method

Through the adaptive switching quantity acquisition technology of the intelligent circuit, the problems of multiple configurations in the prior art are solved, inconvenient replacement and low reliability in vibration environments, and adaptive acquisition without manual participation and online disturbance-free replacement configuration are realized.

CN111208767BActive Publication Date: 2025-04-11MINGDU ZHIYUN (ZHEJIANG) TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202010126338.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-28
Publication Date
2025-04-11
Estimated Expiration
2040-02-28

AI Technical Summary

Technical Problem

In the prior art, in the switching quantity acquisition, there are problems such as multiple configurations to determine the signal type, inconvenient replacement, difficulty in online disturbance-free replacement, and low reliability in vibration environments.

Method used

An intelligent circuit is designed, including a switching circuit module, an acquisition circuit module and a detection module. By switching multiple switching connection states of the circuit module and sampling values ​​of the acquisition circuit module, the detection module filters out the connection state of the adaptive switching quantity signal to realize adaptive switching quantity acquisition.

Benefits of technology

It realizes adaptive acquisition of NPN signals, PNP signals and level signals without manual participation, avoids multiple configurations and disassemblies, improves reliability in vibration environments, and supports online disturbance-free replacement configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111208767B_ABST
    Figure CN111208767B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent circuit that can realize adaptive switch quantity acquisition, including: a switching circuit module, which obtains switch quantity signals from an external switch circuit to be detected, including multiple switching switches, the switching circuit module has multiple connection states that can be switched to each other under the control of a detection module, and each connection state has different switch on combinations; an acquisition circuit module, which sends sampling values ​​according to the conduction state of the switching circuit module in different connection states; and a detection module, which selects the connection state that is adapted to the switch quantity signal according to the sampling values ​​obtained by the switching circuit module in different connection states. Adaptive switch quantity acquisition is realized, and for occasions where the type of switch quantity signal is unclear, signal adaptation can be completed through an adaptive mode without the participation of professionals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal acquisition, and in particular to an intelligent circuit and a switch quantity acquisition method. Background Art

[0002] Switching quantity acquisition is an indispensable function in signal acquisition. In the application of switching quantity acquisition, the switching quantity signals mainly include resistance signals, NPN signals, PNP signals, and level signals. Among them, NPN signals, PNP signals, and level signals have different requirements for switching quantity acquisition methods due to differences in signal types. At present, physical jumpers are widely used, and different physical jumpers are configured according to the signal type. However, in actual field applications, it may be unknown which type of switching quantity signal is connected, and multiple configurations are required to determine the type of switching quantity signal. At the same time, the use of physical jumpers also has the following disadvantages: it is inconvenient to replace physical jumpers, especially for modules with shells, which usually need to be disassembled before replacement; and for modules that have been powered on, they need to be replaced by power off, which cannot meet the requirements of online non-disturbance replacement; in addition, for occasions where the type of switching quantity signal is unclear, it is necessary to replace the physical jumper multiple times to complete the adaptation; at the same time, in applications with intense vibration, the reliability of physical jumpers is too low and they are easily affected by vibration and become loose. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention provides an intelligent circuit for adaptive switch quantity acquisition, comprising: a switching circuit module, which acquires a switch quantity signal from an external switch circuit to be detected, and comprises a plurality of switching switches, wherein the switching circuit module has a plurality of connection states that can be switched with each other under the control of an inspection module, and each connection state has a different switching switch on combination; an acquisition circuit module, which sends a sampling value according to the conduction state of the switching circuit module in different connection states; and a detection module, which selects a connection state that is adapted to the switch quantity signal according to the sampling values ​​obtained by the switching circuit module in different connection states.

[0004] Preferably, the switch signal is an NPN signal, a PNP signal or a level signal.

[0005] Preferably, the adaptive switch quantity acquisition circuit also includes a power supply circuit module, the power supply circuit module has a first power output terminal and a second power output terminal connected to the switching circuit module, the acquisition circuit module has a first acquisition signal input terminal and a second acquisition signal input terminal connected to the switching circuit module, and the switching circuit module has a first channel input terminal and a second channel input terminal for connecting to an external switch circuit to be detected.

[0006] Preferably, the signal output end of the acquisition circuit module is connected to the signal input end of the detection module, and the control signal output end of the detection module is connected to the control signal input end of the switching circuit module.

[0007] Preferably, the switching circuit module includes six switching switches, wherein two ends of the first switching switch are respectively connected to the first channel input end and the first power supply output end, two ends of the second switching switch are respectively connected to the first channel input end and the first acquisition signal input end, two ends of the third switching switch are respectively connected to the second channel input end and the second power supply output end, two ends of the fourth switching switch are respectively connected to the second channel input end and the second acquisition signal input end, two ends of the fifth switching switch are respectively connected to the second acquisition signal input end and the first power supply output end, and two ends of the sixth switching switch are respectively connected to the first acquisition signal input end and the second power supply output end.

[0008] Preferably, the switching switch is an optocoupler switch.

[0009] The present invention also discloses a switch quantity acquisition method, which is based on the aforementioned intelligent circuit that can realize adaptive switch quantity acquisition, including: after the circuit is powered on, it is determined whether it is a manual configuration. If it is a manual configuration, the on state of each switch in the switching circuit module is adjusted according to the configuration information to enter the normal working mode; if it is not a manual configuration, the connection state of the switching circuit module is switched in sequence according to the preset mode and the sampling value sent by the acquisition circuit module is obtained. According to the sampling value, it is determined whether the corresponding connection state is adapted to the switch quantity signal. If it is adapted, the normal working mode is entered, otherwise the connection state of the switching circuit module is continued to be changed.

[0010] Preferably, when not configured manually, the control switching circuit module enters a first connection state, wherein the second switching switch, the third switching switch and the fifth switching switch are turned on, and the first switching switch, the fourth switching switch and the sixth switching switch are turned off, and it is determined whether it is an NPN signal based on the acquired sampling value. If so, it enters the normal working mode; if it is not an NPN signal, it enters the next signal type detection.

[0011] Preferably, if it is not an NPN signal, the switching circuit module is controlled to enter a second connection state, wherein the first switching switch, the fourth switching switch and the sixth switching switch are turned on, and the second switching switch, the third switching switch and the fifth switching switch are turned off, and whether it is a PNP signal is determined based on the acquired sampling value. If so, the normal working mode is entered; if it is not a PNP signal, the next signal type detection is entered.

[0012] Preferably, if it is not a PNP signal, the switching circuit module is controlled to enter a third connection state, and the third connection state is to turn on the second switching switch and the fourth switching switch, and turn off the first switching switch, the third switching switch, the fifth switching switch and the sixth switching switch, and determine whether it is a level signal based on the acquired sampling value. If so, the normal working mode is entered. If it is not a level signal, the switching circuit module is controlled to enter the first and second connection states again.

[0013] The intelligent circuit disclosed in the present invention can realize adaptive switch quantity acquisition, specifically, adaptive NPN signal, PNP signal, and level signal, without manual participation. The intelligent circuit controls the electronic switch by using detection modules such as MCU, without disassembling the shell to change the configuration; for the modules that have been powered on, online non-disturbance replacement of configuration can be realized, and for occasions where the switch quantity signal type is unclear, the signal adaptation can be completed through the adaptive mode of the adaptive switch quantity acquisition circuit; the switch quantity adaptation through the intelligent circuit does not require the participation of professionals, and is completed through the adaptive adaptation of the MCU as a detection module, with high efficiency and low cost, and can be applied to various application occasions with high reliability.

[0014] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0016] Figure 1 The structure block diagram of the intelligent circuit disclosed in the embodiment of the present invention.

[0017] Figure 2 A schematic diagram of the connection of a switching switch of a switching circuit module disclosed in an embodiment of the present invention.

[0018] Figure 3 This is a schematic diagram of an intelligent circuit disclosed in an embodiment of the present invention.

[0019] Figure 4 The present invention is a schematic diagram of a collection circuit loop under a first control signal disclosed in an embodiment of the present invention.

[0020] Figure 5 The figure is a schematic diagram of a collection circuit loop under a second control signal disclosed in an embodiment of the present invention.

[0021] Figure 6 The present invention is a schematic diagram of a collection circuit loop under a third control signal disclosed in an embodiment of the present invention.

[0022] Figure 7 The figure is a schematic diagram of the working logic of the intelligent circuit disclosed in the embodiment of the present invention.

[0023] Figure 8 A schematic diagram of the steps of the switch quantity acquisition method disclosed in an embodiment of the present invention.

[0024] Fig. 9 This is a schematic diagram of the specific steps of step S2 disclosed in the embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like 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 an indirect connection 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.

[0027] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0028] Unless otherwise defined, the technical or scientific terms used herein shall have the common meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "a" do not indicate a quantity limitation, but indicate the existence of at least one.

[0029] In the application of switch quantity acquisition, the switch quantity signals mainly include four categories: resistance signal, NPN signal, PNP signal, and level signal. Among them, NPN signal, PNP signal, and level signal have different requirements for switch quantity acquisition methods due to the difference in signal type. Physical jumpers are widely used at present, and different physical jumpers are configured according to the signal type. However, in actual on-site applications, it may be unknown which type of switch quantity signal is connected, and multiple configurations are required to determine the type of switch quantity signal. Therefore, in order to improve implementation efficiency and reduce labor costs, this embodiment discloses an intelligent circuit that can realize adaptive switch quantity acquisition, as shown in the attached Figure 1 As shown, the intelligent circuit includes a switching circuit module 1, an acquisition circuit module 2 and a detection module 3. The switching circuit module 1 obtains a switch quantity signal from an external switch circuit to be detected, and may include multiple switching switches, wherein the switching circuit module has multiple connection states that can be switched with each other under the control of the inspection module, and each connection state has a different switch on combination. The acquisition circuit module 2 can send a sampling value according to the conduction state of the switching circuit module in different connection states. The detection module is used to filter out a connection state that is compatible with the switch quantity signal according to the sampling values ​​obtained by the switching circuit module in different connection states. In this circuit, the detection module can select various conventional single-chip microcomputers or data processing chips and other MCU processing units. After the specific circuit is powered on, the acquisition circuit module 2 sends the sampling value to the detection module, i.e., the MCU, and the MCU adapts to the type of switch quantity signal according to the sent sampling value. When the circuit is powered on, the MCU first enters the adaptive mode, controls the switching circuit module through the control signal, and judges whether the current switching circuit module is adapted to the switch signal by the sampling value sent by the acquisition circuit module. If it is adapted, it enters the normal working mode; if it is not adapted, the next connection state of the switching circuit module is changed by the control signal, and the above judgment is repeated until it is adapted. Among them, for the known switch signal type, the connection state of the adapted switching circuit module can also be manually configured by the MCU. After the module is powered on by manual configuration, the adaptive mode will be skipped and the normal working mode will be directly entered. The adaptive switch signal acquisition circuit disclosed in this embodiment does not require manual participation in the configuration of the switch signal type, effectively improves the efficiency of the switch signal acquisition configuration implementation, and reduces the labor cost. The circuit controls the electronic switch in the switching circuit module through the MCU, and there is no need to disassemble the shell to change the configuration. For the circuit module that has been powered on, the configuration can be changed online without disturbance. For the occasion where the switch signal type is unclear, the signal adaptation can be quickly completed through the adaptive mode. It can be adapted to various application occasions and can be completed through MCU adaptive adaptation without the participation of professionals, with high reliability.

[0030] Specifically, as attached Figure 1As shown, the adaptive switch quantity acquisition circuit also includes a power supply circuit, the power supply circuit has a first power output terminal and a second power output terminal connected to the switching circuit module, and the ports can be set to power + and power -; the acquisition circuit module has a first acquisition signal input terminal and a second acquisition signal input terminal connected to the switching circuit module, and the ports can be set to acquisition + and acquisition -; the switching circuit module has a first channel input terminal and a second channel input terminal for connecting to an external switch circuit to be detected, and the ports can be set to channel + and channel -. Among them, the signal output terminal of the acquisition circuit module is connected to the signal input terminal of the detection module, and the control signal output terminal of the detection module is connected to the control signal input terminal of the switching circuit module.

[0031] As attached Figure 2As shown, the switching circuit module includes six switching switches, the two ends of the first switching switch are respectively connected to the first channel input end and the first power output end, the two ends of the second switching switch are respectively connected to the first channel input end and the first acquisition signal input end, the two ends of the third switching switch are respectively connected to the second channel input end and the second power output end, the two ends of the fourth switching switch are respectively connected to the second channel input end and the second acquisition signal input end, the two ends of the fifth switching switch are respectively connected to the second acquisition signal input end and the first power output end, and the two ends of the sixth switching switch are respectively connected to the first acquisition signal input end and the second power output end. Specifically, the six switching switches are set as the first switching switch A1, the second switching switch A2, the third switching switch B1, the fourth switching switch B2, the fifth switching switch C1, and the sixth switching switch C1. Among them, switch A1 is used to connect the port channel + and the power +, switch A2 is used to connect the port channel + and the acquisition +, switch B1 is used to connect the port channel - and the power -, switch B2 is used to connect the port channel - and the acquisition -, switch C1 is used to connect the port acquisition - and the power +, and switch C2 is used to connect the port acquisition + and the power -. Wherein switch A1, switch A2, switch B1, switch B2, switch C1, and switch C1 are respectively connected to the control signal output terminals of the MCU as the detection module, and the MCU can control the opening and closing of these six switching switches by sending control signals to them respectively. Wherein the control signal of the MCU has four control modes, namely the first control signal, the second control signal, the third control signal, and the fourth control signal. Wherein the first control signal is used for the detection and normal operation of the NPN signal, specifically to control the switch A2, switch B1, and switch C1 to be ON, and to control the switch A1, switch B2, and switch C2 to be OFF. The second control signal is used for the detection and normal operation of the PNP signal, specifically to control the switch A1, switch B2, and switch C2 to be ON, and to control the switch A2, switch B1, and switch C1 to be OFF. The third control signal can be used for the detection and normal operation of the level signal, specifically to control the switch A2 and switch B2 to be ON, and to control the switch A1, switch B1, switch C1, and switch C2 to be OFF. The fourth control signal is the initial state of the circuit power-on, which is used to control all switches to be OFF.

[0032] The power-on working logic of the adaptive switch quantity acquisition circuit disclosed in this embodiment is as shown in the attached figure. Figure 7As shown, after the circuit is powered on, it is first determined whether there is manual configuration. If it is determined to be Y, the control signal is configured according to the manually set switch signal type, and the normal working mode is entered; if it is determined to be N, the adaptive mode is entered. In the adaptive mode, the control signal is first set to the first control signal, and the sampled value sent is used to determine whether it is an NPN signal. If it is determined to be Y, the normal working mode is entered; if it is determined to be N, the control signal is set to the second control signal. The sampled value sent is determined to be a PNP signal. If it is determined to be Y, the normal working mode is entered; if it is determined to be N, the control signal is set to the third control signal. The sampled value sent is determined to be a level signal. If it is determined to be Y, the normal working mode is entered; if it is determined to be N, the control signal is set to the first control signal, and the sampled value sent is repeatedly determined to determine whether it is an NPN signal.

[0033] Attached Figure 3 A specific circuit diagram of an adaptive switch quantity acquisition circuit is disclosed, wherein the sampling circuit module uses a resistor and an optocoupler switch, one end of the resistor is connected to the acquisition port -, the other end is connected to the anode of the optocoupler switch, and the cathode of the optocoupler switch is connected to the acquisition port +. The power supply circuit module can use a 24V DC power supply, and the switching circuit switch can also use the same optocoupler switch. The switch quantity signal input includes an NPN signal, a PNP signal, and a level signal. The following specifically introduces the circuit adaptive workflow.

[0034] After the adaptive switch quantity acquisition circuit is powered on, it enters the adaptive mode. The MCU sets the control signal to the first control signal, controls switches A2, B1, and C1 to be ON, and controls switches A1, B2, and C2 to be OFF. The specific circuit loop is as follows Figure 4 As shown, for a clearer description, the switch A1, switch B2 and switch C2 that are controlled to be closed are not shown in the figure. When the switch signal is an NPN signal, the NPN signal is closed, the sampling circuit optocoupler is turned on, and the sampling value ON is sent to the MCU. The MCU receives the sampling value as ON, and determines that the switch signal input is an NPN signal, and enters the normal working mode; when the switch signal is not an NPN signal, the signal is closed, the sampling circuit optocoupler is not turned on, and the sampling value OFF is sent to the MCU. The MCU receives the sampling value as OFF, and determines that the switch signal input is not an NPN signal, and enters the next signal type detection.

[0035] The MCU sets the control signal to the second control signal, controls switches A1, B2, and C2 to be ON, and controls switches A2, B1, and C1 to be OFF. The specific circuit loop is as follows: Figure 5As shown, for a clearer description, the switch A2, switch B1 and switch C1 that are controlled to be closed are not shown in the figure. When the switch signal is a PNP signal, the PNP signal is closed, the sampling circuit optocoupler is turned on, and the sampling value ON is sent to the MCU. The MCU receives the sampling value as ON, and determines that the switch signal input is a PNP signal, and enters the normal working mode. When the switch signal is not a PNP signal, the signal is closed, the sampling circuit optocoupler is not turned on, and the sampling value OFF is sent to the MCU. The MCU receives the sampling value as OFF, and determines that the switch signal input is not a PNP signal, and enters the next signal type detection.

[0036] The MCU sets the control signal to the third control signal, controls switches A2 and B2 to be ON, and switches A1, B1, C1, and C2 to be OFF. The circuit loop is as follows: Figure 6 As shown, for a clearer description, the switch A1, switch B1, switch C1 and switch C2 that are controlled to be closed are not shown in the figure. When the switch signal is a level signal, the level signal outputs a level, the sampling circuit optocoupler is turned on, and the sampling value ON is sent to the MCU. The MCU receives the sampling value as ON, and determines that the switch signal input is a level signal, and enters the normal working mode; when the switch signal is not a level signal, the signal is output, the sampling circuit optocoupler is not turned on, and the sampling value OFF is sent to the MCU. The MCU receives the sampling value as OFF, and determines that the switch signal input is not a level signal, and enters the next signal type detection.

[0037] After the above three tests, if the sampled values ​​received by the MCU are all OFF, the above three tests are repeated again. Since the signal wiring error or signal disconnection will cause the sampled value received by the MCU to be OFF all the time, the maximum number of repeated tests can be set in the MCU. When the repeated tests exceed the maximum number, the user is prompted to check the wiring of the switch signal input.

[0038] Through the above analysis, it can be concluded that the method realizes adaptive switch quantity acquisition. For occasions where the switch quantity signal type is unclear, no professional participation is required, and the signal adaptation can be completed through the adaptive mode of the switch quantity acquisition circuit. Compared with the prior art, the adaptive switch quantity acquisition circuit disclosed in this embodiment can realize adaptive NPN signals, PNP signals, and level signals without manual participation. The adaptive switch quantity acquisition circuit controls the electronic switch by using detection modules such as MCU, without disassembling the shell to change the configuration; for modules that have been powered on, online non-disturbance replacement of configuration can be achieved, and for occasions where the switch quantity signal type is unclear, the signal adaptation can be completed through the adaptive mode of the adaptive switch quantity acquisition circuit; the adaptive switch quantity acquisition circuit does not require the participation of professionals to perform switch quantity adaptation, and is completed through the adaptive MCU as a detection module, with high efficiency and low cost, and can be applied to various application occasions with high reliability.

[0039] Attached Figure 8 This is a schematic diagram of the steps of an adaptive switch quantity acquisition method disclosed in an embodiment of the present invention, which is used in the adaptive switch quantity acquisition circuit disclosed in the above embodiment, and the steps may include:

[0040] Step S1, after the circuit is powered on, determine whether it is manually configured. If it is manually configured, adjust the opening state of each switch in the switching circuit module according to the configuration information to enter the normal working mode;

[0041] Step S2, if it is not a manual configuration, the connection state of the switching circuit module is switched in sequence according to the preset mode and the sampling value sent by the acquisition circuit module is obtained, and the corresponding connection state is judged according to the sampling value whether it is adapted to the switch signal, if it is adapted, it enters the normal working mode, otherwise continue to change the connection state of the switching circuit module.

[0042] As attached Fig. 9 As shown, step S2 may specifically include:

[0043] Step S21, when not configured manually, controls the switching circuit module to enter a first connection state, wherein the first connection state is to turn on the second switching switch, the third switching switch and the fifth switching switch, and turn off the first switching switch, the fourth switching switch and the sixth switching switch, and determine whether it is an NPN signal based on the acquired sampling value. If so, enter the normal working mode; if it is not an NPN signal, enter the next signal type detection.

[0044] Step S22, if it is not an NPN signal, the control switching circuit module enters a second connection state, wherein the second connection state is to turn on the first switching switch, the fourth switching switch and the sixth switching switch, and turn off the second switching switch, the third switching switch and the fifth switching switch, and determine whether it is a PNP signal based on the acquired sampling value. If so, enter the normal working mode; if it is not a PNP signal, enter the next signal type detection.

[0045] Step S23, if it is not a PNP signal, the control switching circuit module enters the third connection state, and the third connection state is to turn on the second switching switch and the fourth switching switch, and turn off the first switching switch, the third switching switch, the fifth switching switch and the sixth switching switch. It is determined whether it is a level signal based on the obtained sampling value. If so, it enters the normal working mode. If it is not a level signal, the control switching circuit module enters the first and second connection states again.

[0046] After the three tests of steps S21, S22 and S23, if the received sampling values ​​are all OFF, the three tests are repeated again. The adaptive switch quantity acquisition method may also include the steps of:

[0047] Step S3, when the number of connection states of the switching circuit module is changed exceeds a preset value, a signal wiring error alarm is issued. Specifically, since a signal wiring error or a signal disconnection will cause the sample value received by the MCU to be OFF all the time, a maximum number of repeated detections can be set in the MCU. When the maximum number of repeated detections is exceeded, the user is prompted to check the wiring condition of the switch signal input.

[0048] The adaptive switch quantity acquisition method in this embodiment realizes adaptive switch quantity acquisition. For occasions where the switch quantity signal type is unclear, signal adaptation can be completed through the adaptive mode without the participation of professionals. Compared with the prior art, the ease of use and efficiency are greatly improved, and the implementation cost is reduced. The specific operation mode and technical effect of each step of the method on the circuit can also refer to the partial description in the aforementioned adaptive switch quantity acquisition circuit, and will not be repeated in detail here.

[0049] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

[0050] In conclusion, the above is only a preferred embodiment of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the patent of the present invention.

Claims

1. A switch quantity acquisition method based on intelligent circuit, characterized in that: The intelligent circuit is used for adaptive switch quantity acquisition, and includes: A switching circuit module, which obtains a switch quantity signal from an external switch circuit to be detected, includes a plurality of switching switches, and the switching circuit module has a plurality of connection states that can be switched with each other under the control of the inspection module, and each connection state has a different switch opening combination; The acquisition circuit module sends the sampling value according to the conduction state of the switching circuit module in different connection states; the signal output end of the acquisition circuit module is connected to the signal input end of the detection module, and the control signal output end of the detection module is connected to the control signal input end of the switching circuit module; A detection module, which selects a connection state that is compatible with the switch signal according to the sampling values ​​obtained by the switching circuit module in different connection states; the switch signal is an NPN signal, a PNP signal or a level signal; A power circuit module, wherein the power circuit module has a first power output terminal and a second power output terminal connected to the switching circuit module, the acquisition circuit module has a first acquisition signal input terminal and a second acquisition signal input terminal connected to the switching circuit module, and the switching circuit module has a first channel input terminal and a second channel input terminal for connecting to an external switch circuit to be detected; The switching circuit module includes six switching switches, wherein two ends of the first switching switch are respectively connected to the first channel input end and the first power supply output end, two ends of the second switching switch are respectively connected to the first channel input end and the first acquisition signal input end, two ends of the third switching switch are respectively connected to the second channel input end and the second power supply output end, two ends of the fourth switching switch are respectively connected to the second channel input end and the second acquisition signal input end, two ends of the fifth switching switch are respectively connected to the second acquisition signal input end and the first power supply output end, and two ends of the sixth switching switch are respectively connected to the first acquisition signal input end and the second power supply output end; The switch quantity acquisition method comprises: After the circuit is powered on, it is determined whether it is manually configured. If it is manually configured, the switch-on state of each switch in the switching circuit module is adjusted according to the manual configuration information to enter the normal working mode; If it is not a manual configuration, the connection state of the switching circuit module is switched in sequence according to the preset mode and the sampling value sent by the acquisition circuit module is obtained. According to the sampling value, it is determined whether the corresponding connection state is adapted to the switch signal. If it is adapted, the normal working mode is entered, otherwise the connection state of the switching circuit module is continued to be changed.

2. The switch quantity acquisition method according to claim 1, characterized in that: The switching switch is an optical coupler switch.

3. The switch quantity acquisition method according to claim 1, characterized in that: When not configured manually, the control switching circuit module enters the first connection state, in which the second switching switch, the third switching switch and the fifth switching switch are turned on, and the first switching switch, the fourth switching switch and the sixth switching switch are turned off, and it is determined whether it is an NPN signal based on the acquired sampling value. If so, it enters the normal working mode; if it is not an NPN signal, it enters the next signal type detection.

4. The switch quantity acquisition method according to claim 3, characterized in that: If it is not an NPN signal, the control switching circuit module enters the second connection state. The second connection state is to turn on the first switching switch, the fourth switching switch and the sixth switching switch, and turn off the second switching switch, the third switching switch and the fifth switching switch. It is determined whether it is a PNP signal based on the acquired sampling value. If so, it enters the normal working mode. If it is not a PNP signal, it enters the next signal type detection.

5. The switch quantity acquisition method according to claim 4, characterized in that: If it is not a PNP signal, the control switching circuit module enters the third connection state, and the third connection state is to turn on the second switching switch and the fourth switching switch, and turn off the first switching switch, the third switching switch, the fifth switching switch and the sixth switching switch. It is determined whether it is a level signal based on the acquired sampling value. If so, it enters the normal working mode. If it is not a level signal, the control switching circuit module enters the first and second connection states again.

Citation Information

Patent Citations

  • Switch quantity signal detection method and detection circuit

    CN104502683A

  • Switching value acquisition circuit and method

    CN111983298A

  • Voltage sample's circuit can carry out arbitrary battery cell among series battery

    CN204575823U

  • Switching value acquisition circuit and IO data acquisition module

    CN211264142U

  • Switching value acquisition circuit and method

    WO2022041890A1