Digital quantity input and output control circuit, control system and control method

Through the digital input and output control circuit, the power polarity of the digital input and output module is switched by the control circuit module and the driving circuit module, solving the problem of complex wiring of diversified equipment and improving construction efficiency.

CN119847002APending Publication Date: 2025-04-18深圳市三旺通信股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510041621.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-10
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the prior art, workers face a wide variety of equipment and a diverse type of information transmission between different sensors and control equipment, and their wiring methods are different, resulting in complex wiring circuits, difficult construction and low efficiency.

Method used

A digital input and output control circuit is provided, including a control circuit module, a driving circuit module and a digital input and output module. By controlling the on-off state of the switching device in the driving circuit module, the power polarity of the common end of the digital input and output module is switched, thereby realizing the switching of the leakage type or source type configuration.

Benefits of technology

The wiring circuit is simplified and construction efficiency is improved, so that workers can adapt to the configuration of different equipment only by switching the common end power polarity of the digital input and output module after replacing the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847002A_ABST
    Figure CN119847002A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of digital quantity input and output of a control system, and discloses a digital quantity input and output control circuit, a control system and a control method. The digital quantity input and output control circuit comprises a control circuit module, a driving circuit module and a digital quantity input and output module which are electrically connected in sequence, the digital quantity input and output module comprises an input and output signal end and a common end, and the input and output signal end is used for being connected with controlled equipment. The driving circuit module comprises two switching devices of a bridge arm structure, and the common end is connected with the midpoint of the bridge arm structure. And the control circuit module is used for controlling the on-off state of each switching device in the driving circuit module according to the received control end signal so as to switch the power supply polarity of the common end. The digital quantity input and output module can be switched to be in drain type configuration or source type configuration only by switching the power supply polarity of the common end after equipment is replaced by an operator, so that a wiring circuit is simplified, and the construction efficiency of the operator is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of digital quantity input and output of control systems, and in particular to a digital quantity input and output control circuit, a control system and a control method. Background Art

[0002] With the acceleration of the process of industrial intelligence, the acquisition and control of digital quantities has become an indispensable core component of industrial automation and intelligent manufacturing. Compared with traditional analog signals, digital signals have shown significant advantages in complex and changing industrial environments due to their excellent reliability and excellent anti-interference performance.

[0003] In a highly automated and complex operating environment, operators need to use a variety of equipment models to build production systems. Faced with a wide variety of equipment and diverse information transmission types between different sensors and control devices, the wiring methods are different, which not only makes the wiring circuit extremely complicated, but also significantly increases the difficulty of construction and reduces construction efficiency. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a digital input and output control circuit, a control system and a control method, which can effectively solve the problem in the prior art that operators are faced with a wide variety of equipment, as well as diverse information transmission types between different sensors and control devices, and their wiring methods are different, which not only makes the wiring circuit extremely complicated, but also significantly increases the difficulty of construction and reduces construction efficiency.

[0005] In a first aspect, an embodiment of the present application provides a digital quantity input and output control circuit, comprising: a control circuit module, a drive circuit module and a digital quantity input and output module electrically connected in sequence;

[0006] The digital quantity input and output module comprises an input and output signal terminal and a common terminal, wherein the input and output signal terminal is used to connect to the controlled device;

[0007] The driving circuit module comprises two switch devices in a bridge arm structure, and the common end is connected to the midpoint of the bridge arm structure;

[0008] The control circuit module is used to control the on-off state of each switch device in the driving circuit module according to the received control terminal signal, so as to switch the power polarity of the common terminal of the digital input and output module.

[0009] In some embodiments, the two switch devices are respectively: a first switch unit and a second switch unit;

[0010] The input end of the first switch unit is used to connect to a power supply, the output end of the first switch unit is connected to the common end of the digital input and output module, the output end of the first switch unit is connected to the input end of the second switch unit, the output end of the second switch unit is grounded, and the control end of the first switch unit and the control end of the second switch unit are both electrically connected to the output end of the control circuit module.

[0011] In some embodiments, the first switch unit is a PMOS tube, and the second switch unit is an NMOS tube.

[0012] In some embodiments, the driving circuit module further includes: a pull-up unit, one end of which is connected to the power supply, and the other end of which is electrically connected to the control end of the first switch unit and the control end of the second switch unit.

[0013] In some embodiments, the control circuit module includes: a comparator and an inverting unit, the input end of the inverting unit is used to input the control end signal, the output end of the inverting unit is connected to the same-phase input end of the comparator, the inverting input end of the comparator is used to input a reference signal, the power supply end of the comparator is used to connect to a power supply, and the output end of the comparator is electrically connected to the control end of the driving circuit module.

[0014] In some embodiments, the inverting unit includes: a transistor and a pull-up resistor, one end of the pull-up resistor is connected to the power supply, the other end of the pull-up resistor is connected to the non-inverting input terminal of the comparator, the other end of the pull-up resistor is connected to the collector of the transistor, the base of the transistor is used to input the control end signal, and the emitter of the transistor is grounded.

[0015] In some embodiments, the control circuit module further includes: a clamping unit, the clamping unit including a diode and a voltage dividing resistor;

[0016] One end of the voltage-dividing resistor is connected to the power supply, the other end of the voltage-dividing resistor is connected to the inverting input end of the comparator, the other end of the voltage-dividing resistor is connected to the anode of the diode, and the cathode of the diode is grounded.

[0017] In a second aspect, an embodiment of the present application provides a digital input-output control system, which includes a main controller, a controlled device, and at least one digital input-output control circuit as described in the first aspect above, and the main controller is used to output the control end signal.

[0018] In a third aspect, an embodiment of the present application provides a digital quantity input and output control method, the digital quantity input and output control method is applied to at least one digital quantity input and output control system described in the second aspect above, the control method comprising:

[0019] Sending a corresponding control terminal signal to the control circuit module to control the on-off state of each switch device in the drive circuit module to switch the power polarity of the common terminal of the digital input and output module.

[0020] In some embodiments, when the control terminal signal is at a first state level, the common terminal of the digital input / output module is connected to the negative pole of the power supply, and the digital input / output module is in a digital drain input state or a digital drain output state;

[0021] When the control end signal is at the second state level, the common end of the digital input and output module is connected to the positive pole of the power supply, and the digital input and output module is in a digital source input state or a digital source output state.

[0022] The embodiments of the present application have the following beneficial effects:

[0023] The digital quantity input and output control circuit of the present application includes a control circuit module, a drive circuit module and a digital quantity input and output module which are electrically connected in sequence, the digital quantity input and output module includes an input and output signal terminal and a common terminal, the input and output signal terminal is used to connect the controlled device, the drive circuit module includes two switch devices in a bridge arm structure, and the common terminal is connected to the midpoint of the bridge arm structure. The control circuit module is used to control the on-off state of each switch device in the drive circuit module according to the received control terminal signal to switch the power polarity of the common terminal of the digital quantity input and output module. With the digital quantity input and output control circuit of the present application, after replacing the equipment, the operator only needs to switch the power polarity of the common terminal of the digital quantity input and output module to switch the digital quantity input and output module to a leakage configuration or a source configuration, which simplifies the wiring circuit and greatly improves the construction efficiency of the operator. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A schematic diagram of the structure of a digital quantity input and output control circuit according to an embodiment of the present application is shown;

[0026] Figure 2 A circuit diagram of a digital quantity input and output control circuit according to an embodiment of the present application is shown;

[0027] Figure 3 A schematic diagram of the structure of a digital quantity input and output control system according to an embodiment of the present application is shown;

[0028] Figure 4 A flow chart of a digital quantity input and output control method according to an embodiment of the present application is shown.

[0029] Description of main component symbols:

[0030] 10: control circuit module; 20: drive circuit module; 30: digital input and output module; 40: controlled device; 50: main controller; 201: first switch device; 202: second switch device. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0032] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0033] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0034] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0035] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0036] In the prior art, operators are faced with a wide variety of equipment, as well as diverse information transmission types between different sensors and control devices, and their wiring methods are different, which not only makes the wiring circuit extremely complicated, but also significantly increases the difficulty of construction, reduces the construction efficiency, etc. The embodiment of the present application provides a digital input and output control circuit, a control system, and a control method. By using the digital input and output control circuit of the present application, operators only need to switch the power polarity of the common end of the digital input and output module after replacing the equipment to switch the digital input and output module to a drain configuration or a source configuration, which simplifies the wiring circuit and greatly improves the construction efficiency of operators.

[0037] The digital input and output control circuit is described below in conjunction with some specific embodiments.

[0038] Figure 1 A structural schematic diagram of a digital quantity input and output control circuit of an embodiment of the present application is shown. It can be understood that the digital quantity input and output control circuit of the embodiment of the present application is arranged in a digital quantity input and output control system, and the digital quantity input and output system can be applied in an industrial environment as a production system, and the digital quantity input and output system can also be applied in any other environment using digital signal transmission. In an industrial environment, a digital quantity input and output control system is provided with a plurality of sensors, and the plurality of sensors are connected to the digital quantity input and output control circuit as controlled devices 40, and the transmission mode between the controlled devices 40 and the system is controlled by the digital quantity input and output control circuit, so that the system can obtain the signal of the sensor and control the sensor.

[0039] Exemplarily, the digital quantity input and output control circuit comprises: a control circuit module 10, a drive circuit module 20 and a digital quantity input and output module 30 which are electrically connected in sequence, wherein the control circuit module 10 comprises a control terminal and an output terminal, the digital quantity input and output module 30 comprises an input and output signal terminal and a common terminal, the drive circuit module 20 comprises two switch devices in a bridge arm structure, the midpoint of the bridge arm structure serves as the output terminal of the drive circuit module 20, the control terminal of the control circuit module 10 is used to input a control terminal signal, the output terminal of the control circuit module 10 is connected to the input terminal of the drive circuit module 20, the output terminal of the drive circuit module 20 is connected to the common terminal of the digital quantity input and output module 30, and the input and output signal terminal of the digital quantity input and output module 30 is used to connect to a controlled device 40 such as a sensor. Exemplarily, the control terminal signal is represented by CS.

[0040] It is understandable that the control end signal can be generated by the main controller of the system, and the control end signal can also be generated by other control devices. The working process of the digital input and output control circuit of this embodiment is: the control circuit module 10 controls the on-off state of the two switch devices in the driving circuit module 20 according to the control end signal of the control end, thereby controlling the power polarity of the common end of the digital input and output module 30 to control the input and output configuration of the digital input and output module 30. When the digital input and output module 30 needs to switch the input and output configuration, by changing the control end signal, the control circuit module 10 changes the on-off state of the two switch devices in the driving circuit module 20, thereby changing the power polarity of the common end of the digital input and output module 30, and realizing the switching of the input and output configuration of the digital input and output module 30. The circuit is applicable to various controlled devices 40, which greatly improves the flexibility of the circuit.

[0041] It is understandable that the input and output configuration of the digital input and output module 30 includes a drain type configuration and a source type configuration, wherein the drain type configuration can be divided into a digital drain input state and a digital drain output state, and the source type configuration can be divided into a digital source input state or a digital source output state. It can be determined by controlling the power polarity of the common terminal of the digital input and output module 30, and the connection relationship between the controlled device 40 and the input and output signal terminal of the digital input and output module 30.

[0042] Specifically, for the input module of the digital input / output module 30, the common terminal provides a common reference point for all input signals. If the common terminal is connected to the negative pole of the power supply, the digital input / output module 30 is in the drain input state; if the common terminal is connected to the positive pole of the power supply, the digital input / output module 30 is in the source input state. For the output module, if the common terminal is connected to the negative pole of the power supply, the controlled device 40 connected to the input / output signal terminal is used to direct the current to the negative pole of the power supply, then the input / output signal terminal is internally connected to the drain of the transistor, and the digital input / output module 30 is in the drain output state; if the common terminal is connected to the positive pole of the power supply, and the controlled device 40 connected to the input / output signal terminal is used to direct the current from the positive pole of the power supply to the input / output signal terminal, then the input / output signal terminal is internally connected to the source of the transistor, and the digital input / output module 30 is in the source output state.

[0043] It is understandable that the switching device can be any type of switching device, the switching device can be a switching tube, the switching device can also be a relay, the switching device can also be an optocoupler, etc. By controlling the shutdown of the switching device, the signal output by the drive circuit module 20 to the common end of the digital input and output module 30 is controlled.

[0044] For example, when the first switch device 201 is controlled to be turned off and the second switch device 202 is turned on, the drive circuit module 20 outputs a first signal to the digital input and output module 30; when the first switch device 201 is turned on and the second switch device 202 is turned off, the drive circuit module 20 outputs a second signal to the digital input and output module 30; or, when the first switch device 201 and the second switch device 202 are controlled to be turned on at the same time, the drive circuit module 20 outputs a first signal to the digital input and output module 30; when the first switch device 201 and the second switch device 202 are controlled to be turned off at the same time, the drive circuit module 20 outputs a second signal to the digital input and output module 30. It can be understood that the first signal can be set to the positive pole of the power supply and the second signal can be set to the negative pole of the power supply; the first signal can also be set to the negative pole of the power supply and the second signal can be set to the positive pole of the power supply.

[0045] The digital input-output control circuit of the present embodiment is provided with a control circuit module 10, a drive circuit module 20 and a digital input-output module 30. The control circuit module 10 can change the input-output configuration of the digital input-output module 30 by controlling the on-off state of each switch device in the drive circuit module 20, thereby making the circuit applicable to various controlled devices 40, greatly improving the flexibility of the circuit, while also reducing the complexity of the circuit wiring, and improving the work efficiency of the operators during construction.

[0046] As an optional solution, Figure 2 Shown is a circuit diagram of a digital input and output control circuit.

[0047] In one embodiment, if Figure 2 As shown, based on the above embodiment, the control circuit module 10 includes: a comparator U2 and an inverting unit, the input end of the inverting unit is used to input the control end signal, the output end of the inverting unit is connected to the non-inverting input end of the comparator U2, the inverting input end of the comparator U2 is used to input the reference signal provided by the clamping unit, the power supply end of the comparator U2 is used to connect the power supply, and the output end of the comparator U2 is electrically connected to the control end of the driving circuit module 20. Exemplarily, the power supply is represented by VCC.

[0048] The inverting unit is used to improve the driving capability of the control end signal. Exemplarily, the inverting unit includes: a transistor Q3 and a pull-up resistor R5, one end of the pull-up resistor R5 is connected to the power supply, the other end of the pull-up resistor R5 is connected to the non-inverting input end of the comparator U2, the other end of the pull-up resistor R5 is connected to the collector of the transistor Q3, the base of the transistor Q3 is used to input the control end signal, and the emitter of the transistor Q3 is grounded. While the transistor Q3 performs level conversion on the control end signal, it can also amplify the current of the control end signal to enhance the driving capability. Furthermore, the transistor Q3 can also perform electrical isolation to protect the circuit and prevent the influence between circuits.

[0049] When the control end signal is a low-level signal, the in-phase input end of the comparator U2 is a high-level signal, the high-level signal is higher than the reference signal provided by the clamping unit, and the comparator U2 outputs a high-level signal to the driving circuit module 20 to control the driving circuit module 20; when the control end signal is a high-level signal, the in-phase input end of the comparator U2 is a low-level signal, the low-level signal is lower than the reference signal provided by the clamping unit, and the comparator U2 outputs a low-level signal to the driving circuit module 20 to control the driving circuit module 20.

[0050] Exemplarily, the clamping unit includes a diode D1 and a voltage-dividing resistor R4; one end of the voltage-dividing resistor R4 is connected to a power supply, the other end of the voltage-dividing resistor R4 is connected to the inverting input of the comparator U2, the other end of the voltage-dividing resistor R4 is connected to the positive electrode of the diode D1, and the negative electrode of the diode D1 is grounded. The signal at the inverting input of the comparator U2 is clamped by the diode D1, so that the signal at the inverting input of the comparator U2 is equal to the voltage drop across the diode D1. The diode D1 has a nonlinear characteristic and only starts to conduct after exceeding a certain threshold voltage, which helps to achieve a more accurate voltage limit or clamping function. And the diode D1 can maintain a stable voltage output within a certain current range, which greatly guarantees the stability of the reference signal.

[0051] The digital input and output control circuit of the present embodiment uses transistor Q3 to reverse the control end signal and then outputs it to the non-inverting input end of the comparator U2. The comparator U2 can convert the level to enhance the driving capability of the signal and can also isolate and protect the circuit. The control circuit of the present embodiment also uses diode D1 to clamp the power supply as a reference signal to compare with the signal at the non-inverting input end of the comparator U2, which greatly improves the stability of the reference signal.

[0052] In one embodiment, if Figure 2 As shown, based on the above embodiment, the two switch devices of the driving circuit module 20 are respectively: a first switch unit and a second switch unit; specifically, the first switch device 201 is the first switch unit, and the second switch device 202 is the second switch unit.

[0053] The input end of the first switch unit is used to connect to the power supply, the output end of the first switch unit is connected to the common end COM of the digital input and output module 30, the output end of the first switch unit is connected to the input end of the second switch unit, the output end of the second switch unit is grounded, and the control end of the first switch unit and the control end of the second switch unit are both electrically connected to the output end of the control circuit module 10. Exemplarily, the first switch unit is a PMOS tube, and the second switch unit is an NMOS tube.

[0054] Furthermore, the driving circuit module 20 further includes a protection resistor R1 and a protection resistor R2. The protection resistor R1 is used to protect the PMOS tube, and the protection resistor R2 is used to protect the NMOS tube.

[0055] When the comparator U2 outputs a high-level signal, the NMOS tube is turned on and the PMOS tube is turned off, and the driving circuit module 20 outputs the negative power supply signal to the input / output signal terminal DIO of the digital input / output module 30, and the digital input / output module 30 is a leakage-type configuration; when the comparator U2 outputs a low-level signal, the PMOS tube is turned on and the NMOS tube is turned off, and the driving circuit module 20 outputs the positive power supply signal to the input / output signal terminal DIO of the digital input / output module 30, and the digital input / output module 30 is a source-type configuration.

[0056] It is understandable that the rising edge time and the falling edge time of the pulse signal output by the comparator U2 are both shorter than the on-time and off-time of the MOS tube in the driving circuit module 20, thereby preventing the two MOS tubes from being turned on at the same time and causing damage to the MOS tube.

[0057] Furthermore, in order to prevent the MOS tube from being mis-conducted due to the fluctuation of the signal when the comparator U2 has no output, the driving circuit module 20 also includes: a pull-up unit, which is exemplarily a pull-up resistor R3, one end of which is connected to the power supply, and the other end of which is electrically connected to the control end of the first switch unit and the control end of the second switch unit. When the comparator U2 has no output, the pull-up resistor R3 pulls up the signal at the control end of the MOS tube to the positive electrode of the power supply, the NMOS tube is turned on, and the PMOS tube is turned off, thereby preventing the two MOS tubes from being turned on at the same time, and protecting the MOS tube.

[0058] The digital input and output control circuit of this embodiment uses a MOS tube as a switching device. The comparator U2 switches the power polarity of the common terminal COM of the digital input and output module 30 by controlling the conduction and shutdown of the MOS tube, and sets a pull-up resistor R4 to prevent the MOS tubes from being turned on at the same time, thereby protecting the MOS tubes and greatly ensuring the stability and reliability of the circuit.

[0059] The embodiment of the present application also provides a digital input and output control system, Figure 3 A structural schematic diagram of a digital input-output control system of an embodiment of the present application is shown. Exemplarily, the digital input-output control system includes a main controller 50, a controlled device 40, and the above-mentioned digital input-output control circuit.

[0060] The output end of the main controller 50 is connected to the control end of the control circuit module 10 for outputting the control end signal. It is understandable that the main controller 50 can be any type of controller, the main controller 50 can be an MCU, the main controller 50 can also be a CPU, the main controller 50 can also be an FPGA, etc. It is understandable that the main controller 50 is also electrically connected to the digital input and output module 30 for acquiring the digital signal collected by the digital input and output module 30 and controlling the controlled device 40. It is understandable that the controlled device 40 can be, but is not limited to, various sensors, and the controlled device 40 can also be other devices.

[0061] The main controller 50 generates a control end signal to the control circuit module 10 according to the controlled device 40. The control circuit module 10 controls the on-off state of the two switching devices in the driving circuit module 20 according to the control end signal of the control end, thereby controlling the power polarity of the common end COM of the digital input and output module 30, so that the input and output configuration of the digital input and output module 30 matches the controlled device 40. If the operator replaces the controlled device 40, the main controller 50 regenerates the control end signal to the control circuit module 10 according to the replaced controlled device 40, so that the input and output configuration of the digital input and output module 30 matches the replaced controlled device 40.

[0062] The digital input and output control system of this embodiment can control the input and output configuration of the digital input and output module 30 through the control terminal signal output by the main controller 50, so that the system is applicable to various controlled devices 40, greatly improving the flexibility of the system.

[0063] The present application also provides a digital quantity input and output control method. Figure 4 The figure shows a flow chart of a digital quantity input and output control method according to an embodiment of the present application. The control method is applied to the digital quantity input and output control system mentioned in the above embodiment. The control method is executed by the main controller 50 of the digital quantity input and output control system, and includes:

[0064] Step S101 : sending a corresponding control terminal signal to the control circuit module 10 to control the on-off state of each switch device in the driving circuit module 20 to switch the power polarity of the common terminal COM of the digital input and output module 30 .

[0065] By switching the power polarity of the common terminal COM of the digital input / output module 30, the input / output configuration of the digital input / output module 30 is controlled. Specifically, the input / output configuration of the digital input / output module 30 includes a drain type configuration and a source type configuration, wherein the drain type configuration can be divided into a digital drain input state and a digital drain output state, and the source type configuration can be divided into a digital source input state or a digital source output state.

[0066] The control end signal can be set according to the actual application situation, for example, the first state level is set to a high level signal, and the second state level is set to a low level signal; or, the first state level is set to a low level signal, and the second state level is set to a high level signal. Exemplarily, the first state level is a low level signal, and the second state level is a high level signal.

[0067] When the control end signal is a low-level signal, the common end COM of the digital input-output module 30 is connected to the negative pole of the power supply, and the digital input-output module 30 is in a digital drain input state or a digital drain output state; when the control end signal is a high-level signal, the common end COM of the digital input-output module 30 is connected to the positive pole of the power supply, and the digital input-output module 30 is in a digital source input state or a digital source output state.

[0068] It is understandable that the drain output state and the source output state need to be determined by the connection relationship between the controlled device 40 and the input / output signal terminal DIO of the digital input / output module 30 .

[0069] In this embodiment, the main controller 50 controls the on-off state of each switching device of the driving circuit module 20 by controlling the control circuit module 10, thereby controlling the power polarity of the common terminal COM of the digital input and output module 30, thereby controlling the input and output configuration of the digital input and output module 30, greatly improving the work efficiency of the operator.

[0070] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0071] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0072] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0073] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A digital input and output control circuit, characterized in that: include: A control circuit module, a drive circuit module and a digital input and output module electrically connected in sequence; The digital quantity input and output module includes an input and output signal terminal and a common terminal, and the input and output signal terminal is used to connect to the controlled device; The driving circuit module comprises two switch devices in a bridge arm structure, and the common end is connected to the midpoint of the bridge arm structure; The control circuit module is used to control the on-off state of each switch device in the driving circuit module according to the received control terminal signal, so as to switch the power polarity of the common terminal of the digital input and output module.

2. The digital input and output control circuit according to claim 1, characterized in that: The two switch devices are respectively: a first switch unit and a second switch unit; The input end of the first switch unit is used to connect to a power supply, the output end of the first switch unit is connected to the common end of the digital input and output module, the output end of the first switch unit is connected to the input end of the second switch unit, the output end of the second switch unit is grounded, and the control end of the first switch unit and the control end of the second switch unit are both electrically connected to the output end of the control circuit module.

3. The digital input and output control circuit according to claim 2, characterized in that: The first switch unit is a PMOS tube, and the second switch unit is an NMOS tube.

4. The digital input and output control circuit according to claim 2, characterized in that: The driving circuit module further includes: a pull-up unit, one end of which is connected to the power supply, and the other end of which is electrically connected to the control end of the first switch unit and the control end of the second switch unit.

5. The digital input and output control circuit according to claim 1, characterized in that: The control circuit module includes: a comparator and an inverting unit, the input end of the inverting unit is used to input the control end signal, the output end of the inverting unit is connected to the non-inverting input end of the comparator, the inverting input end of the comparator is used to input a reference signal, the power supply end of the comparator is used to connect to a power supply, and the output end of the comparator is electrically connected to the control end of the driving circuit module.

6. The digital input and output control circuit according to claim 5, characterized in that: The inverting unit includes: a transistor and a pull-up resistor, one end of the pull-up resistor is connected to the power supply, the other end of the pull-up resistor is connected to the non-inverting input end of the comparator, the other end of the pull-up resistor is connected to the collector of the transistor, the base of the transistor is used to input the control end signal, and the emitter of the transistor is grounded.

7. The digital input and output control circuit according to claim 5, characterized in that: The control circuit module further includes: a clamping unit, the clamping unit including a diode and a voltage dividing resistor; One end of the voltage-dividing resistor is connected to the power supply, the other end of the voltage-dividing resistor is connected to the inverting input end of the comparator, the other end of the voltage-dividing resistor is connected to the anode of the diode, and the cathode of the diode is grounded.

8. A digital input and output control system, characterized in that: The digital input-output control system comprises a main controller, the controlled device and the digital input-output control circuit according to any one of claims 1 to 7, wherein the main controller is used to output the control end signal.

9. A digital quantity input and output control method, characterized in that: Applied to the digital input-output control system of claim 8, the control method comprises: Sending a corresponding control terminal signal to the control circuit module to control the on-off state of each switch device in the drive circuit module to switch the power polarity of the common terminal of the digital input and output module.

10. The digital input and output control method according to claim 9, characterized in that: When the control end signal is at the first state level, the common end of the digital input and output module is connected to the negative pole of the power supply, and the digital input and output module is in the digital drain input state or the digital drain output state; When the control end signal is at the second state level, the common end of the digital input and output module is connected to the positive pole of the power supply, and the digital input and output module is in a digital source input state or a digital source output state.