CN113534701A - Time-sharing conduction DI circuit, digital controller and electric automation system - Google Patents

Time-sharing conduction DI circuit, digital controller and electric automation system Download PDF

Info

Publication number
CN113534701A
CN113534701A CN202110754189.3A CN202110754189A CN113534701A CN 113534701 A CN113534701 A CN 113534701A CN 202110754189 A CN202110754189 A CN 202110754189A CN 113534701 A CN113534701 A CN 113534701A
Authority
CN
China
Prior art keywords
module
signal
main control
circuit
acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110754189.3A
Other languages
Chinese (zh)
Other versions
CN113534701B (en
Inventor
刘涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Jingwei Rail Traffic Equipment Co ltd
Original Assignee
Jiangsu Jingwei Rail Traffic Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Jingwei Rail Traffic Equipment Co ltd filed Critical Jiangsu Jingwei Rail Traffic Equipment Co ltd
Priority to CN202110754189.3A priority Critical patent/CN113534701B/en
Publication of CN113534701A publication Critical patent/CN113534701A/en
Application granted granted Critical
Publication of CN113534701B publication Critical patent/CN113534701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a time-sharing conduction DI circuit, a digital controller and an electric automation system. Thereby improving the stability of the digital controller.

Description

Time-sharing conduction DI circuit, digital controller and electric automation system
Technical Field
The invention relates to the technical field of digital control, in particular to a time-sharing conduction DI circuit, a controller and an electric automation system.
Background
Digital control technology is a common and mature control technology in the field of electrical control. In recent years, a digital controller is commonly used in industry, and is used for realizing switch control on devices such as a contactor, and connecting auxiliary contacts of the devices such as the contactor to a DI circuit to acquire the state of the contactor so as to realize closed-loop control and state feedback functions. However, the voltage on devices such as industrial contactors is higher than the voltage in the board, and after the voltage is divided by a voltage dividing circuit, the voltage is applied to an isolation device to acquire the state of the DI circuit. If the enable signal is enabled for a long time, the voltage division circuit works all the time, the power consumption of the digital controller is increased, the temperature of the main control board of the digital controller is continuously increased, and the reliability of the device is not facilitated.
Disclosure of Invention
The invention mainly aims to provide a time-sharing conduction DI circuit, a digital controller and an electric automation system, aiming at improving the working stability of the digital controller.
To achieve the above object, the present invention provides a time division conduction DI circuit, including:
the state signal input end is used for accessing a state feedback signal of external equipment;
the DI acquisition module is provided with an input end, an output end and an enabling end, and the input end of the DI acquisition module is connected with the state signal input end;
the main control module is provided with an acquisition enabling signal output end, and the acquisition enabling signal output end of the main control module is connected with the enabling end of the DI acquisition module; wherein,
the main control module is used for outputting an acquisition enabling signal so as to control the DI acquisition module to periodically acquire the state feedback signal accessed by the state signal input end and output a DI signal.
Optionally, the time-division conducting DI circuit further includes:
the switch module is provided with a DI signal input end, an output end and an enabling end, the main control module is also provided with an input end and a switch enabling signal output end, the enabling end of the switch module is connected with the switch enabling signal output end of the main control module, the input end of the switch module is connected with the output end of the DI acquisition module, and the output end of the switch module is connected with the DI signal input end of the main control module;
the main control module is used for outputting a switch enabling signal to control the switch module to switch on/off a channel between the output end of the DI acquisition module and the DI signal input end of the main control module.
Optionally, the time-sharing conducting DI circuit further includes a self-checking module, the self-checking module has a controlled end and an output end, the main control module further has a self-checking enabling signal output end, the output end of the self-checking module is connected with the input end of the DI acquisition module, and the controlled end of the self-checking module is connected with the self-checking enabling signal output end of the main control module;
the main control module is used for outputting a self-checking enabling signal to control the self-checking module to output a self-checking signal;
and the DI acquisition module is used for outputting a self-detection DI signal according to the self-detection signal.
Optionally, the number of the DI acquisition modules may be multiple, the number of the switch modules corresponds to the number of the DI acquisition modules, and each switch module is correspondingly connected to one DI acquisition module.
Optionally, the time-sharing conducting DI circuit further includes a gating module, an input end of the gating module is connected to a switch enable signal output end of the main control module, and an output end of the gating module is connected to enable ends of the plurality of switch modules in a one-to-one correspondence manner;
the gating module is used for controlling the corresponding switch module to switch on/off the corresponding access between the DI acquisition module output end and the DI signal input end of the main control module according to the switch enabling signal.
Optionally, the time-division conducting DI circuit further includes:
the main control module is also provided with an indicating signal output end, and the input end of the indicating module is connected with the indicating signal output end of the main control module;
the main control module is used for outputting the equipment state indicating signal according to the DI signal;
and the indicating module is used for indicating the working state of the external equipment according to the equipment state indicating signal.
The main control module is further used for outputting a DI state indicating signal according to the self-checking DI signal;
the indication module is further used for indicating the working state of the DI acquisition module according to the DI state indication signal.
Optionally, the time-division conducting DI circuit further includes:
the input end of the unidirectional conduction module is connected with the state signal input end, and the output end of the unidirectional conduction module is connected with the input end of the DI acquisition module;
and the unidirectional conduction module is used for enabling the state feedback signal to be unidirectionally conducted and input to the input end of the DI acquisition module.
The invention also provides a digital controller, which comprises the time-sharing conduction DI circuit, the voltage division circuit and the main control board, wherein the time-sharing conduction DI circuit and the voltage division circuit are arranged on the main control board, the input end of the voltage division circuit is connected with the external equipment, and the output end of the voltage division circuit is the state signal input end.
Optionally, the digital controller further has a plurality of DI acquisition expansion boards, the plurality of DI acquisition modules are disposed on the plurality of DI acquisition expansion boards, and the time-sharing conduction DI circuit further includes an identification module;
the identification module is used for identifying the plurality of DI acquisition expansion boards and outputting corresponding identification signals.
The invention also provides an electric automation system which comprises the digital controller.
The DI acquisition module is used for periodically acquiring the state feedback signals accessed by the state signal input end and outputting the DI signals. Therefore, the state feedback signal of the external equipment is acquired by periodically controlling the DI acquisition module and the DI signal is output, so that the working time of the DI acquisition module is reduced, the working power consumption of the digital controller is reduced, the heat emission is reduced, and the working stability of the digital controller is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to the structures shown in the drawings without creative efforts for those skilled in the art.
FIG. 1 is a block diagram of a DI circuit according to the present invention;
FIG. 2 is a schematic diagram of another block of the DI circuit of the present invention;
FIG. 3 is a circuit diagram of an embodiment of a time-sharing conducting DI circuit of the present invention;
fig. 4 is a circuit diagram of another embodiment of the time-sharing conducting DI circuit of the present invention;
fig. 5 is a circuit diagram of another embodiment of a time-sharing conducting DI circuit of the present invention;
fig. 6 is a circuit diagram of another embodiment of the time-sharing conducting DI circuit of the present invention.
The reference numbers illustrate:
reference numerals Name (R) Reference numerals Name (R)
00 DI acquisition module 10 Main control module
20 Switch module 30 Indicating module
40 Self-checking module 50 Gating module
60 Identification module
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative position relationship between the components, the motion situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of designing "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, an element defined as "a first" or "a second" can include at least one of the element either explicitly or implicitly. In addition, the technical solutions in the embodiments may be combined with each other, but must be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is no longer within the protection scope of the present invention.
Referring to fig. 1, in order to improve the stability of the digital controller, in an embodiment of the present invention, the present invention provides a time-sharing conducting DI circuit, which includes a status signal input terminal, a DI acquisition module 00 and a main control module 10, where the DI acquisition module 00 has an input terminal, an output terminal and an enable terminal, the input terminal of the DI acquisition module 00 is connected to the status signal input terminal, the main control module 10 has an acquisition enable signal output terminal, and the acquisition enable signal output terminal of the main control module 10 is connected to the enable terminal of the DI acquisition module 00.
The status signal input end is configured to access a status feedback signal of an external device, and the main control module 10 is configured to output an acquisition enable signal to control the DI acquisition module 00 to periodically acquire the status feedback signal accessed by the status signal input end and output a DI signal.
In the working process of the digital controller, the DI acquisition module 00 is often connected to a contact of an external device, such as an automation component, such as a contactor, to acquire a feedback state signal, because the voltage of the industrial external device, such as the contactor, is higher than the voltage that can be borne by a circuit and an element on a controller board card, a voltage division circuit is often arranged on the controller board card to divide the voltage and then the voltage is connected to the DI acquisition module 00. When the DI collection module 00 works, the contact of the external device, the voltage divider circuit and the DI collection module 00 form a complete electrical loop, the voltage divider circuit generates power consumption, the DI collection module 00 starts to collect the state feedback signal of the external device, when the DI collection module 00 stops working, the contact of the external device, the voltage divider circuit and the DI collection module 00 cannot form a complete electrical loop, the voltage divider circuit stops working and stops generating power consumption, and the DI collection module 00 also stops collecting the state feedback signal of the external device. DI collection module 00 can adopt the opto-coupler to convert light signal into the signal of telecommunication or adopt the magnetic coupling to convert magnetic signal into the signal of telecommunication, can also adopt transformer or mutual-inductor, constitutes DI collection module 00 through adopting above-mentioned device, can realize on the controller weak current and external equipment for example device end forceful electric power such as contactor keep apart, prevents to cause interference and improvement security. It can be understood that the DI signal output by the DI acquisition module 00 can be uploaded to the upper computer by setting a communication module, and can also be directly fed back to the main control module 10 to form closed-loop control. The main control module 10 outputs a control acquisition enable signal to control the operation of the DI acquisition module 00, the acquisition enable signal may be an analog signal, for example, when the level is high, the DI acquisition module 00 starts to acquire a state feedback signal of the external device and outputs a DI signal, and when the level is low, the DI acquisition module 00 stops operating. It can also be a digital signal, for example, a digital signal "1" indicates that the DI acquisition module 00 starts to operate, and a digital signal "0" indicates that the acquisition module stops operating. Because the requirement for the real-time performance of the acquisition of the state feedback signal of the external device is not high, the main control module 10 may output the acquisition enable signal according to a certain period, that is, the acquisition enable signal output in a certain period of time in one period controls the operation of the DI acquisition module 00, and the acquisition enable signal output in a certain period of time controls the operation of the DI acquisition module 00, for example, "there are a high level of 500MS and a low level of 500MS in 1S" controls the DI acquisition module 00 to perform the acquisition operation once every 500MS, and the period may be set by the user. The main control module 10 may adopt a main control circuit using the MCU as a control core, and may also be a DSP (Digital Signal processor), an FPGA (Field Programmable Gate Array), and in actual use, an appropriate chip may be selected according to actual requirements, which is not limited herein. In summary, the main control module 10 may control the DI acquisition module 00 to start to operate according to a certain periodicity by outputting the acquisition enable signal, for example, the first 500MS in a single period of 1S controls the DI acquisition module 00 to operate, according to the above contents, the contact of the external device, the voltage divider circuit and the DI acquisition module 00 form a complete electrical loop, the voltage divider circuit starts to operate to generate power consumption, the DI acquisition module 00 starts to acquire the state feedback signal of the external device, in the last 500MS in a single period of 1S, the main control module 10 controls the DI acquisition module 00 to stop operating, the contact of the external device, the voltage divider circuit and the DI acquisition module 00 cannot form a complete electrical loop, the voltage divider circuit stops operating and stops generating power consumption, and the DI acquisition module 00 stops acquiring the state feedback signal of the external device. Through periodically outputting the acquisition enabling signal, the DI acquisition module 00 can work according to a certain period, so that the working time of the voltage division circuit is reduced, the power consumption of a main control board of the digital controller is reduced, and the stability of the work of the digital controller is improved.
According to the invention, a state signal input end, a DI acquisition module 00, a main control module 10 and the like are arranged to form a time-sharing conduction DI circuit, the state signal input end is used for accessing a state feedback signal of external equipment, and the main control module 10 is used for outputting an acquisition enabling signal so as to control the DI acquisition module 00 to periodically acquire the state feedback signal accessed by the state signal input end and output a DI signal. Therefore, the DI acquisition module 00 is controlled to periodically acquire the state feedback signals of the external equipment and output the DI signals, so that the working time of the DI acquisition module 00 is reduced, the working power consumption of the digital controller is reduced, the heat emission is reduced, and the working stability of the digital controller can be improved.
Referring to fig. 2 and 3, in an embodiment of the present invention, the time-sharing conducting DI circuit further includes a switch module 20, the switch module 20 has a DI signal input terminal, an output terminal, and an enable terminal, the main control module 10 further has an input terminal and a switch enable signal output terminal, the enable terminal of the switch module 20 is connected to the switch enable signal output terminal of the main control module 10, the input terminal of the switch module 20 is connected to the output terminal of the DI collection module 00, and the output terminal of the switch module 20 is connected to the DI signal input terminal of the main control module 10.
The main control module 10 is configured to output a switch enable signal to control the switch module 20 to turn on/off a path between an output terminal of the DI acquisition module 00 and a DI signal input terminal of the main control module 10.
In this embodiment, V1 is the voltage of the DI acquisition module 00 connected after the voltage divider circuit, V2 is the operating voltage of the digital controller, the switch module 20 can be selected as the inverter U2, when the enable terminal of the inverter U2 is connected to the high level, the output is stopped, and when the enable terminal is connected to the low level, the output is started. The external device has 5 contacts, so there are 5 status signal input terminals, and the input signal is an analog signal, for example, "high level represents that the external device contact is open, and low level represents that the contact is closed" may be set in reverse, and it is also possible to use a digital signal without limitation here. The external device has 5 contacts, and when the 5 contacts are all open, the status feedback signal connected to the status signal input terminal is at high level, i.e. a high level signal is output through R1, R2, R3, R4 and R5, the voltage value of the high level signal is consistent with the voltage value of V1, Q1, Q2, Q3, Q4, Q5 and Q8 are all optical couplers, the main control module 10 includes a main control chip U1, U1 is an MCU, when the DI acquisition module 00 starts to operate, i.e. U1 outputs high level through DI-EN, and outputs low level signal through SW-EN, Q6, Q7 and Q9 are all NMOS transistors, the high level signal output through DI-EN pulls the gate pin of Q17 high through R17, the source pin of Q17 is grounded according to the conduction characteristic of the NPN MOS transistor, V (gs) is connected to the source pin of Q17, the drain pin is connected to the drain pin of the drain pin, and the second optical coupler Q17 is connected to the ground through the R17, the second optical coupler 17R 17 is connected to the ground, the third and fourth legs of Q8 are turned on and grounded, the gate leg of Q7 is pulled down to ground and the source of Q7 is grounded, Q7 is turned off, the gate leg of Q6 is pulled up to V1 by R11 and R13, the source leg of Q6 is grounded, and the source and drain of Q6 are turned on and grounded. Meanwhile, the first pins of Q1 to Q5 are pulled up to V1 by R1 to R5, Q1 to Q5 satisfy the conduction condition, the third pins and the fourth pins of Q1 to Q5 are conducted and are grounded, Q1 to Q5 output a low level signal to the inverter U2 through the third pin, since U1 outputs a high level through DI-EN, a low level signal is output through SW-EN, and when the enable terminal of U2 is at a low level, an inverted signal can be output, and then U2 inverts the low level signal output by the third pins of Q1 to Q5 into a high level signal to be output to the main control chip U1. When 5 contacts of the external device are all opened, the state feedback signal accessed by the state signal input end is in a low level, namely, a low level signal is output through R1, R2, R3, R4 and R5. Similarly, the U1 outputs a high level through the DI-EN and outputs a low level signal through the SW-EN, and since the Q1 to the Q5 do not satisfy the conducting condition, the third pins of the Q1 to the Q5 are pulled up to the V2 by the resistors R6 to R10, and the level is inverted to a low level signal through the inverter U2 and output to the U1. When the DI acquisition module 00 stops working, that is, U1 outputs a low level signal through DI-EN and outputs a high level signal through SW0EN, U2 stops outputting. The path between the third leg and the fourth leg of Q8 is turned off, the gate leg of Q7 is pulled up to V1, the source and drain of Q7 are turned on to ground, the gate leg of Q6 is pulled down to ground, Q6 is turned off, and the second legs of Q1 to Q5 are floating. At this time, no matter the state feedback signal of the external device connected to the state signal input terminal is at a high level or a low level, a complete loop cannot be formed between the first pin and the second pin of Q1-Q5, and the voltage divider circuit stops working, i.e., stops generating power consumption. Further, the 5 contacts of the external device may also be in different open or closed states, and reference may still be made to the principle of the above operating circuit, which is not limited herein.
Through adopting above-mentioned circuit setting, can realize DI acquisition module 00 and carry out work according to certain cycle, thereby reduced bleeder circuit operating time, and then when having reduced the consumption of digital controller main control board, still through adopting inverter U2 as switch module 20, can realize that the signal that the state signal input end inserts is equal with the signal level logic of output to U1, at the in-process of concrete instruction, can improve visualizedly, wrong judgement when preventing the user from using, be favorable to improving the convenience of using.
Optionally, except for the NMOS transistor used for Q6, Q7, and Q9, a triode, an IGBT, and the like may be used.
Referring to fig. 2 and 3, in an embodiment of the present invention, the time-sharing conducting DI circuit further includes a self-checking module 40, where the self-checking module 40 has a controlled terminal and an output terminal, the main control module 10 further has a self-checking enable signal output terminal, the output terminal of the self-checking module 40 is connected to the input terminal of the DI collection module 00, and the controlled terminal of the self-checking module 40 is connected to the self-checking enable signal output terminal of the main control module 10.
The main control module 10 is configured to output a self-test enable signal to control the self-test module 40 to output a self-test signal, and the DI acquisition module 00 is configured to output a self-test DI signal according to the self-test signal.
In this embodiment, Q11 is an optocoupler, Q10 is an NMOS transistor, and optionally, besides the NMOS transistor, the optocoupler may also be a triode or an IGBT, which is not limited. When the external device does not start to work, that is, the state signal input end is not connected with the low level signal or the high level signal V1, a switch or a display screen may be set to be electrically connected with the main control module 10, and key triggering or touch screen operation is performed to control the digital controller to start self-checking, or the U1 may further have a power pin, when the digital controller is connected with a working voltage, that is, the U1 detects the working voltage V2 for the first time through the power pin, the U1 outputs the high level signal once through the DI-TEST and the DI-EN, and outputs the low level signal through the SW-EN. Since the gate pin of Q10 is pulled up to high by R18, the source and drain of Q10 are grounded, the fourth pin of Q11 is pulled down to ground by R20 and the third pin is pulled up to V2 by R19 according to the turn-on characteristics of the NMOS transistor. According to the on-characteristic of Q11, the path between the first pin and the second pin of Q11 is turned on, and R1, R2, R3, R4, and R5 are all pulled up to high level by R21, and according to the above, since U1 outputs a high level signal through DI-EN, D1 to D5 of U1 receive the high level signal. At this moment, U1 outputs low level signals through DI-TEST and DI-EN and outputs low level signals through SW-EN, and according to the principle, the path between the third pin and the fourth pin of Q1-Q5 is closed, and D1-D5 of U1 accesses low level signals through inverter U2. If the U1 outputs high through DI-TEST and DI-EN, the feedback signal accessed through D1 to D5 is also high and when the U1 outputs low through DI-TEST and DI-EN, the feedback signal accessed through D1 to D5 is also low. U1 may assume that the DI detection module is operating properly and has not failed, and may also indicate to the user that the DI detection module is currently operating properly via indicator module 30. If the U1 outputs a high level through DI-TEST and DI-EN, the feedback signal accessed through D1 to D5 is not a high level signal and/or when the U1 outputs a low level through DI-TEST and DI-EN, the feedback signal accessed through D1 to D5 is not a low level signal. U1 considers the DI detection module to be malfunctioning and alerts the user of the DI detection module malfunction via indicator module 30.
Through the module, self-checking detection can be carried out when the digital controller is powered on, deviation in the process of follow-up feedback acquisition caused by the fact that the DI acquisition circuit breaks down is prevented, and the digital controller is favorable for improving the working safety and stability of the digital controller. Meanwhile, the working accuracy of the DI acquisition module 00 is improved.
Referring to fig. 4, in an embodiment of the present invention, the number of the DI acquisition modules 00 may be multiple, and the number of the switch modules 20 is the same as the number of the DI acquisition modules 00 and is connected to the DI acquisition modules 00 in a one-to-one correspondence. The time-sharing conduction DI circuit further comprises a gating module 50, wherein the input end of the gating module 50 is connected with the switch enabling signal output end of the main control module 10, and the output end of the gating module 50 is connected with the enabling ends of the plurality of switch modules 20 in a one-to-one correspondence manner;
the gating module 50 is configured to control the corresponding switch module 20 to turn on/off a path between the corresponding DI acquisition module 00 output terminal and the DI signal input terminal of the main control module 10 according to the switch enable signal.
In this embodiment, there may be a plurality of external devices, that is, there are a plurality of DI acquisition modules 00 corresponding to one of them, for example, 4 external devices. The gating module 50 is an 3/8 decoder, and the 3/8 decoder can output 8 digital signal values by inputting a combination of three address values. According to the truth table of the 3/8 decoder, for example, the input three address values are "000", and the output 8 digital signal values are "01111111", where "0" is a low signal and "1" is a high signal. The 5 output pins of the four inverters U1 to U4 are all connected in parallel with D1 to D5 of U1, when U1 periodically outputs a collection enable signal, i.e. a high level signal, through a plurality of collection enable signal pins, U1 may output "000", "001", "010" and "011" through CH1, CH2 and CH3 according to a certain interval time which may be set by a user, and then 3/8 decoder X1 correspondingly outputs "01111111", "10111111", "11011111" and "11101111", i.e. sequentially outputs a low level through SW-EN1, SW-EN2, SW-EN3 and SW-EN4 according to a certain interval time. Since the enable terminals of the inverters U2, U3, U4, and U5 are all active low, the outputs of U2, U3, U4, and U5 can be controlled to be active at regular intervals. At regular intervals, the logic U1 may access the DI signals of different external devices through D1 to D5 and indicate the operating states of the different external devices. Through the arrangement, when the digital controller is connected into a plurality of external devices, the number of the IO ports of the U1 is saved, the circuit structure is simplified, the integration is improved, and the cost is reduced.
In another embodiment, it is further understood that the multiple capture enable signals controlling the enable terminals of the DI capture module 00 corresponding to different external devices do not necessarily need to be output through multiple IO ports of U1, since the X1 outputs low level sequentially through SW-EN1, SW-EN2, SW-EN3 and SW-EN4 at regular intervals, can be directly connected with the enabling terminals DI-EN1, DI-EN2, DI-EN3 and DI-EN4 of the plurality of DI acquisition modules 00 after being respectively connected with four inverters through SW-EN1, SW-EN2, SW-EN3 and SW-EN4, namely, when the X1 sequentially outputs low level signals through SW-EN1, SW-EN2, SW-EN3 and SW-EN4 according to a certain interval time, high level signals are simultaneously output to the enabling end of the corresponding DI acquisition module 00. The period in which the DI detection module operates may coincide with a time period in which U1 outputs "000", "001", "010", and "011" through CH1, CH2, and CH 3. Therefore, the using quantity of IO ports is further reduced, cost is reduced, and integration is improved.
Referring to fig. 2 and 3, in an embodiment of the present invention, the time-sharing conducting DI circuit further includes an indication module 30, the main control module 10 further has an indication signal output terminal, and an input terminal of the indication module 30 is connected to the indication signal output terminal of the main control module 10.
The main control module 10 is configured to output a device status indication signal according to the DI signal, and the indication module 30 is configured to indicate a working status of the external device according to the device status indication signal. The main control module 10 is further configured to output a DI status indication signal according to the self-test DI signal. And the indicating module 30 is further configured to indicate the working state of the DI acquisition module 00 according to the DI state indicating signal.
In the working process of the digital controller, the indicating module 30 may be used to indicate the working state of the external device, for example, an LED lamp is used to display, so that the green indicating lamp is turned on when the contact of the external device is closed, and the green indicating lamp is turned on when the contact of the external device is opened. And a display can be adopted to directly display the working state of the external equipment. Meanwhile, the working process of the power-on self-test module 40 can be obtained, and after the main control module 10 finishes the power-on self-test, the working state of the DI acquisition module 00 can also be displayed through the control indication module 30. Through the indication module 30, the working state of the external device can be visually observed, which is beneficial to improving the convenience of the user.
Optionally, the indication module 30 includes any one or more of an LED lamp, a buzzer, a loudspeaker, and a display screen.
Referring to fig. 5, in an embodiment of the present invention, the time-sharing conducting DI circuit further includes a unidirectional conducting module, an input end of the unidirectional conducting module is connected to the state signal input end, and an output end of the unidirectional conducting module is connected to an input end of the DI collecting module 00.
And the unidirectional conduction module is used for enabling the state feedback signal to be unidirectionally conducted and input to the input end of the DI acquisition module 00.
In this embodiment, the unidirectional conductive module includes a first unidirectional conductive element L1, a second unidirectional conductive element L2, a third unidirectional conductive element L3, a fourth unidirectional conductive element L4, and a fifth unidirectional conductive element L5, and L1, L2, L3, L4, and L5 are diodes. When the external equipment is connected to the power supply end, if the condition of reverse connection occurs, the diode can cut off the reverse voltage, and the digital controller is prevented from being damaged by the reverse voltage. Through setting up the one-way module that switches on, can be favorable to improving digital controller's security to improve digital controller's security of working.
Alternatively, in addition to the diode, a schottky diode or other diodes may be used, and in practical applications, the present invention is not limited thereto.
The invention also provides a digital controller, which comprises a time-sharing conduction DI circuit, a voltage division circuit and a main control board, wherein the time-sharing conduction DI circuit and the voltage division circuit are arranged on the main control board, the input end of the voltage division circuit is connected with external equipment, and the output end of the voltage division circuit is a state signal input end. The specific circuit of the time-division conducting DI circuit refers to the above-described embodiments.
The voltage dividing circuit can be arranged on the main control board, and when the external equipment is connected, the working voltage connected to the external equipment is divided and then is input into the digital controller. It can be understood that if the working voltage of the external device is lower than the working voltage of the digital controller, and the external device is powered by the digital controller, the working voltage of the digital controller can be divided by the voltage dividing circuit and then output to the external device, and the DI acquisition module 00 can be controlled by the main control module 10 to work according to a certain period, so that the working time of the voltage dividing circuit is reduced, the power consumption of the main control board of the digital controller is reduced, and the stability of the work of the digital controller is improved.
It should be noted that, since the digital controller of the present invention includes all embodiments of the time-division conducting DI circuit, the digital controller of the present invention has all the advantages of the time-division conducting DI circuit, and the detailed description thereof is omitted here.
Referring to fig. 6, in an embodiment of the present invention, the digital controller further has a plurality of DI acquisition expansion boards, each of the DI acquisition expansion boards is provided with a handshake module, and the time-sharing conducting DI circuit further includes an identification module 60;
the handshake module is used for outputting corresponding handshake signals when the DI acquisition expansion board is electrically connected with the main control board. The identification module 60 is configured to identify a plurality of DI acquisition expansion boards according to the handshake signal, and output a corresponding identification signal.
In this embodiment, U6, U7, U8, and U9 are inverters, X2 is a 3/8 decoder, and there are 4 DI acquisition expansion boards, and the handshake signals may be set by setting a main control circuit with MCU or other main control chip as a core on the DI acquisition expansion board, or by using a combination of hardware circuits, that is, after the access main control board is powered on, a preset handshake signal is output, and the preset handshake signal may be set according to the needs of a user, for example, when the DI acquisition expansion card a is inserted into the main control board, the corresponding handshake module outputs handshake signals "10000" through 5 ports, where "1" may represent high level, "0" may represent low level signal, and the main control chip U1 may implement the consistency of the gated working principle and process by using the 3/8 decoder, for example, starting from the DI acquisition expansion card a, the first 500MS in 2S, u1 outputs low level signals to an enable terminal DIS-EN1 of an inverter U6 through a 3/8 decoder, the inverter U6 is effective in low level, a handshake signal 10000 is inverted and then output 01111, U1 receives a combination of four low level signals and one high level signal through S1 to S5 and compares the combination with a preset identification code, the preset identification code can be set in a one-to-one correspondence mode according to the preset handshake signal, and the expansion card A can be judged to be a DI acquisition expansion card. Similarly, the second 500MS in 2S, U1 outputs a low level signal to the enable terminal DIS-EN2 of the inverter U7 through the decoder 3/8, the inverter U7 is active at low level, and outputs the handshake signal of the corresponding DI acquisition expansion card B to the main control chip U1 after inverting, and so on until a complete recognition period is completed. Through the arrangement, the identification of different DI acquisition expansion cards can be realized, the using number of IO ports is effectively reduced through the 3/8 decoder, and the convenience in use of the digital controller is improved.
It can be understood that, after the main control chip U1 completes recognizing different DI acquisition expansion cards, the indication module 30 may be controlled to indicate specific names or details of the expansion cards, for example, if the identification signal obtained when the recognized expansion card is "DI acquisition expansion card a" is displayed on the display screen and is inconsistent with the preset identification code, an "unknown expansion card" may be displayed to prompt the user.
Further, in addition to the DI acquisition expansion card, an additional DO control expansion card or other expansion cards may be added during the use of the digital controller, and the setting may be performed in the same manner by using the above identification method, and the specific implementation process is consistent with the above and will not be described again.
The invention also provides an electric automation system which comprises a digital controller, and the specific circuit and structure of the digital controller refer to the embodiment.
It should be noted that, because the electrical automation system of the present invention includes all the embodiments of the digital controller, the electrical automation system of the present invention has all the advantages of the digital controller, and thus, the detailed description thereof is omitted.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A time-division conducting DI circuit, the time-division conducting DI circuit comprising:
the state signal input end is used for accessing a state feedback signal of external equipment;
the DI acquisition module is provided with an input end, an output end and an enabling end, and the input end of the DI acquisition module is connected with the state signal input end;
the main control module is provided with an acquisition enabling signal output end, and the acquisition enabling signal output end of the main control module is connected with the enabling end of the DI acquisition module; wherein,
the main control module is used for outputting acquisition enabling signals so as to control the DI acquisition module to periodically acquire the state feedback signals accessed by the state signal input end and convert the state feedback signals into DI signals to be output.
2. The time-share conduction DI circuit of claim 1, wherein the time-share conduction DI circuit further comprises:
the switch module is provided with a DI signal input end, an output end and an enabling end, the main control module is also provided with an input end and a switch enabling signal output end, the enabling end of the switch module is connected with the switch enabling signal output end of the main control module, the input end of the switch module is connected with the output end of the DI acquisition module, and the output end of the switch module is connected with the DI signal input end of the main control module;
the main control module is used for outputting a switch enabling signal to control the switch module to switch on/off a channel between the output end of the DI acquisition module and the DI signal input end of the main control module.
3. The time-sharing conduction DI circuit of claim 2, further comprising a self-test module, wherein the self-test module has a controlled terminal and an output terminal, the main control module further has a self-test enable signal output terminal, the output terminal of the self-test module is connected with the input terminal of the DI acquisition module, and the controlled terminal of the self-test module is connected with the self-test enable signal output terminal of the main control module;
the main control module is used for outputting a self-checking enabling signal to control the self-checking module to output a self-checking signal;
and the DI acquisition module is used for outputting a self-detection DI signal according to the self-detection signal.
4. The time-sharing conducting DI circuit of claim 2, wherein the number of the DI collection modules is plural, the number of the switch modules corresponds to the number of the DI collection modules, and each switch module is correspondingly connected to one of the DI collection modules.
5. The time-sharing conduction DI circuit of claim 4, further comprising a gating module, wherein an input terminal of the gating module is connected with a switch enable signal output terminal of the main control module, and output terminals of the gating module are connected with enable terminals of the plurality of switch modules in a one-to-one correspondence;
the gating module is used for controlling the corresponding switch module to switch on/off the corresponding access between the DI acquisition module output end and the DI signal input end of the main control module according to the switch enabling signal.
6. The time-share conduction DI circuit of claim 3, wherein the time-share conduction DI circuit further comprises:
the main control module is also provided with an indicating signal output end, and the input end of the indicating module is connected with the indicating signal output end of the main control module;
the main control module is used for outputting the equipment state indicating signal according to the DI signal;
the indicating module is used for indicating the working state of the external equipment according to the equipment state indicating signal;
the main control module is further used for outputting a DI state indicating signal according to the self-checking DI signal;
the indication module is further used for indicating the working state of the DI acquisition module according to the DI state indication signal.
7. The time-share conduction DI circuit of claim 1, wherein the time-share conduction DI circuit further comprises:
the input end of the unidirectional conduction module is connected with the state signal input end, and the output end of the unidirectional conduction module is connected with the input end of the DI acquisition module;
and the unidirectional conduction module is used for enabling the state feedback signal to be unidirectionally conducted and input to the input end of the DI acquisition module.
8. A digital controller, comprising the time-sharing conducting DI circuit, the voltage divider circuit and the main control board as claimed in any one of claims 1 to 7, wherein the time-sharing conducting DI circuit and the voltage divider circuit are both disposed on the main control board, an input terminal of the voltage divider circuit is connected to the external device, and an output terminal of the voltage divider circuit is the status signal input terminal.
9. The digital controller of claim 8, wherein the digital controller further comprises a plurality of DI acquisition expansion boards, each of the DI acquisition expansion boards is provided with a handshake module, and the time-division conducting DI circuit further comprises an identification module;
the handshake module is used for outputting a corresponding handshake signal when the DI acquisition expansion board is electrically connected with the main control board;
the identification module is used for identifying the plurality of DI acquisition expansion boards according to the handshake signals and outputting corresponding identification signals.
10. An electrical automation system, characterized in that it comprises a digital controller according to any of claims 8-9.
CN202110754189.3A 2021-07-01 2021-07-01 Time-sharing conduction DI circuit, digital controller and electric automation system Active CN113534701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110754189.3A CN113534701B (en) 2021-07-01 2021-07-01 Time-sharing conduction DI circuit, digital controller and electric automation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110754189.3A CN113534701B (en) 2021-07-01 2021-07-01 Time-sharing conduction DI circuit, digital controller and electric automation system

Publications (2)

Publication Number Publication Date
CN113534701A true CN113534701A (en) 2021-10-22
CN113534701B CN113534701B (en) 2024-04-26

Family

ID=78097721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110754189.3A Active CN113534701B (en) 2021-07-01 2021-07-01 Time-sharing conduction DI circuit, digital controller and electric automation system

Country Status (1)

Country Link
CN (1) CN113534701B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201897710U (en) * 2010-12-03 2011-07-13 中国北车股份有限公司大连电力牵引研发中心 Digital quantity acquisition device
CN106873469A (en) * 2017-03-31 2017-06-20 苏州时代华理电气有限公司 A kind of digital quantity acquisition device with self diagnostic capability
CN108107965A (en) * 2018-02-27 2018-06-01 华中科技大学 A kind of digital linear voltage-stablizer based on double loop analog-to-digital conversion module
CN109116787A (en) * 2018-09-29 2019-01-01 柳州钢铁股份有限公司 Frequency changer circuit frequency-changing speed-regulating control system input quantity acquisition device
CN209707960U (en) * 2019-06-24 2019-11-29 上海华兴数字科技有限公司 A kind of programmable controller and engineering machinery vehicle
CN211878142U (en) * 2020-02-11 2020-11-06 北京华电科工电力工程有限公司 Monitoring sensor for intelligently monitoring power equipment power supply voltage and current

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201897710U (en) * 2010-12-03 2011-07-13 中国北车股份有限公司大连电力牵引研发中心 Digital quantity acquisition device
CN106873469A (en) * 2017-03-31 2017-06-20 苏州时代华理电气有限公司 A kind of digital quantity acquisition device with self diagnostic capability
CN108107965A (en) * 2018-02-27 2018-06-01 华中科技大学 A kind of digital linear voltage-stablizer based on double loop analog-to-digital conversion module
CN109116787A (en) * 2018-09-29 2019-01-01 柳州钢铁股份有限公司 Frequency changer circuit frequency-changing speed-regulating control system input quantity acquisition device
CN209707960U (en) * 2019-06-24 2019-11-29 上海华兴数字科技有限公司 A kind of programmable controller and engineering machinery vehicle
CN211878142U (en) * 2020-02-11 2020-11-06 北京华电科工电力工程有限公司 Monitoring sensor for intelligently monitoring power equipment power supply voltage and current

Also Published As

Publication number Publication date
CN113534701B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN106681302B (en) The solid-state relay automatic holding device of distribution and its test control method on bullet
CN107305526B (en) Debugger for microcontroller
CN110928179B (en) Control system and method for safety band-type brake of frequency converter
CN113534701A (en) Time-sharing conduction DI circuit, digital controller and electric automation system
CN207516929U (en) Switching on and shutting down control circuit and mobile terminal
CN117269851A (en) Terminal grafting detection device
CN111122994B (en) Man-machine interaction testing device for simulation circuit breaker
CN208589015U (en) A kind of server fault diagnosis plate
CN115118275A (en) Switching value input signal acquisition circuit with self-checking and low power consumption and method
TW200923392A (en) Alternating current detecting apparatus
CN112650093B (en) Digital reset circuit applied to MCU chip
CN218384464U (en) Test equipment of multichannel serial ports display
CN210833585U (en) Measuring device test fixture
CN220983749U (en) Multi-key detection composite startup and shutdown circuit and electronic equipment
CN215449469U (en) Device for detecting electrical characteristics of navigation aid light isolation transformer
CN216719059U (en) Reset control circuit and electronic equipment
CN117595928B (en) Annotate wrong test fixture
CN214846291U (en) Energy efficiency controller circuit
CN214655819U (en) Low standby power consumption device and low standby power consumption washing machine
CN219875491U (en) Power supply system
CN214895731U (en) Detection device
CN219843443U (en) Power supply control circuit, main body of cleaning device and cleaning device
CN220894890U (en) Control circuit, circuit board assembly and electronic equipment
CN215599317U (en) Synchronous integrated checking device for generator set
CN211086546U (en) Grounding detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant