CN110134052B - Digital signal acquisition circuit compatible with multiple output forms - Google Patents
Digital signal acquisition circuit compatible with multiple output forms Download PDFInfo
- Publication number
- CN110134052B CN110134052B CN201910530236.9A CN201910530236A CN110134052B CN 110134052 B CN110134052 B CN 110134052B CN 201910530236 A CN201910530236 A CN 201910530236A CN 110134052 B CN110134052 B CN 110134052B
- Authority
- CN
- China
- Prior art keywords
- input
- digital signal
- circuit
- acquisition circuit
- signal 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.)
- Active
Links
- 230000008878 coupling Effects 0.000 claims abstract description 12
- 238000010168 coupling process Methods 0.000 claims abstract description 12
- 238000005859 coupling reaction Methods 0.000 claims abstract description 12
- 230000002457 bidirectional effect Effects 0.000 claims description 28
- 238000000034 method Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/21—Pc I-O input output
- G05B2219/21119—Circuit for signal adaption, voltage level shift, filter noise
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Electronic Switches (AREA)
Abstract
The invention discloses a digital signal acquisition circuit compatible with various output forms, which comprises: the reverse follower circuit is connected with the input end of the digital signal acquisition circuit and is used for reversing the phase of a digital input signal and improving the signal driving capability; the signal coupling output circuit is provided with two input ends which are respectively connected with the input end of the digital signal acquisition circuit and the output end of the reverse follower circuit and is used for outputting low level when the digital input signal is low level; the signal selection output circuit is provided with two input ends which are respectively connected with the input end of the digital signal acquisition circuit and the output end of the signal coupling output circuit and is used for outputting high level when the signal input by at least one input end is high level. The digital signal acquisition circuit can be compatible with three output forms of digital signals at the same time, so that the digital signal acquisition circuit can be compatible with various digital signal forms of sensors, valves, switches and other devices at the same time, can simplify field wiring and layout, and improves the practicability and reliability of the system.
Description
Technical Field
The invention relates to the technical field of circuits, in particular to a digital signal acquisition circuit compatible with various output forms.
Background
At present, a singlechip, a PLC (Programmable Logic Controller, a programmable logic controller) and the like which are frequently used in the industrial control field are all provided with digital signal interfaces, and digital signals output by devices such as a sensor, a valve, a switch and the like can be connected to a digital signal acquisition channel of the singlechip and the PLC.
From the aspect of signal output form, devices such as a sensor and the like can be divided into three types, and ① digital output signals are in a high level and high resistance state; ② The digital output signal is in low level and high resistance state; ③ The digital output signal is high and low. Because the signal output forms of devices such as a sensor and the like have no forced unified standard in design, and the number of digital signal input interfaces of a singlechip and a PLC is limited, the digital signal interfaces of the singlechip and the like cannot adapt to all signal input equipment, and if input signals cannot be directly accessed, the problems can be solved only by intermediate conversion or redesign of a circuit of a signal acquisition end.
Disclosure of Invention
The invention aims to provide a digital signal acquisition circuit compatible with various output forms. The circuit is a comprehensive digital signal acquisition circuit, can be compatible with the digital signals in the three output modes, can greatly simplify the work of wiring, layout and the like of an industrial field, and improves the practicability and the reliability of the system.
The technical scheme adopted is as follows:
a digital signal acquisition circuit compatible with multiple output forms, comprising: the reverse follower circuit is connected with the input end of the digital signal acquisition circuit and is used for reversing the phase of a digital input signal and improving the signal driving capability; the signal coupling output circuit is provided with two input ends which are respectively connected with the input end of the digital signal acquisition circuit and the output end of the reverse follower circuit and is used for outputting low level when the digital input signal of the input end of the digital signal acquisition circuit is low level; the signal selection output circuit is provided with two input ends which are respectively connected with the input end of the digital signal acquisition circuit and the output end of the signal coupling output circuit and is used for outputting high level when the signal input by at least one input end is high level; the output end of the signal selection output circuit is used as the output end of the digital signal acquisition circuit.
In an alternative implementation manner, the signal selection output circuit is an or gate; the signal coupling output circuit is a bidirectional optocoupler; the reverse follower circuit includes an inverter and an operational amplifier.
In an alternative implementation manner, one input end of the or gate is connected with the input end of the digital signal acquisition circuit, and the other input end of the or gate is connected with the output end of the bidirectional optocoupler; one input end of the bidirectional optocoupler is connected with the input end of the digital signal acquisition circuit, and the other input end of the bidirectional optocoupler is connected with the output end of the operational amplifier; the input end of the inverter is connected with the input end of the digital signal acquisition circuit, and the output end of the inverter is connected with the input end of the operational amplifier; the output end of the OR gate is used as the output end of the digital signal acquisition circuit.
Optionally, when the digital input signal is at a high level, the output terminal of the or gate outputs a high level.
Optionally, when the digital input signal is at a low level, the two input ends of the bidirectional optocoupler are at a low level and a high level respectively, so that the bidirectional optocoupler outputs the low level to the or gate, both the two input ends of the or gate are at the low level, and the output end of the or gate outputs the low level.
Optionally, when the digital input signal is in a high-resistance state, the or gate outputs the high-resistance state.
Optionally, the output end of the signal selection output circuit is used for being connected with a singlechip or a PLC.
From the above technical scheme, the invention has the following advantages:
The digital signal acquisition circuit can be compatible with digital signals in various output forms such as high level, low level, high resistance state and the like, so that the digital signal acquisition circuit can be compatible with devices such as sensors, valves, switches and the like in various digital signal forms at present, the signal forms of access devices are not needed to be considered, work such as industrial field wiring and layout is greatly simplified, and the practicability and reliability of the system can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, 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 these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a functional block diagram of a digital signal acquisition circuit provided in one embodiment of the present invention;
Fig. 2 is a circuit diagram of a digital signal acquisition circuit according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The terms "comprising" and "having" and any variations thereof in the description and claims of the invention and in the foregoing drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The following will each explain in detail by means of specific examples.
Referring to fig. 1, in one embodiment of the present invention, a digital signal acquisition circuit compatible with multiple output modes is provided, which may include:
The reverse follower circuit 10 is connected with the input end of the digital signal acquisition circuit and is used for reversing the phase of a digital input signal and improving the signal driving capability;
the signal coupling output circuit 11 is provided with two input ends which are respectively connected with the input end of the digital signal acquisition circuit and the output end of the inverse follower circuit 10 and used for outputting low level when the digital input signal is low level;
The signal selection output circuit 12 is provided with two input ends, is respectively connected with the input end of the digital signal acquisition circuit and the output end of the signal coupling output circuit 11, and is used for outputting a high level when the signal input by at least one input end is a high level;
The output end of the signal selection output circuit 12 is used as the output end of the digital signal acquisition circuit and is used for being connected with a singlechip or a PLC.
The signal coupling output circuit 11 may include two parallel light emitting diodes and a phototransistor, and is configured to turn on one of the light emitting diodes when there is a voltage difference between the signals input from the two input terminals, so that the phototransistor outputs a low level.
In some embodiments, the signal selection output circuit may be an or gate, the signal coupling output circuit may be a bidirectional optocoupler, and the inverse follower circuit may include an inverter and an operational amplifier. A specific circuit configuration is shown in fig. 2.
As shown in fig. 2, the digital signal acquisition circuit may include: or gate U 2, bi-directional optocoupler O 1, and inverting follower circuit 10 formed by inverter U 1 and op amp F 1.
One input end of the OR gate U 2 is connected with the input end A 1 of the digital signal acquisition circuit, and the other input end of the OR gate U 2 is connected with the output end of the bidirectional optocoupler O 1;
one input end of the bidirectional optocoupler O 1 is connected with the input end A 1 of the digital signal acquisition circuit, and the other input end of the bidirectional optocoupler O 1 is connected with the output end of the operational amplifier F 1;
The input end of the inverter U 1 is connected with the input end A 1 of the digital signal acquisition circuit, and the output end of the inverter U 1 is connected with the input end of the operational amplifier F 1;
The output end of the OR gate U 2 is used as an output end A 2 of the digital signal acquisition circuit and is used for being connected with a singlechip or a PLC.
The bidirectional optocoupler is one of optocouplers (opticalcoupler, abbreviated as OC), which are also called optoisolators or optocouplers, abbreviated as optocouplers. Optocouplers are devices that transmit electrical signals using light as a medium, and typically encapsulate light emitters and light receptors in the same package. When the input end is powered on, the light emitter emits light, and the light receiver receives the light to generate photocurrent, which flows out from the output end, so that the electric-optical-electric conversion is realized. Optionally, the bidirectional optocoupler in the present invention may include a light emitter and a light receiver, where the light emitter includes two light emitting diodes connected in anti-parallel, and the light receiver includes a phototransistor.
As described above, the invention provides a digital signal acquisition circuit which is compatible with three output forms simultaneously. The digital signal acquisition circuit divides a digital input signal into 3 paths, and the 1 st path is directly connected to one input end of an OR gate; the 2 nd path is directly connected to one of the input ends of the bidirectional optocoupler; the 3 rd path is firstly connected to the other input end of the bidirectional optocoupler through an inverter and then a voltage follower circuit formed by an operational amplifier, and the output end of the bidirectional optocoupler is directly connected to the other input end of the OR gate.
The working principle of the digital signal acquisition circuit is described in three cases:
① The digital input signal being high
When the signal is at high level, the 1 st path of the digital Input signal is directly connected to one Input end of the or gate, so that no matter what level the other Input end of the or gate is, the Output end of the or gate must be at high level, that is, the Input/Output interface of the singlechip/PLC receives the high level.
② The digital input signal being low
When the signal is low level, the 2 nd path of the digital input signal is directly connected to one input end of the bidirectional optocoupler, the 3 rd path of the digital input signal is changed into high level through the action of the inverter, and then the level is not changed after the digital input signal passes through the voltage follower circuit formed by the operational amplifier, but the driving capability is improved, the digital input signal enters the other input end of the bidirectional optocoupler, and the two input ends of the bidirectional optocoupler are conducted and the phototriode is caused to be conducted due to the fact that the voltage difference exists between the two input ends of the bidirectional optocoupler, at the moment, the bidirectional optocoupler outputs low level, and for an OR gate, the two input ends are both low level, and therefore the output end of the OR gate is low level, namely the IO interface of the singlechip/PLC receives low level.
③ The digital input signal is in a high-impedance state
When the signal is in a high-resistance state, the 1 st path of the input signal has no influence on an OR gate, which is equivalent to no access; the 2 nd and 3 rd paths of the digital input signals have no influence on the bidirectional optocoupler, namely the OR gate, so that the state of the IO interface of the singlechip/PLC is also in a high-resistance state.
It is worth to say that, general external digital signals can not be directly connected to the single chip microcomputer/PLC, and the signals are processed to the single chip microcomputer. Because: firstly, the direct access to external digital signals is easy to cause damage to the singlechip/PLC, and the level may not be matched; secondly, the output forms of devices such as sensors are various, and in actual use, for the acquisition circuit in the prior art, the type of the sensor and the form of an output signal must be known in advance to determine how to access the acquisition circuit, and different sensors need different acquisition circuits. The invention uses a unified circuit to solve the problem, and does not need to consider what type of sensor is, and what type of output signal is, and the output signal can be processed by the digital signal acquisition circuit of the invention, and finally can output the signal meeting the input requirement of the singlechip.
The key point of the digital signal acquisition circuit of the invention is that:
1. The circuit structure comprises an inverter, a voltage follower circuit formed by an operational amplifier, a bidirectional optocoupler and an OR gate.
2. The input end of the digital signal acquisition circuit is a sensor, the output end is a digital signal channel of a singlechip/PLC and the like, and the digital signal acquisition circuit can be used as a part of a signal acquisition module.
The digital signal acquisition circuit can be compatible with digital signals in various output forms such as high level, low level, high resistance state and the like, so that the digital signal acquisition circuit can be compatible with devices such as sensors, valves, switches and the like in various digital signal forms at present, the signal forms of access devices are not needed to be considered, work such as industrial field wiring and layout is greatly simplified, and the practicability and reliability of the system can be improved.
In the foregoing embodiments, the descriptions of the embodiments are each focused, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; those of ordinary skill in the art will appreciate that: the technical scheme described in the above embodiments can be modified or some technical features thereof can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (5)
1. A digital signal acquisition circuit compatible with a plurality of output forms, comprising:
the reverse follower circuit is connected with the input end of the digital signal acquisition circuit and is used for reversing the phase of a digital input signal and improving the signal driving capability;
The signal coupling output circuit is provided with two input ends which are respectively connected with the input end of the digital signal acquisition circuit and the output end of the reverse follower circuit and is used for outputting low level when the digital input signal is low level;
The signal selection output circuit is provided with two input ends which are respectively connected with the input end of the digital signal acquisition circuit and the output end of the signal coupling output circuit and is used for outputting high level when the signal input by at least one input end is high level;
the output end of the signal selection output circuit is used as the output end of the digital signal acquisition circuit;
The signal selection output circuit is an OR gate, the signal coupling output circuit is a bidirectional optocoupler, and the reverse following circuit comprises an inverter and an operational amplifier;
One input end of the OR gate is connected with the input end of the digital signal acquisition circuit, and the other input end of the OR gate is connected with the output end of the bidirectional optocoupler;
One input end of the bidirectional optocoupler is connected with the input end of the digital signal acquisition circuit, and the other input end of the bidirectional optocoupler is connected with the output end of the operational amplifier;
The input end of the inverter is connected with the input end of the digital signal acquisition circuit, and the output end of the inverter is connected with the input end of the operational amplifier;
The output end of the OR gate is used as the output end of the digital signal acquisition circuit.
2. The digital signal acquisition circuit of claim 1, wherein,
When the digital input signal is high level, the output end of the OR gate outputs high level.
3. The digital signal acquisition circuit of claim 1, wherein,
When the digital input signal is low level, the two input ends of the bidirectional optocoupler are respectively low level and high level, so that the bidirectional optocoupler outputs low level to the or gate, the two input ends of the or gate are both low level, and the output end of the or gate outputs low level.
4. The digital signal acquisition circuit of claim 1, wherein,
When the digital input signal is in a high-resistance state, the OR gate outputs the high-resistance state.
5. The digital signal acquisition circuit of any one of claims 1-4, wherein,
The output end of the signal selection output circuit is used for being connected with a singlechip or a PLC.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910530236.9A CN110134052B (en) | 2019-06-19 | 2019-06-19 | Digital signal acquisition circuit compatible with multiple output forms |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910530236.9A CN110134052B (en) | 2019-06-19 | 2019-06-19 | Digital signal acquisition circuit compatible with multiple output forms |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110134052A CN110134052A (en) | 2019-08-16 |
CN110134052B true CN110134052B (en) | 2024-04-26 |
Family
ID=67578157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910530236.9A Active CN110134052B (en) | 2019-06-19 | 2019-06-19 | Digital signal acquisition circuit compatible with multiple output forms |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110134052B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003189196A (en) * | 2001-12-21 | 2003-07-04 | Funai Electric Co Ltd | Input signal selector |
CN1531203A (en) * | 2003-03-17 | 2004-09-22 | 联想(北京)有限公司 | Universal bi-directional digital signal electric separator |
CN203070022U (en) * | 2013-01-16 | 2013-07-17 | 广州市能迪自动化设备有限公司 | Digital signal input and output circuit module and circuit system thereof |
CN105790746A (en) * | 2016-04-13 | 2016-07-20 | 华中科技大学 | Digital signal fiber transmission triggering system |
CN107682003A (en) * | 2017-09-15 | 2018-02-09 | 上海微程电气设备有限公司 | A kind of number bus isolates telecommunication circuit |
CN207910758U (en) * | 2018-03-29 | 2018-09-25 | 大连大铁通益科技有限公司 | A kind of digital signal interface circuit and industrial equipment |
CN109884384A (en) * | 2019-04-03 | 2019-06-14 | 深圳市佳运通电子有限公司 | A kind of signal acquisition circuit of compatible electric current and voltage input |
CN209728490U (en) * | 2019-06-19 | 2019-12-03 | 深圳市佳运通电子有限公司 | One kind being used for single-chip microcontroller/PLC digital signal acquiring circuit |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107919867B (en) * | 2016-10-09 | 2020-12-08 | 华为技术有限公司 | Digital signal input circuit |
-
2019
- 2019-06-19 CN CN201910530236.9A patent/CN110134052B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003189196A (en) * | 2001-12-21 | 2003-07-04 | Funai Electric Co Ltd | Input signal selector |
CN1531203A (en) * | 2003-03-17 | 2004-09-22 | 联想(北京)有限公司 | Universal bi-directional digital signal electric separator |
CN203070022U (en) * | 2013-01-16 | 2013-07-17 | 广州市能迪自动化设备有限公司 | Digital signal input and output circuit module and circuit system thereof |
CN105790746A (en) * | 2016-04-13 | 2016-07-20 | 华中科技大学 | Digital signal fiber transmission triggering system |
CN107682003A (en) * | 2017-09-15 | 2018-02-09 | 上海微程电气设备有限公司 | A kind of number bus isolates telecommunication circuit |
CN207910758U (en) * | 2018-03-29 | 2018-09-25 | 大连大铁通益科技有限公司 | A kind of digital signal interface circuit and industrial equipment |
CN109884384A (en) * | 2019-04-03 | 2019-06-14 | 深圳市佳运通电子有限公司 | A kind of signal acquisition circuit of compatible electric current and voltage input |
CN209728490U (en) * | 2019-06-19 | 2019-12-03 | 深圳市佳运通电子有限公司 | One kind being used for single-chip microcontroller/PLC digital signal acquiring circuit |
Also Published As
Publication number | Publication date |
---|---|
CN110134052A (en) | 2019-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6764539B2 (en) | Smart safety relay and its application circuit | |
CN101043138B (en) | Protection circuit for semiconductor element | |
CN102931971B (en) | Three-state control signal input/output (IO) circuit | |
EP1198909B1 (en) | Electrical insulation device with optocoupler for bidirectional connecting lines | |
CN106095708B (en) | Current loop communication system for two-wire system half-duplex multi-machine communication | |
CN103926853A (en) | Programmable resistance output device and method | |
CN110134052B (en) | Digital signal acquisition circuit compatible with multiple output forms | |
CN105334424B (en) | Wiring correctness detection method for the switch board of dcs | |
CN214225912U (en) | Serial port level internal selection switching equipment and system | |
CN104009743B (en) | Photoelectrical coupler device and input and/or output block | |
CN105472782A (en) | Wireless communication terminal | |
CN209728490U (en) | One kind being used for single-chip microcontroller/PLC digital signal acquiring circuit | |
CN203911885U (en) | Biasing resistor controllable type 485 communication circuit | |
CN217385788U (en) | Broken wire detection circuit | |
CN210780724U (en) | Sensor matching device | |
CN109782660B (en) | Control circuit and device compatible with voltage-type and current-type analog input | |
CN201927018U (en) | Automatic wire holder for 2<8N>/2 paths of household appliances capable of realizing output data management through interconnecting lines of serial port | |
CN216083438U (en) | Input circuit and circuit board of program-controlled switching mode | |
CN211429278U (en) | Device for dividing one path of external photoelectric signal into multiple paths | |
CN205910541U (en) | Multisensor control circuit and electronic product | |
CN203606450U (en) | Flat cable detection system | |
CN111045361A (en) | Program-controlled NPN _ PNP switching input circuit and circuit board | |
CN214954593U (en) | Industrial automation analog signal isolation module | |
CN103514059A (en) | Chip applied to serial transmission system and related fault processing method | |
CN212846474U (en) | Multifunctional output control circuit for PLC |
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 |