CN113534701B - 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
CN113534701B
CN113534701B CN202110754189.3A CN202110754189A CN113534701B CN 113534701 B CN113534701 B CN 113534701B CN 202110754189 A CN202110754189 A CN 202110754189A CN 113534701 B CN113534701 B CN 113534701B
Authority
CN
China
Prior art keywords
module
signal
input end
acquisition
main control
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.)
Active
Application number
CN202110754189.3A
Other languages
Chinese (zh)
Other versions
CN113534701A (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

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 working 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 well-established control technology in the field of electrical control. In recent years, digital controllers are commonly used in industry, and are applied to devices such as contactors to realize switch control, and auxiliary contacts of the devices such as contactors are connected to a DI circuit to collect contactor states, so that closed-loop control and state feedback functions are realized. However, the voltage on the devices such as the industrial contactor is higher than the voltage in the board, and the voltage needs to be divided by the voltage dividing circuit and then acts on the isolation device to acquire the DI circuit state. If the enabling signal is enabled to be effective for a long time, the voltage dividing circuit works all the time, so that 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, which aim to improve the working stability of the digital controller.
To achieve the above object, the present invention provides a time-division on DI circuit, which includes:
the state signal input end is used for accessing a state feedback signal of the 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 a state feedback signal accessed by the state signal input end and output a DI signal.
Optionally, the time-sharing 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 passage 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-checking DI signal according to the self-checking signal.
Optionally, the number of the DI collection modules may be multiple, the number of the switch modules corresponds to the number of the DI collection modules, and each switch module is correspondingly connected with one DI collection module.
Optionally, the time-sharing conducting DI circuit further includes a gating module, an input end of the gating module is connected with a switch enabling signal output end of the main control module, and output ends of the gating module are connected with enabling ends of the plurality of switch modules in a one-to-one correspondence manner;
The gating module is used for controlling the corresponding switching module to turn on/off the corresponding passage between the output end of the DI acquisition module and the DI signal input end of the main control module according to the switch enabling signal.
Optionally, the time-sharing conducting DI circuit further includes:
the main control module is also provided with an indication signal output end, and the input end of the indication module is connected with the indication signal output end of the main control module;
the main control module is used for outputting the equipment state indication 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 also used for outputting a DI state indication signal according to the self-checking DI signal;
the indicating module is further configured to indicate a working state of the DI acquisition module according to the DI state indicating signal.
Optionally, the time-sharing 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;
the unidirectional conduction module is used for enabling the state feedback signal to be unidirectional-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 dividing circuit and the main control board, wherein the time-sharing conduction DI circuit and the voltage dividing circuit are both arranged on the main control board, the input end of the voltage dividing circuit is connected with the external equipment, and the output end of the voltage dividing 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 conducting DI circuit further includes an identification module;
The identification module is used for identifying a plurality of DI acquisition expansion boards and outputting corresponding identification signals.
The invention also proposes an electrical automation system comprising a digital controller as described above.
The invention forms a time-sharing conduction DI circuit by arranging the state signal input end, the DI acquisition module, the main control module and the like, wherein the state signal input end is used for accessing the state feedback signal of the external equipment, and the main control module is used for outputting the 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 the DI signal. Therefore, the DI acquisition module is periodically controlled to acquire the state feedback signal of the external equipment and output the DI signal, so that the working time of the DI acquisition module is shortened, the power consumption of the digital controller is reduced, the heating is reduced, and the working stability of the digital controller is improved.
Drawings
In order to more clearly illustrate the present invention and to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will briefly explain the drawings required for the embodiments or the prior art description, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in the drawings without inventive effort for those skilled in the art.
FIG. 1 is a schematic diagram of a time-sharing DI circuit according to the present invention;
FIG. 2 is a schematic diagram of another embodiment of a time-sharing turn-on DI circuit;
FIG. 3 is a schematic diagram of an embodiment of a time-division conduction DI circuit according to the present invention;
FIG. 4 is a circuit diagram of another embodiment of a time-division conduction DI circuit according to the present invention;
FIG. 5 is a circuit diagram of another embodiment of a time-division conduction DI circuit according to the present invention;
Fig. 6 is a circuit diagram of another embodiment of the time-division conduction DI circuit of the present invention.
Reference numerals illustrate:
Reference numerals Name of the name Reference numerals Name of the name
00 DI acquisition module 10 Main control module
20 Switch module 30 Indication module
40 Self-checking module 50 Gating module
60 Identification module
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and rear are referred to in the embodiments of the present invention), the directional indications are merely used to explain the relative positional relationship, movement conditions, and the like between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments 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 a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "first", "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent, and the protection scope of the present invention is not limited.
Referring to fig. 1, in order to improve the working stability of the digital controller, in an embodiment of the present invention, a time-sharing DI circuit is provided, which includes a status signal input end, a DI acquisition module 00 and a main control module 10, wherein the DI acquisition module 00 has an input end, an output end and an enable end, the input end of the DI acquisition module 00 is connected with the status signal input end, the main control module 10 has an acquisition enable signal output end, and the acquisition enable signal output end of the main control module 10 is connected with the enable end of the DI acquisition module 00.
The state signal input end is used for accessing a state feedback signal of an external device, and the main control module 10 is used for outputting an acquisition enabling signal 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.
In the working process of the digital controller, the DI acquisition module 00 is often connected to contacts of an automation executing device such as a contactor and the like to acquire feedback status signals, and because the voltage of the device such as the contactor and the like of the industrial external device is higher than the voltage which can be born by circuits and elements on the controller board card, a voltage dividing 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, in this embodiment, the input end of the voltage dividing circuit of the digital controller is connected with the contacts of the device such as the contactor and the like of the external device, and the output end of the voltage dividing circuit is the status signal input end and is connected in series with the DI acquisition module 00. When the DI acquisition module 00 works, the contact, the voltage division circuit and the DI acquisition module 00 of the external equipment form a complete electric loop, the voltage division circuit generates power consumption, the DI acquisition module 00 starts to acquire the state feedback signal of the external equipment, when the DI acquisition module 00 stops working, the contact, the voltage division circuit and the DI acquisition module 00 of the external equipment cannot form the complete electric loop, the voltage division circuit stops working and stops generating power consumption, and the DI acquisition module 00 also stops acquiring the state feedback signal of the external equipment. The DI acquisition module 00 can adopt the opto-coupler to convert optical signals into electric signals or adopts the magnetic coupler to convert magnetic signals into electric signals, and can also adopt a transformer or a mutual inductor, and the DI acquisition module 00 is formed by adopting the devices, so that weak current on a controller and strong current isolation of the device ends of external equipment such as a contactor and the like can be realized, interference is prevented, and safety is improved. It can be understood that the DI signal output by the DI acquisition module 00 can be uploaded to the host computer by setting a communication module, or can 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, wherein the acquisition enable signal can be an analog signal, for example, the DI acquisition module 00 starts to acquire a state feedback signal of an external device at a high level and outputs a DI signal, and the DI acquisition module 00 stops operating at a low level. It is also possible that a digital signal, for example, a digital signal "1" indicates that DI acquisition module 00 is in operation and a digital signal "0" indicates that acquisition module is out of operation. Since the real-time requirement for the acquisition of the state feedback signal of the external device is not high, the main control module 10 can output the acquisition enabling signal according to a certain period, that is, the acquisition enabling signal output in a certain period of time in a period is used for controlling the operation of the DI acquisition module 00, the acquisition enabling signal output in a certain period of time is used for controlling the DI acquisition module 00 to stop operating, for example, "the high level of 500MS and the low level of 500MS exist in 1S" controls the DI acquisition module 00 to perform the acquisition operation once every 500MS, and the period can be set by the user. The main control module 10 may adopt a main control circuit using an MCU as a control core, and may also be a DSP (DIGITAL SIGNAL Process, digital signal processing chip), an FPGA (Field Programmable GATE ARRAY, programmable gate array chip), and in practical application, a suitable chip may be selected according to practical 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 DI acquisition module 00 is controlled to operate by the first 500MS in a single period of 1S, so that according to the above description, the contacts, the voltage dividing circuit and the DI acquisition module 00 of the external device form a complete electrical loop, the voltage dividing circuit starts to operate to generate power consumption, the DI acquisition module 00 starts to acquire a status feedback signal of the external device, and in the last 500MS in a single period of 1S, the main control module 10 controls the DI acquisition module 00 to stop operating, so that the contacts, the voltage dividing circuit and the DI acquisition module 00 of the external device cannot form a complete electrical loop, the voltage dividing circuit stops operating and stops generating power consumption, and the DI acquisition module 00 stops acquiring the status feedback signal of the external device. The DI acquisition module 00 can work according to a certain period by periodically outputting the acquisition enabling signal, 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 further reduced, and the working stability of the digital controller is improved.
The invention forms a time-sharing conduction DI circuit by arranging a status signal input end, a DI acquisition module 00, a main control module 10 and the like, wherein the status signal input end is used for accessing a status 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 status feedback signal accessed by the status signal input end and output the DI signal. Therefore, the method and the device realize the control of the DI acquisition module 00 to periodically acquire the state feedback signal of the external equipment and output the DI signal, thereby reducing the working time of the DI acquisition module 00, being beneficial to reducing the working power consumption and heating of the digital controller, and being capable of improving the working stability of the digital controller.
Referring to fig. 2 and 3, in an embodiment of the present invention, the time-sharing DI circuit further includes a switch module 20, where the switch module 20 has a DI signal input end, an output end, and an enable end, the master control module 10 further has an input end and a switch enable signal output end, the enable end of the switch module 20 is connected with the switch enable signal output end of the master control module 10, the input end of the switch module 20 is connected with the output end of the DI acquisition module 00, and the output end of the switch module 20 is connected with the DI signal input end of the master 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 end of the DI acquisition module 00 and a DI signal input end of the main control module 10.
In this embodiment, V1 is the voltage of the voltage divider circuit connected to the DI acquisition module 00, V2 is the working voltage of the digital controller, the switch module 20 may be selected as an inverter U2, and when the inverter U2 enables the high level to be accessed, the output is stopped, and when the low level to be accessed, the output is started. The external device has 5 contacts, so there are 5 status signal inputs, and the input signal is an analog signal, for example, "high level indicates that the external device contacts are open, and low level indicates that the contacts are closed", and the reverse can be performed, and the digital signal can be used without limitation. When the DI acquisition module 00 starts to work, namely, the U1 outputs a high level signal through DI-EN, the Q6, Q7 and Q9 are NMOS transistors, the gate pin of the Q9 is pulled up through R17, the source pin of the Q9 is grounded according to the on characteristic of the NPN MOS transistor, the pins between the source pin and the drain pin of the Q9 are connected to the ground through R16, the pin of the Q8 is grounded according to the second condition of the optical coupling, the pin of the Q8 is pulled up through R15 and the pin of the Q8 is pulled up through the pin of the Q6 and the pin of the Q7 is grounded, the pin of the Q6 is pulled up through the pin of the Q7 and the pin of the Q7 is pulled down through the pin of the Q7, and the pin of the Q7 is grounded, and the pin of the Q13 is pulled up through the pin of the Q7. Meanwhile, the first pins of Q1 to Q5 are pulled up to V1 by R1 to R5, Q1 to Q5 meet the conduction condition, the third pin and the fourth pin of Q1 to Q5 are conducted and are grounded, Q1 to Q5 outputs a low-level signal to the inverter U2 through the third pin, because U1 outputs a high level through DI-EN, a low-level signal is output through SW-EN, and when the enabling end of U2 is low level, an inversion signal can be output, and U2 inverts the low-level signal output by Q1 to Q5 through the third pin into a high-level signal to be output to the main control chip U1. When all of the 5 contacts of the external device are opened, the state feedback signal accessed by the state signal input terminal is at a low level, i.e., a low level signal is output through R1, R2, R3, R4 and R5. Similarly, U1 outputs a high level through DI-EN, outputs a low level signal through SW-EN, and since Q1 to Q5 do not satisfy the on condition, the third pins of Q1 to Q5 are pulled up to V2 by the resistors R6 to R10, and the level is inverted to a low level signal through the inverter U2, and output to U1. When the DI acquisition module 00 stops working, namely U1 outputs a low level signal through DI-EN, and SW0EN outputs a high level signal, U2 stops outputting. The path between the third pin and the fourth pin of Q8 is turned off, the gate pin of Q7 is pulled up to V1, the source and drain of Q7 are grounded, the gate pin of Q6 is pulled down to ground, Q6 is turned off, and the second pins of Q1-Q5 are suspended. 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 to Q5, and the voltage dividing circuit will stop working, i.e. power consumption will stop generating. Further, the 5 contacts of the external device may be in different open or closed states, and reference may still be made to the principle of the above working circuit, which is not limited herein.
Through adopting above-mentioned circuit setting, can realize DI collection module 00 and work according to certain cycle to reduced the time of bleeder circuit work, when having further 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 status signal input was put into and output to U1's signal level logic is equal, at the in-process of specific instruction, can improve the visualization, prevent wrong judgement when the user uses, be favorable to improving the convenience of use.
Optionally, besides the NMOS transistors used in Q6, Q7, and Q9, they may be transistors, IGBT transistors, etc., and in practical application, an appropriate switching transistor may be selected according to practical requirements, which is not limited herein.
Referring to fig. 2 and 3, in an embodiment of the invention, the time-sharing conducting DI circuit further includes a self-checking module 40, the self-checking module 40 has a controlled end and an output end, the main control module 10 further has a self-checking enabling signal output end, the output end of the self-checking module 40 is connected with the input end of the DI acquisition module 00, and the controlled end of the self-checking module 40 is connected with the self-checking enabling signal output end 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, and Q10 is an NMOS transistor, alternatively, may be a triode or an IGBT, not limited thereto. When the external device does not start to work, i.e. 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 can be arranged to be electrically connected with the main control module 10 to perform key triggering or touch screen operation to control the digital controller to start self-checking, or the digital controller also can be provided with a power supply pin, when the digital controller is connected with the working voltage, i.e. the U1 detects the working voltage V2 for the first time through the power supply pin, the U1 outputs the high level once through DI-TEST and DI-EN, and simultaneously outputs the low level signal through 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, depending on the on characteristics of the NMOS transistor. According to the on characteristic of Q11, the path between the first and second pins of Q11 is turned on, R1, R2, R3, R4, 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 time, U1 outputs a low level signal through DI-TEST and DI-EN, and outputs a low level signal through SW-EN, and then the paths between the third and fourth pins of Q1 to Q5 are turned off at this time, and D1 to D5 of U1 access the low level signal through the inverter U2 according to the principle described above. If U1 outputs a high level through DI-TEST and DI-EN, the feedback signals accessed through D1 to D5 are also high level signals and when U1 outputs a low level through DI-TEST and DI-EN, the feedback signals accessed through D1 to D5 are also low level signals. U1 can consider that the DI detection module is in normal working state, and has no fault, and can also instruct the user that the DI detection module is in normal working state at present through the instruction module 30. If U1 outputs a high level through DI-TEST and DI-EN, the feedback signals accessed through D1 to D5 are not high level signals and/or if U1 outputs a low level through DI-TEST and DI-EN, the feedback signals accessed through D1 to D5 are not low level signals. U1 considers that the DI detection module works in fault, and prompts the user of the DI detection module to be in fault through the alarm of the indication module 30.
Through the module, when the digital controller is electrified, self-checking detection can be carried out, deviation of the follow-up feedback acquisition process caused by the fact that a DI acquisition circuit breaks down is prevented, and the safety and stability of the work of the digital controller are improved. 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 DI acquisition modules 00 may be plural, and the number of switch modules 20 is identical to the number of DI acquisition modules 00 and is connected to 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 ends of the gating module 50 are correspondingly connected with the enabling ends of the plurality of switch modules 20 one by one;
The gating module 50 is configured to control the corresponding switching module 20 to turn on/off a path between the output end of the corresponding DI acquisition module 00 and the DI signal input end of the main control module 10 according to the switch enable signal.
In this embodiment, the external device may be plural, that is, the DI acquisition module 00 corresponds to one of the plural, for example, 4. The strobe block 50 is a 3/8 decoder, and the 3/8 decoder can output 8 digital signal values by a combination of the three address values input. According to the truth table of the 3/8 decoder, for example, three input address values are "000", 8 output digital signal values are "01111111", wherein "0" is a low level signal and "1" is a high level signal. The four inverters U1 to U4 have 5 output pins connected in parallel with D1 to D5 of U1, and when U1 periodically outputs an acquisition enable signal, i.e., a high level signal, through a plurality of acquisition enable signal pins, U1 may output "000", "001", "010" and "011" through CH1, CH2, CH3 at certain intervals, which may be set by a user, then the 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 at certain intervals. 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 certain intervals. The Gu U1 can access DI signals of different external devices through D1 to D5 according to a certain interval time and indicate the working states of the different external devices. Through the arrangement, when the digital controller is connected with a plurality of external devices, the number of IO ports of U1 can be saved, the circuit structure is simplified, and therefore integration is improved, and cost is reduced.
In another embodiment, it is further understood that the plurality of sampling enable signals controlling the enable terminals of the DI sampling module 00 corresponding to different external devices do not have to be output through the plurality of IO ports of the U1, and since the X1 sequentially outputs the low level through the SW-EN1, the SW-EN2, the SW-EN3 and the SW-EN4 according to a certain interval time, the plurality of sampling enable signals can be directly connected to the enable terminals DI-EN1, DI-EN2, DI-EN3 and DI-EN4 of the plurality of DI sampling module 00 after being respectively connected to the four inverters through the SW-EN1, the SW-EN2, the SW-EN3 and the SW-EN4, that is, when the X1 sequentially outputs the low level through the SW-EN1, the SW-EN2, the SW-EN3 and the SW-EN4 according to a certain interval time, the high level signal is simultaneously output to the enable terminals of the corresponding DI sampling module 00. The period in which the DI detection module operates may coincide with the time period in which U1 outputs "000", "001", "010" and "011" through CH1, CH2 and CH 3. Therefore, the number of IO ports is further reduced, the cost is reduced, and the integration is improved.
Referring to fig. 2 and 3, in an embodiment of the present invention, the time-sharing DI circuit further includes an indication module 30, the main control module 10 further has an indication signal output end, and an input end of the indication module 30 is connected to the indication signal output end 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 an operating 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-checking DI signal. The indicating module 30 is further configured to indicate an operation state of the DI acquisition module 00 according to the DI state indicating signal.
In the working process of the digital controller, the indication module 30 can be used for indicating the working state of the external device, for example, an LED lamp is used for displaying, when the contact of the external device is closed, a green indication lamp is turned on, and when the contact of the external device is opened, the green indication lamp is turned on. A display may also be used to directly display the operating status of the external device. Meanwhile, the above-mentioned power-on self-checking module 40 is available in the working process, and after the main control module 10 finishes the power-on self-checking, the working state of the DI acquisition module 00 can be displayed by the control indication module 30. The working state of the external equipment can be intuitively observed through the indication module 30, and convenience in use is improved for users.
Optionally, the indication module 30 includes any one or more of an LED light, a buzzer, a loudspeaker, a display screen.
Referring to fig. 5, in an embodiment of the present invention, the time-sharing DI circuit further includes a unidirectional conduction module, an input end of the unidirectional conduction module is connected to the state signal input end, and an output end of the unidirectional conduction module is connected to the input end of the DI acquisition module 00.
The unidirectional conduction module is used for unidirectional conduction and input of the state feedback signal to the input end of the DI acquisition module 00.
In this embodiment, the unidirectional conduction module includes a first unidirectional conduction element L1, a second unidirectional conduction element L2, a third unidirectional conduction element L3, a fourth unidirectional conduction element L4, and a fifth unidirectional conduction element L5, where L1, L2, L3, L4, and L5 are diodes. When the external equipment is connected to the power supply end, if reverse connection occurs, the diode can cut off reverse voltage, so that damage to the digital controller caused by the reverse voltage is prevented. Through setting up one-way conduction module, can be favorable to improving digital controller's security to improve digital controller's security of work.
Alternatively, schottky diodes or other diodes may be used in addition to the diodes, and in practice, the present invention is not limited thereto.
The invention also provides a digital controller which comprises a time-sharing conduction DI circuit, a voltage dividing circuit and a main control board, wherein the time-sharing conduction DI circuit and the voltage dividing circuit are both arranged on the main control board, the input end of the voltage dividing circuit is connected with external equipment, and the output end of the voltage dividing circuit is a state signal input end. The specific circuit of the time-sharing DI circuit refers to the above embodiment.
The voltage dividing circuit can be arranged on the main control board, and when external equipment is connected, the working voltage connected with the external equipment is divided and then 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 further reduced, and the working stability of the digital controller is improved.
It should be noted that, since the digital controller of the present invention includes all the embodiments of the time-division conduction DI circuit, the digital controller of the present invention has all the advantages of the time-division conduction DI circuit, and will not be described herein.
Referring to fig. 6, in an embodiment of the present invention, the digital controller further has a plurality of DI acquisition expansion boards, each DI acquisition expansion board is provided with a handshake module, and the time-sharing 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 signals, and output corresponding identification signals.
In this embodiment, U6, U7, U8, U9 are inverters, X2 is a 3/8 decoder, 4 DI acquisition expansion boards are shared, handshake signals can be set by setting a master control circuit taking an MCU or other master control chip as a core on the DI acquisition expansion boards, or by adopting a hardware circuit combination, that is, after the master control board is accessed to power on, preset handshake signals are output, the preset handshake signals can be set according to the needs of a user, for example, when the DI acquisition expansion card a is inserted into the master control board, the corresponding handshake module outputs handshake signals ' 10000 ' through 5 ports, wherein ' 1 ' can be represented as high level, ' 0 ' can be represented as low level signals, the master control chip U1 can be consistent according to the working principle process of realizing gating by adopting the 3/8 decoder, for example, the first 500ms in 2S, the U1 outputs low level signals to the enabling end DIs-1 of the inverter U6 through the 3/8 decoder, the inverter U6 is valid with low level 10000, the corresponding handshake signals ' 1 ' are output to the preset handshake signals ' 0111 ' and the preset handshake signals ' are correspondingly set as high level, and the preset handshake signals can be identified by one-to-one combination the preset handshake signals, and the two preset expansion signals can be identified as high level and one-to-high signal and-to-high signal corresponding to the preset acquisition expansion card ' 11 ' S ' 11 ' and ' S11 ' can be identified. Similarly, in the second 500ms in 2S, U1 outputs a low level signal to the enabling terminal DIS-EN2 of the inverter U7 through the 3/8 decoder, the inverter U7 is valid at a low level, and the handshake signal of the corresponding DI acquisition expansion card B is inverted and then output to the main control chip U1, and the following steps will not be described in detail until a complete identification period is completed. Through the arrangement, the identification of different DI acquisition expansion cards can be realized, the use quantity of IO ports is effectively reduced through the 3/8 decoder, and the convenience of the digital controller is improved.
It can be understood that after the main control chip U1 completes identifying different DI acquisition expansion cards, the indication module 30 may be controlled to indicate the specific name or detail of the expansion card, for example, the display screen displays that the expansion card with completed identification is the "DI acquisition expansion card a", and if the obtained identification signal is inconsistent with the preset identification code, the "unknown expansion card" may be displayed to prompt the user.
Furthermore, in addition to identifying the DI acquisition expansion card, an additional DO control expansion card or other expansion cards may be added in the use of the digital controller, and the identification manner may be set as well, so that the specific implementation process is consistent with the above, and will not be repeated.
The invention also proposes an electrical automation system comprising a digital controller, the specific circuit and structure of which refers to the above-described embodiments.
It should be noted that, since the electric automation system of the present invention includes all the embodiments of the digital controller, the electric automation system of the present invention has all the advantages of the digital controller, and will not be described herein.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structural changes made by the description of the present invention and the accompanying drawings or direct/indirect application in other related technical fields are included in the scope of the invention.

Claims (10)

1. A time-sharing conduction DI circuit applied to a digital controller, wherein the digital controller comprises a voltage dividing circuit, and the time-sharing conduction DI circuit comprises:
The state signal input end is used for accessing a state feedback signal of external equipment, the input end of the voltage dividing circuit is connected with the external equipment, and the output end of the voltage dividing circuit is the state signal input end;
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 a state feedback signal accessed by the state signal input end, and converting the state feedback signal into a DI signal and then outputting the DI signal;
the control of the DI acquisition module to periodically acquire the status feedback signal accessed by the status signal input end specifically includes:
The DI acquisition module is controlled to be in a working state in a first time period in one period so as to acquire a state feedback signal accessed by the state signal input end, and the DI acquisition module is controlled to be in a stop working state in a second time period in one period.
2. The time-division on DI circuit of claim 1, further comprising:
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 passage between the output end of the DI acquisition module and the DI signal input end of the main control module.
3. The time-sharing conducting DI circuit of claim 2, further comprising a self-checking module, wherein the self-checking module has a controlled end and an output end, the master 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 master 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-checking DI signal according to the self-checking signal.
4. The time-sharing DI circuit of claim 2, wherein the number of DI collection modules is a plurality, the number of switch modules corresponds to the number of DI collection modules, and each switch module is correspondingly connected to one DI collection module.
5. The time-sharing conduction DI circuit according to claim 4, further comprising a gating module, wherein an input end of the gating module is connected with a switch enable signal output end of the master control module, and an output end of the gating module is connected with enable ends of a plurality of the switch modules in a one-to-one correspondence;
The gating module is used for controlling the corresponding switching module to turn on/off the corresponding passage between the output end of the DI acquisition module and the DI signal input end of the main control module according to the switch enabling signal.
6. The time-division on DI circuit of claim 3, further comprising:
the main control module is also provided with an indication signal output end, and the input end of the indication module is connected with the indication signal output end of the main control module;
the main control module is used for outputting the equipment state indication 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 also used for outputting a DI state indication signal according to the self-checking DI signal;
the indicating module is further configured to indicate a working state of the DI acquisition module according to the DI state indicating signal.
7. The time-division on DI circuit of claim 1, further comprising:
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;
the unidirectional conduction module is used for enabling the state feedback signal to be unidirectional-conducted and input to the input end of the DI acquisition module.
8. The digital controller is characterized by comprising the time-sharing conduction DI circuit, the voltage dividing circuit and the main control board according to any one of claims 1-7, wherein the time-sharing conduction DI circuit and the voltage dividing circuit are arranged on the main control board, the input end of the voltage dividing circuit is connected with the external equipment, and the output end of the voltage dividing circuit is the state signal input end.
9. The digital controller of claim 8, further comprising a plurality of DI acquisition expansion boards, each DI acquisition expansion board having a handshake module disposed thereon, the time-division-on DI circuit further comprising an identification module;
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 is used for identifying a plurality of DI acquisition expansion boards according to the handshake signals and outputting corresponding identification signals.
10. An electrical automation system, comprising a digital controller according to any one 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 CN113534701A (en) 2021-10-22
CN113534701B true 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
CN113534701A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN209911501U (en) High-voltage relay testing device and system
CN107305526B (en) Debugger for microcontroller
CN108732987A (en) It can customize the embedded soft PLC control system and its design method of I/O port numbers
CN113534701B (en) Time-sharing conduction DI circuit, digital controller and electric automation system
CN110928179A (en) Control system and method for safe band-type brake of frequency converter
CN111122994B (en) Man-machine interaction testing device for simulation circuit breaker
CN208335011U (en) A kind of test environment configurations board
CN103744387A (en) Intelligent electric control executing system with redundant site bus and analog quantity control functions
CN208589015U (en) A kind of server fault diagnosis plate
CN208607547U (en) Dry contact Peripheral Interface
CN209357053U (en) A kind of spaceborne relay switch card based on PXI bus testing system
CN203522711U (en) Signal converter electrical aging detection apparatus
CN108845611A (en) Dry contact peripheral interface
CN215219124U (en) Power-on control testing device based on DS1286
CN210833585U (en) Measuring device test fixture
Li et al. An extension HA design for the hot-swap application of Compact PCI device
CN112650093B (en) Digital reset circuit applied to MCU chip
CN219843443U (en) Power supply control circuit, main body of cleaning device and cleaning device
CN117595928B (en) Annotate wrong test fixture
CN201928254U (en) Automatic wire holder for serial-port link-line decoding-type managed household electronic and electric appliance
CN221199871U (en) Time relay calibrating device
CN215934743U (en) Multi-selection voltage output voltage source
CN214846291U (en) Energy efficiency controller circuit
CN221631515U (en) Radio frequency testing device
CN214795825U (en) Computer expansion card based on internet of things technology

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