CN201742386U - Device for inputting multi-way switching values - Google Patents

Device for inputting multi-way switching values Download PDF

Info

Publication number
CN201742386U
CN201742386U CN2010201111136U CN201020111113U CN201742386U CN 201742386 U CN201742386 U CN 201742386U CN 2010201111136 U CN2010201111136 U CN 2010201111136U CN 201020111113 U CN201020111113 U CN 201020111113U CN 201742386 U CN201742386 U CN 201742386U
Authority
CN
China
Prior art keywords
unit
output
input
operational amplifier
connects
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.)
Expired - Lifetime
Application number
CN2010201111136U
Other languages
Chinese (zh)
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.)
Shanghai Ship and Shipping Research Institute Co Ltd
Original Assignee
Shanghai Ship and Shipping Research Institute 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 Shanghai Ship and Shipping Research Institute Co Ltd filed Critical Shanghai Ship and Shipping Research Institute Co Ltd
Priority to CN2010201111136U priority Critical patent/CN201742386U/en
Application granted granted Critical
Publication of CN201742386U publication Critical patent/CN201742386U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model discloses a device for inputting multi-way switching values, which comprises a power unit, a photoelectric coupling unit, an amplifier unit and a field programmable gate array (FPGA) chip, wherein the power unit is used for outputting electric current for each unit of the device; the input terminal of the photoelectric coupling unit is connected with the power unit, and the output terminal of the light-emitting component thereof is grounded via a resistor connected in parallel with an external switch; the amplifier unit comprises an operational amplifier, and the first terminal of the operational amplifier, as the input terminal, is connected with the output terminal of the light-receiving component of the photoelectric coupling unit; and the input terminal of the FPGA chip is connected with the first terminal, second terminal and third terminal of the operational amplifier, so as to receive and process outputted level signals, and the output terminal of the FPGA chip is used for outputting the processed digital level signals. Accordingly, the device of the utility model has the advantages of high reliability, high flexibility, rich I/O resources, simple circuits and good identification performance.

Description

A kind of variable connector amount input unit
Technical field
The utility model relates to the electrical field, particularly a kind of variable connector amount input unit.
Background technology
Switching input module is the data acquisition module of extensive use in the Industry Control.Move the working condition of obtaining field apparatus by gathering outside connected switch, so that control system is made and judged and handle.
Referring to Fig. 1, what Fig. 1 showed is conventional switch amount input module schematic diagram, and conventional switch amount input module mainly adopts external power source series connection external switch and current-limiting resistance, to drive the luminous tube of optical coupling, the method for measuring from the optocoupler output again.
Above-mentioned traditional method can also realize the isolation of inner and outer system effectively in transmitting switch amount signal, but above-mentioned method of measurement only can be discerned judgement to the on off operating mode of outside input variable.And when equipment in the environment of vibrations or misoperation, the situation that has line loose contact or broken string probably occurs, distinguish with the actual act of external switch amount with regard to being difficult to this moment, thereby the judgement that system is done make mistake.
In order to address the above problem, also some has the module of burn out detection at present, but its shortcoming is to need to use a plurality of devices, and circuit is comparatively complicated.And present switching input module generally uses the mode of CPU Direct Sampling, and switch amount is obtained, and need take the IO resource of a large amount of CPU.Need pass through program as need to the shaping filter of signal, have the handling procedure complexity, the characteristics of real-time difference.
In a word, there are following several big shortcomings in conventional art and method:
1, input needs to add the shaping filter program to signal, makes the handling procedure complexity, and real-time is poor;
2, general every road circuit needs two road photoelectric isolating circuits realization, circuit is realized comparatively complicated;
3, when the input of variable connector amount is arranged, need take the IO resource of a large amount of CPU.
The utility model content
The purpose of this utility model provides a kind of variable connector amount input unit, and when it can be implemented in the input of variable connector amount, the situation of switch amount line detected.
The utility model provides a kind of variable connector amount input unit, comprising:
Power subsystem is in order to the electric current of output for each unit use of described device;
The photoelectricity coupling unit, its input connects described power subsystem, the output of its illuminating part by one with external switch parallel resistor ground connection;
Amplifier unit comprises an operational amplifier, and first end of described operational amplifier connects the output that is subjected to light spare of described photoelectricity coupling unit as input;
First end, second end and the 3rd end that fpga chip, its input connect described operational amplifier is with the level signal that receives its output and handle the treated level digital signal of its output output.
Described device also comprises the SPI communications interface unit, and described fpga chip exports signal to the control corresponding system by described SPI communications interface unit.
Described power subsystem comprises insulation output power supply and internal electric source, and described insulation output power supply connects the input of the illuminating part of described photoelectricity coupling unit, and described internal electric source connects the input that is subjected to light spare of institute's photoelectricity coupling unit.
Described fpga chip comprises triggering shaping filtering shake module, internal memory module and the SPI interface communication module that connects successively, the input of described triggering shaping filtering shake module connects described operational amplifier, and described SPI interface communication module connects described SPI communications interface unit.
Adopt a kind of variable connector amount input unit described in the utility model, when switching value was normally imported, this device can be discerned the on off state of external switch amount; And when the line fault with external switch disconnected, this device also can be discerned this, and provides the disconnection fault signal.In addition, this device has also used fpga chip, makes that this device has that reliability height, flexibility are strong, IO aboundresources, circuit realize advantages such as simple, that recognition performance is good.Simultaneously, this device sends above-mentioned signal to the control corresponding system rapidly by the SPI serial communication interface, further judges, execution or alert program.
Description of drawings
Fig. 1 is a conventional switch amount input module schematic diagram;
Fig. 2 is the theory diagram of device described in the utility model;
Fig. 3 is the circuit theory diagrams of photoelectricity coupling unit described in the utility model and amplifier unit;
Fig. 4 is the internal structure block diagram of fpga chip described in the utility model.
Embodiment
Further specify the technical solution of the utility model below in conjunction with drawings and Examples.
Referring to Fig. 2 and Fig. 3, the utility model provides a kind of variable connector amount input unit 100, comprising:
Power subsystem 110 is in order to the electric current of output for each unit use of described device.As an embodiment, described power subsystem 110 comprises insulation output power supply V1 and internal electric source VCC, described insulation output power supply connects the input of the illuminating part of described photoelectricity coupling unit 120, and described internal electric source connects the input that is subjected to light spare of institute's photoelectricity coupling unit 120.
Photoelectricity coupling unit 120, its input connect described power subsystem 110, the output of its illuminating part by one with external switch parallel resistor ground connection;
Amplifier unit 130 comprises an operational amplifier, and first end of described operational amplifier connects the output that is subjected to light spare of described photoelectricity coupling unit 120 as input;
First end, second end and the 3rd end that fpga chip 140, its input connect described operational amplifier is with the level signal that receives its output and handle the treated level digital signal of its output output.Referring to Fig. 4, as an embodiment, described fpga chip 140 comprises triggering shaping filtering shake module 141, internal memory module 142 and the SPI interface communication module 143 that connects successively, the input of described triggering shaping filtering shake module connects described operational amplifier, and described SPI interface communication module connects described SPI communications interface unit 150.
SPI communications interface unit 150, described fpga chip 140 exports signal to the control corresponding system by described SPI communications interface unit 150.
The following detailed description is the circuit diagram of correlation module once, and referring to Fig. 3, V1 and G1 are respectively insulation output power supply and ground connection among the figure, also can provide power supply by external system, and VCC and GND are respectively internal electric source and ground connection.Detect principle for when external switch amount signal closes, 120 conductings of photoelectricity coupling unit, A point output logic high level; When external switch amount signal is opened, the 120 not conductings of photoelectricity coupling unit, A point output logic low level.But because a number in parallel is done the resistance R 2 of ohm on the external switch, make photoelectricity coupling unit 120 obtain small amount of current, the certain leakage current of photoelectricity coupling unit 120 coupling outputs, make the A point have necessarily lower voltage again, compare and enlarge by amplifier unit 130 and the B point reference voltage that presets again, this moment, the A point voltage should be greater than B point reference voltage, and then amplifier output C point is a logic high; When external switch amount holding wire disconnects, the 120 not conductings still of photoelectricity coupling unit, A point output logic low level.But there is not electric current to pass through photoelectricity coupling unit 120, the 120 not conductings fully of photoelectricity coupling unit, photoelectricity coupling unit 120 has not almost had the output of leakage current, and the A point voltage is less than B point reference voltage, and then amplifier unit 130 output C points are logic low; Just can tell three kinds of situations that normal switch motion of switching value and line disconnect by the judgement to A point and C point logic level thus, its logic true value table is as shown in the table:
The A point value The C point value Corresponding external switch state
0 0 Connect broken string
0 1 External switch is opened
1 0 (can not occur)
1 1 The external switch closure
Referring to Fig. 4, judge that through switching value after the above-mentioned processing and broken string holding wire all inputs to fpga chip 140 pins, combine the IO pin advantage that fpga chip 140 enriches.In fpga chip 140, further carry out certain signal shaping and Digital Signal Processing again, and in fpga chip 140, be integrated into the soft nuclear of SPI interface, can export to the master control treatment system by SPI standard interface with the signal that obtains and after changeing string.The utility model also can be visited fpga chip 140 internal registers by the SPI serial port by the host processing system of outside, and the switching value information of input is taken away.It can be pegged graft by grafting port and host processing system flexibly as the expansion module of host processing system.
Those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the utility model, and be not to be used as qualification of the present utility model, as long as in connotation scope of the present utility model, all will drop in claims scope of the present utility model variation, the modification of above embodiment.

Claims (4)

1. a variable connector amount input unit is characterized in that, comprising:
Power subsystem is in order to the electric current of output for each unit use of described device;
The photoelectricity coupling unit, its input connects described power subsystem, the output of its illuminating part by one with external switch parallel resistor ground connection;
Amplifier unit comprises an operational amplifier, and first end of described operational amplifier connects the output that is subjected to light spare of described photoelectricity coupling unit as input;
First end, second end and the 3rd end that fpga chip, its input connect described operational amplifier is with the level signal that receives its output and handle the treated level digital signal of its output output.
2. device as claimed in claim 1 is characterized in that described device also comprises the SPI communications interface unit, and described fpga chip exports signal to the control corresponding system by described SPI communications interface unit.
3. device as claimed in claim 2, it is characterized in that, described power subsystem comprises insulation output power supply and internal electric source, and described insulation output power supply connects the input of the illuminating part of described photoelectricity coupling unit, and described internal electric source connects the input that is subjected to light spare of institute's photoelectricity coupling unit.
4. device as claimed in claim 3, it is characterized in that, described fpga chip comprises triggering shaping filtering shake module, internal memory module and the SPI interface communication module that connects successively, the input of described triggering shaping filtering shake module connects described operational amplifier, and described SPI interface communication module connects described SPI communications interface unit.
CN2010201111136U 2010-02-09 2010-02-09 Device for inputting multi-way switching values Expired - Lifetime CN201742386U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010201111136U CN201742386U (en) 2010-02-09 2010-02-09 Device for inputting multi-way switching values

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010201111136U CN201742386U (en) 2010-02-09 2010-02-09 Device for inputting multi-way switching values

Publications (1)

Publication Number Publication Date
CN201742386U true CN201742386U (en) 2011-02-09

Family

ID=43557666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010201111136U Expired - Lifetime CN201742386U (en) 2010-02-09 2010-02-09 Device for inputting multi-way switching values

Country Status (1)

Country Link
CN (1) CN201742386U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880088A (en) * 2012-10-26 2013-01-16 中联重科股份有限公司 Expander circuit of switching value input interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880088A (en) * 2012-10-26 2013-01-16 中联重科股份有限公司 Expander circuit of switching value input interface

Similar Documents

Publication Publication Date Title
CN101477166B (en) Wire harness test control panel and wire harness test control method
CN103941135B (en) Short circuit detection method and device
CN103779972B (en) A kind of simple and easy reliable POE device
CN106155967A (en) The circuit of USB interface multiplexing, method and apparatus
CN102882073A (en) Connecting piece and connection status detection method for same
CN104090511B (en) Circuit and method for achieving non-polar 485 communication
CN103178980A (en) Network card management system
CN103916116A (en) Interface level switch device
CN103634723B (en) Audio input circuit and the electronic equipment with audio input
CN201742386U (en) Device for inputting multi-way switching values
CN105282653A (en) Audio-insertion automatic wake-up apparatus and audio-insertion automatic wake-up method
CN111707966A (en) CPLD electric leakage detection method and device
CN207851546U (en) A kind of I/O switch amount expanded circuit
CN106339238B (en) Serial port multi-mode automatic multiplexing chip fast programming system
CN203054149U (en) An automatic open circuit and short circuit testing system of a CMOS chip
CN201656199U (en) Serial line with USB current-taking function
CN103838693B (en) The device and mobile terminal of data transfer
CN103529353A (en) Flat cable detection method and flat cable detection system
CN209281387U (en) Plug the lighting jig of control circuit and display panel
CN108196137B (en) Three-phase electricity detection circuit and method
CN204154802U (en) The numeric type leakage current sensor that belt switch amount detects
CN103197197B (en) Extremely low power consumption digital circuit structure for open circuit detection and detection method thereof
CN111693754A (en) Communication module PIN voltage detection device, equipment and method
CN104908682A (en) Terminal system of intelligent electrical apparatus
CN203455428U (en) Test jig

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20110209