A miniature di input detection method and apparatus

By designing a miniature DI input detection device, the problems of high power consumption, low reliability and high cost in the existing technology are solved. It realizes the compatible detection of passive and active switching quantities, and achieves the miniaturization effect of low power consumption, high reliability and low cost.

CN116540082BActive Publication Date: 2026-02-24ANJI COMM INVESTMENT DIGITAL INTELLIGENCE TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310502661.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2026-02-24
Estimated Expiration
2043-05-06

AI Technical Summary

Technical Problem

Existing DI input detection methods suffer from high power consumption, low reliability, high cost, and the inability to simultaneously detect both passive and active switching signals.

Method used

A miniature DI input detection device was designed, including an input module, an input detector protection module, a power supply module, and an output control module. The combination of these modules enables the conversion and detection of switch signals, supporting compatible input detection of both passive and active switch signals.

Benefits of technology

It achieves low power consumption, high reliability, low cost and small size micro DI input detection, and can simultaneously be compatible with the detection of passive and active switching quantities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116540082B_ABST
    Figure CN116540082B_ABST
Patent Text Reader

Abstract

The application discloses a kind of micro DI input detection method and device, method includes: input module obtains passive or active switch quantity signal, and transmission is to input detection register protection module;Input detection register protection module carries out signal conversion and detection to switch quantity signal, and according to the difference of input switch quantity signal, different voltage output is obtained to output control module;According to the different voltage value output to output control module, output control module outputs the level of current switch quantity conversion output result acquisition.The application builds a set of low-power consumption, high reliability, low cost, small size micro DI input detection device by simple separation component, and realizes passive switch quantity and active switch quantity compatible input detection by the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of signal detection technology, and in particular to a method and apparatus for detecting miniature DI inputs. Background Technology

[0002] DI stands for Digital Input Module in a PLC module; therefore, DI input detection refers to the detection of input digital signals in the PLC. However, current digital signal detection methods still have some drawbacks, such as high power consumption, low reliability, high cost, large package size, and the inability to simultaneously detect both passive and active digital signals.

[0003] Therefore, how to provide a solution to the above-mentioned technical problems is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0004] This invention provides a miniature DI input detection method and apparatus, aiming to solve the problems of high power consumption, high cost, and inability to simultaneously detect passive and active switching signals in existing methods.

[0005] In a first aspect, embodiments of the present invention provide a miniature DI input detection device, the device comprising an input module, an input detector protection module, a power supply module, and an output control module.

[0006] The first input terminal of the input module is connected to the input switch quantity to obtain active or passive switch quantity signals.

[0007] The input detector protection module is connected to the power supply module and is used to perform signal conversion and detection on the switch signal.

[0008] One end of the power supply module is connected to the input detector protection module, and the other end is connected to the output control module, which is used to supply power to the entire device;

[0009] The output control module is connected to the power supply module and is used to output the level of the current switch quantity conversion result.

[0010] Secondly, embodiments of the present invention provide a miniature DI input detection method, applied in a miniature DI input detection device, the device comprising an input module, an input detector protection module, a power supply module, and an output control module, the method comprising:

[0011] The input module acquires passive or active switching signals and transmits them to the input detector protection module;

[0012] The input detector protection module performs signal conversion and detection on the switch signal, and obtains different voltage outputs to the output control module according to the different input switch signals.

[0013] Based on the different voltage values ​​output to the output control module, the output control module outputs a level indicating the current switching output result.

[0014] This invention provides a miniature DI input detection method and apparatus. The apparatus includes an input module, an input detector protection module, a power supply module, and an output control module. The input module acquires passive or active switching signals and transmits them to the input detector protection module. The input detector protection module performs signal conversion and detection on the switching signals and, based on the different input switching signals, acquires different voltages and outputs them to the output control module. Based on the different voltage values ​​output to the output control module, the output control module outputs the level of the current switching signal conversion result.

[0015] The above method constructs a low-power, high-reliability, low-cost, and small-size micro DI input detection device by simply separating components, and realizes compatible input detection of passive and active switching quantities through the device. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of the structure of the miniature DI input detection device provided in an embodiment of the present invention;

[0018] Figure 2 This is a flowchart illustrating the micro DI input detection method provided in an embodiment of the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0021] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0022] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0023] This invention provides a miniature DI input detection device. Figure 1 This is a schematic diagram of the structure of the miniature DI input detection device provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the device includes an input module 11, an input detector protection module 12, a power supply module 13, and an output control module 14.

[0024] In one embodiment, the device further includes a power module for providing a 3.3V power supply voltage to the device.

[0025] Specifically, the first input terminal of the input module 11 is connected to the input switch quantity DI for acquiring active or passive switch signals; in one embodiment, the input module 11 further includes a second input terminal, which is connected to the reference ground GND.

[0026] The input detector protection module 12 is connected to the power supply module 13 and is used to convert and detect the input switch signals.

[0027] In one embodiment, the input detector protection module 12 includes: a reference ground GND, a TVS diode D13, and a detector diode D15. The positive terminal of the TVS diode D13 is connected to the reference ground GND, and the negative terminal is connected to the input switch quantity DI and the negative terminal of the detector diode D15. The negative terminal of the detector diode D15 is connected to the input switch quantity DI and the negative terminal of the TVS diode D13, and the positive terminal is connected to the power supply module 13. It should be noted that the TVS diode D13 used in this embodiment is model SMAJ26A-13-F, and the detector diode D15 is model RB521S30.

[0028] One end of the power supply module 13 is connected to the input detector protection module 12, and the other end is connected to the output control module 14, which is used to supply power to the device module;

[0029] In one embodiment, the power supply module 13 includes a voltage bias resistor R25 and a current limiting resistor R27. One end of the voltage bias resistor R25 is connected to the power supply module, and the other end is connected to the positive terminal of the detector diode D15 and the current limiting resistor R27. One end of the current limiting resistor R27 is connected to the positive terminal of the detector diode D15 and the voltage bias resistor R25, and the other end is connected to the output control module 14. It should be noted that in this embodiment, the voltage bias resistor R25 has a resistance of 47 kΩ and the current limiting resistor R27 has a resistance of 1 kΩ.

[0030] The output control module 14 is connected to the power supply module 13 and is used to output the level of the current switch quantity conversion output result DI1.

[0031] In one embodiment, the output control module 14 includes: a switching transistor Q4, a sampling resistor R28, and a reference ground GND. The emitter (E) of the switching transistor Q4 is connected to the power supply module, the base (B) is connected to one end of the current-limiting resistor R27, and the collector (C) is connected to the switch quantity conversion output result DI1 and one end of the sampling resistor R28. The resistance value of the sampling resistor R28 is 10 kΩ. One end of the sampling resistor R28 is connected to the switch quantity conversion output result DI1 and the collector (C) of the switching transistor Q4, and the other end is connected to the reference ground GND.

[0032] The above-mentioned device not only enables low-cost, low-power, and rapid detection of input DI switch signals, but also achieves compatible input detection of both passive and active switch signals.

[0033] This embodiment also provides a miniature DI input detection method, applied to the aforementioned miniature DI input detection device. Figure 2 This is a flowchart illustrating the miniature DI input detection method provided in an embodiment of the present invention, as shown below. Figure 2 As shown, the specific steps are as follows:

[0034] S210: The input module acquires passive or active switching signals and transmits them to the input detector protection module.

[0035] The input module receives passive switching signals or 0-24V active switching signals and transmits the received signals to the input detector protection module.

[0036] The S220 input detector protection module performs signal conversion and detection of the switch signal, and obtains different voltage outputs to the output control module according to the different input switch signals.

[0037] The diode in the input detector protection module can isolate, detect, and convert the received switching signals. When different switching signals are received, the detector diode D15 will conduct or cut off under different conditions, thereby the power supply module will generate different voltage outputs to the output control module.

[0038] Specifically, when the input switch signal is a passive switch signal, if the external switch is open or floating, the detector diode is cut off, and the voltage bias resistor R25 of the power supply module provides a 3.3V voltage output to the switching transistor Q4 of the output control module.

[0039] If the external switch is closed or shorted to ground, the detector diode will conduct, and a 0.2V detector voltage will be output to the switching transistor Q4 of the output control module.

[0040] When the input switch signal is an active switch signal, if the switch signal is less than 0.4V, the detector diode is turned on, and the sum of the detector voltage and the switch voltage is output to the switching transistor Q4 of the output control module.

[0041] If the switching signal is greater than 3.3V and less than 24V, the detector diode will be cut off, and the voltage bias resistor R25 of the power supply module will provide a 3.3V voltage output to the switching transistor Q4 of the output control module.

[0042] S230. Based on the different voltage values ​​from the output to the output control module, the output control module outputs the level of the current switch quantity conversion output result.

[0043] Depending on the different voltage values ​​output from S220 to the output control module, the output control module will output different switching conversion output results DI1.

[0044] Specifically, when the voltage output to the switching transistor Q4 is less than 0.6V, Q4 is turned on, and the output of the switching conversion result DI1 of the output control module is 3.3V power supply voltage, which is high. Therefore, when the passive switch is closed or grounded, or when the active switch input signal is less than 0.4V, the sampling detection of the switching conversion result DI1 of the output control module is high.

[0045] When the voltage output to the switching transistor Q4 is greater than 0.7V, Q4 is cut off, and the output of the switching quantity conversion DI1 of the output control module is the reference ground voltage, which is low. Therefore, when the passive switching quantity is disconnected or floating, or when the active switching quantity input signal is greater than 3.3V and less than 24V, the output of the switching quantity conversion DI1 of the output control module is sampled and detected as low.

[0046] In one embodiment, after the output control module outputs the level of the current switch quantity conversion output result DI1, when the output result is detected to be high, the sampling microcontroller inverts the signal to obtain the input switch quantity signal as low; when the output result is detected to be low, the sampling microcontroller inverts the signal to obtain the input switch quantity signal as high.

[0047] The above method constructs a low-power, high-reliability, low-cost, and small-size micro DI input detection device by simply separating components, and realizes compatible input detection of passive and active switching quantities through the device.

[0048] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A miniature DI input detection device, characterized in that, The device includes an input module, an input detector protection module, a power supply module, and an output control module. The first input terminal of the input module is connected to the input switch quantity to obtain active or passive switch quantity signals. The input detector protection module is connected to the power supply module and is used to perform signal conversion and detection on the switch signal. One end of the power supply module is connected to the input detector protection module, and the other end is connected to the output control module, for supplying power to the device module; The output control module is connected to the power supply module and is used to output the level of the current switch quantity conversion output result. The input detector protection module includes: a reference ground, a TVS diode, and a detector diode. The positive terminal of the TVS diode is connected to the reference ground, and the negative terminal is connected to the input switch quantity and the negative terminal of the detector diode. The negative terminal of the detector diode is connected to the input switch quantity and the negative terminal of the TVS diode, and the positive terminal is connected to the power supply module. The power supply module includes a voltage bias resistor and a current limiting resistor. One end of the voltage bias resistor is connected to the power supply module, and the other end is connected to the positive terminal of the detector diode and the current limiting resistor. One end of the current limiting resistor is connected to the positive terminal of the detector diode and the voltage bias resistor, and the other end is connected to the output control module. The output control module includes: a switching transistor, a sampling resistor, and a reference ground. The emitter (E) of the switching transistor is connected to the power supply module, the base (B) is connected to one end of the current-limiting resistor, and the collector (C) is connected to the output result of the switching quantity conversion and one end of the sampling resistor. One end of the sampling resistor is connected to the output result of the switching quantity conversion and the collector (C) of the switching transistor, and the other end is connected to the reference ground. The input module further includes a second input terminal block, which is connected to a reference ground.

2. The apparatus according to claim 1, characterized in that, The device also includes a power module for providing power voltage to the device.

3. A method for detecting miniature DI inputs, applied in the miniature DI input detection device as described in claim 1, characterized in that, The device includes an input module, an input detector protection module, a power supply module, and an output control module; the method includes: The input module acquires passive or active switching signals and transmits them to the input detector protection module; The input detector protection module performs signal conversion and detection on the switch signal, and obtains different voltage outputs to the output control module according to the different input switch signals. Based on the different voltage values ​​output to the output control module, the output control module outputs a level indicating the current switching output result.

4. The method according to claim 3, characterized in that, Depending on the input switch signal, different voltage outputs are obtained and sent to the output control module, including: When the input switch signal is a passive switch signal, if the external switch is open or floating, the detector diode will be cut off, and the power supply module will output a 3.3V voltage to the switching transistor of the output control module. If the external switch is closed or shorted to ground, the detector diode will conduct, and a 0.2V detector voltage will be output to the switching transistor of the output control module. When the input switch signal is an active switch signal, if the switch signal is less than 0.4V, the detector diode is turned on, and the sum of the detector voltage and the switch voltage is output to the switching transistor of the output control module. If the switching signal is greater than 3.3V and less than 24V, the detector diode will be cut off, and the power supply module will output a 3.3V voltage to the switching transistor of the output control module.

5. The method according to claim 4, characterized in that, Based on the different voltage values ​​output to the output control module, the output control module outputs a level indicating the current switching output result, including: When the voltage output to the switching transistor is less than 0.6V, the switching transistor is turned on, and the output of the control module is a 3.3V power supply voltage, which is high. When the voltage output to the switching transistor is greater than 0.7V, the switching transistor is turned off, and the output of the switch control module is the reference ground voltage, which is low.

6. The method according to any one of claims 3-5, characterized in that, After the output control module outputs the level of the current switch quantity conversion output result, the method includes: When the output result is detected to be high, the sampling microcontroller inverts the signal to obtain a low-level input switch signal. When the output is detected to be low, the sampling microcontroller inverts the signal to obtain a high-level input switch signal.

Citation Information

Patent Citations

  • Detection method of vehicle switch quantity signal

    CN103605017A

  • Multi-type input detection circuit and control method

    CN113933693A

  • Active and passive input compatible switching value acquisition circuit and detection method

    CN118884205A