CN104345658A - Control circuit and method for detecting instrument - Google Patents

Control circuit and method for detecting instrument Download PDF

Info

Publication number
CN104345658A
CN104345658A CN201310336976.1A CN201310336976A CN104345658A CN 104345658 A CN104345658 A CN 104345658A CN 201310336976 A CN201310336976 A CN 201310336976A CN 104345658 A CN104345658 A CN 104345658A
Authority
CN
China
Prior art keywords
microprocessor
measuring instrument
control circuit
order
unit
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.)
Pending
Application number
CN201310336976.1A
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.)
GONGQINGCHENG CELLON COMMUNICATIONS TECHNOLOGY Co Ltd
Original Assignee
GONGQINGCHENG CELLON COMMUNICATIONS TECHNOLOGY 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 GONGQINGCHENG CELLON COMMUNICATIONS TECHNOLOGY Co Ltd filed Critical GONGQINGCHENG CELLON COMMUNICATIONS TECHNOLOGY Co Ltd
Priority to CN201310336976.1A priority Critical patent/CN104345658A/en
Publication of CN104345658A publication Critical patent/CN104345658A/en
Pending legal-status Critical Current

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/0428Safety, monitoring

Abstract

The invention relates to a control circuit and method for a detecting instrument. The control circuit comprises a microprocessor, an input unit connected with the microprocessor and correspondingly and electronically connected with a plurality of input devices, an output unit connected with the microprocessor and correspondingly and electronically connected with a plurality of output devices, and a detecting product type setting unit connected with the microprocessor and used for setting the type of the detecting instrument, wherein the microprocessor has a serial communication port, and the control circuit is communicated and connected with the detecting instrument through the serial communication port of the microprocessor to obtain detecting data provided by the detecting instrument. The control circuit and method provided by the invention can realize the automatic detection and judgment at a lower cost.

Description

The control circuit of measuring instrument and method
Technical field
The present invention relates to measuring instrument, particularly relate to control circuit that measuring instrument carries out detecting and method.
Background technology
The detection of size is the problem faced by all trades and professions all need, and along with the development of electronic information technology, the measurer of detection is transformed to electronic type by mechanical type, enormously simplify the use difficulty of test measuring device, improves operability.But in the process using electronic type measurer, such as: digital display dial gauge, electronic digital indicator, digital display thickness gauge etc., testing process remains manual operation, artificial reading and and standard value compare to judge.Due to the otherness that operating personnel, operation technique etc. are individual, different operating personnel's measurement data is caused to have different, and maloperation, erroneous judgement etc. that the duplication of labour brings.In order to realize automatically measuring and interpretation, existing also have adopt PLC(Programmable Logic Controller) be electrically connected with electronics measurer, but this control method, its cost is too high.
Summary of the invention
Technical matters to be solved by this invention is to overcome the deficiency existing for above-mentioned prior art, and proposes a kind of control circuit and method of measuring instrument, can realize automatically detecting and judging with lower cost.
The present invention is directed to the control circuit that above-mentioned technical matters proposes a kind of measuring instrument, comprising: microprocessing unit; Input block, is connected with this microprocessor, is electrically connected multiple entering apparatus in order to correspondence; Output unit, is connected with this microprocessor, is electrically connected multiple output device in order to correspondence; Testing product type setting unit, is connected with this microprocessor, in order to set the type of measuring instrument; Wherein, this microprocessor has serial communication interface, and this control circuit is connected by the serial communication interface of this microprocessor the detection data provided to obtain measuring instrument with measuring instrument communication.
This input block has eight road input ports, is provided with eight road isolating devices between this eight roads input port and eight input pins of this microprocessor.
Described isolating device is optocoupler or relay.
This output unit has eight road output ports, is provided with eight road isolating devices and eight road driving elements between eight output pin Yu Zhe eight road output ports of this microprocessor.
Described isolating device is optocoupler or relay; Described driving element is Darlington transistor or transistor amplifier.
This testing product type setting unit has eight the DIP switches and eight exclusions that are connected with eight of this microprocessor input pins.
This control circuit also comprises power supply unit, in order to the input of the direct current of 24V and/or 12V is converted to 5V direct current to supply other unit of this control circuit.
This measuring instrument refers to the electronics measurer with data output interface.
This electronics measurer refers to dimension measuring instrument.
The present invention is directed to the control method that above-mentioned technical matters also proposes a kind of measuring instrument, comprising: microprocessing unit is set; Input block is set, is connected with this microprocessor, be electrically connected multiple entering apparatus in order to correspondence; Output unit is set, is connected with this microprocessor, be electrically connected multiple output device in order to correspondence; Testing product type setting unit is set, is connected with this microprocessor, in order to set the type of measuring instrument; Wherein, this microprocessor has serial communication interface, and this control circuit is connected by the serial communication interface of this microprocessor the detection data provided to obtain measuring instrument with measuring instrument communication.
Compared with prior art, the control circuit of measuring instrument of the present invention and the beneficial effect of method comprise: by adopting microprocessor and associated peripheral circuits to control measuring instrument, can realize automatically detecting and judging with lower cost.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that control circuit embodiment of the present invention is connected with measuring instrument.
Fig. 2 is that in control circuit embodiment of the present invention, microprocessor and input block are connected with output unit relevant port table.
Fig. 3 is the electric principle schematic of control circuit embodiment of the present invention.
Fig. 4 is the main program flow in control circuit embodiment of the present invention performed by microprocessor.
Fig. 5 is the time delay subroutine flow process in control circuit embodiment of the present invention performed by microprocessor.
Fig. 6 arranges detection subroutine flow for the product type in control circuit embodiment of the present invention performed by microprocessor.
Fig. 7 is the initialization subroutine flow process in control circuit embodiment of the present invention performed by microprocessor.
Fig. 8 is the Measurement and Data Processing subroutine flow in control circuit embodiment of the present invention performed by microprocessor.
Fig. 9 compares subroutine flow for the measured value in control circuit embodiment of the present invention performed by microprocessor.
Figure 10 is the serial ports interruption subroutine flow process in control circuit embodiment of the present invention performed by microprocessor.
Embodiment
Below in conjunction with accompanying drawing, elaboration is further given to the present invention.
The present invention proposes a kind of control method of measuring instrument, comprising: arrange microprocessing unit; Input block is set, is connected with this microprocessor, be electrically connected multiple entering apparatus in order to correspondence; Output unit is set, is connected with this microprocessor, be electrically connected multiple output device in order to correspondence; Testing product type setting unit is set, is connected with this microprocessor, in order to set the type of measuring instrument; Wherein, this microprocessor has serial communication interface, and this control circuit is connected by the serial communication interface of this microprocessor the detection data provided to obtain measuring instrument with measuring instrument communication.
See Fig. 1, the present invention proposes a kind of control circuit 10 of measuring instrument, and it comprises: microprocessing unit; Input block, is connected with this microprocessor, is electrically connected multiple entering apparatus in order to correspondence; Output unit, is connected with this microprocessor, is electrically connected multiple output device in order to correspondence; Testing product type setting unit, is connected with this microprocessor, in order to set the type of measuring instrument; Wherein, this microprocessor has serial communication interface, and this control circuit is connected by the serial communication interface of this microprocessor the detection data provided to obtain measuring instrument 20 with measuring instrument 20 communication.Wherein, the RxD of microprocessor connects the TxD of measuring instrument 20, and the TxD of microprocessor connects the RxD of measuring instrument 20, and the ground GND of measuring instrument connects the ground GND of measuring instrument 20.Fig. 2 shows the port table that this microprocessor is connected with output unit with input block.It should be noted that, this measuring instrument 20 can refer to any electronics measurer with data output interface.Preferably, this electronics measurer refers to dimension measuring instrument.
See Fig. 3, the concrete model of microprocessor is 12C5A16S2.
The input block of this control circuit 10 has eight tunnels, can detect the entering apparatus signals such as start button, travel switch, inductive switch.The concrete structure of input block has: terminal JP1 is input interface, P0.0 ~ the P0.7 of the corresponding microprocessor of its X0 ~ X7 difference, there is provided signal to isolate by No. four photoelectrical coupler PS2801-4 of two panels, ensure that microprocessor not by the signal disturbing of external entering apparatus.When signal end X0 ~ X7 is input as 0, corresponding LED is bright, and corresponding P0.0 ~ 0.7 Port detecting to 0, otherwise is 1; It should be noted that, light-coupled isolation can adopt relay to isolate and substitute.
The output unit of this control circuit 10 has eight tunnels, can the output device such as Controlling solenoid valve, pilot lamp, motor.The concrete structure of output unit has: terminal JP2 is output interface, P2.0 ~ the P2.7 of the corresponding microprocessor of its Y0 ~ Y7 difference, there is provided signal to isolate by No. four photoelectrical coupler PS2801-4 of two panels, ensure that microprocessor not by the signal disturbing of external output device.And export termination eight road Darlington transistor ULN2803, it has open collector to export, maximum output voltage 50v, electric current 500mA.When the output of MCU signal end P2.0 ~ 2.7 is 0, corresponding LED is bright, and corresponding Y0 ~ Y7 port exports as low level, the loaded work piece that driving is corresponding; It should be noted that, light-coupled isolation can adopt relay to isolate and substitute; Darlington transistor can adopt triode method circuit to substitute.
The concrete structure of the testing product type setting unit of this control circuit 10 has: be made up of eight toggle switch S1 and eight exclusion RP9, original state, any product type is not set, P1.0 ~ P1.7 detects it is 1, when product type is set, open corresponding toggle switch, now corresponding with toggle switch P1.0 ~ P1.7 detects that namely 0, MCU thinks that what detect is corresponding product.
See Fig. 3, this control circuit 10 also comprises power supply unit, the concrete structure of this power supply unit has: be made up of chip LM2596-5.0 and peripheral circuit, can be 5v voltage by conventional 12v and 24v voltage transitions, maximum load current reaches 3A, and other unit for control circuit 10 provide reliable and stable power supply and ensure.
See Fig. 4, the main program flow performed by microprocessor.Wherein, Fig. 5 shows time delay subroutine flow process.Fig. 6 shows product type and arranges detection subroutine flow.Fig. 7 shows initialization subroutine flow process.Fig. 8 shows Measurement and Data Processing subroutine flow.Fig. 9 shows measured value and compares subroutine flow.Figure 10 shows serial ports interruption subroutine flow process.
Adopt control circuit and the method for measuring instrument of the present invention, the beneficial effect that can bring includes, but are not limited to: 1, measuring process robotization, only needs to pick and place product, decreases human intervention, improve measurement efficiency; 2, judge measurement data robotization, qualified for OK()/NG(is defective) prompting is different, do not need artificially to judge measurement result, and then by prompting, product differentiation to be measured can be placed; 3, versatility is high, can be common to the electronics measurer all having data output interface.
Foregoing is only preferred embodiment of the present invention; not for limiting embodiment of the present invention; those of ordinary skill in the art are according to central scope of the present invention and spirit; can carry out corresponding flexible or amendment very easily, therefore protection scope of the present invention should be as the criterion with the protection domain required by claims.

Claims (10)

1. a control circuit for measuring instrument, is characterized in that, comprising: microprocessing unit; Input block, is connected with this microprocessor, is electrically connected multiple entering apparatus in order to correspondence; Output unit, is connected with this microprocessor, is electrically connected multiple output device in order to correspondence; Testing product type setting unit, is connected with this microprocessor, in order to set the type of measuring instrument; Wherein, this microprocessor has serial communication interface, and this control circuit is connected by the serial communication interface of this microprocessor the detection data provided to obtain measuring instrument with measuring instrument communication.
2. the control circuit of measuring instrument as claimed in claim 1, it is characterized in that, this input block has eight road input ports, is provided with eight road isolating devices between this eight roads input port and eight input pins of this microprocessor.
3. the control circuit of measuring instrument as claimed in claim 2, it is characterized in that, described isolating device is optocoupler or relay.
4. the control circuit of measuring instrument as claimed in claim 1, it is characterized in that, this output unit has eight road output ports, is provided with eight road isolating devices and eight road driving elements between eight output pin Yu Zhe eight road output ports of this microprocessor.
5. the control circuit of measuring instrument as claimed in claim 4, it is characterized in that, described isolating device is optocoupler or relay; Described driving element is Darlington transistor or transistor amplifier.
6. the control circuit of measuring instrument as claimed in claim 1, it is characterized in that, this testing product type setting unit has eight the DIP switches and eight exclusions that are connected with eight of this microprocessor input pins.
7. the control circuit of measuring instrument as claimed in claim 1, it is characterized in that, this control circuit also comprises power supply unit, in order to the input of the direct current of 24V and/or 12V is converted to 5V direct current to supply other unit of this control circuit.
8. the control circuit of measuring instrument as claimed in claim 1, it is characterized in that, this measuring instrument refers to the electronics measurer with data output interface.
9. the control circuit of measuring instrument as claimed in claim 8, it is characterized in that, this electronics measurer refers to dimension measuring instrument.
10. a control method for measuring instrument, is characterized in that, comprising: arrange microprocessing unit; Input block is set, is connected with this microprocessor, be electrically connected multiple entering apparatus in order to correspondence; Output unit is set, is connected with this microprocessor, be electrically connected multiple output device in order to correspondence; Testing product type setting unit is set, is connected with this microprocessor, in order to set the type of measuring instrument; Wherein, this microprocessor has serial communication interface, and this control circuit is connected by the serial communication interface of this microprocessor the detection data provided to obtain measuring instrument with measuring instrument communication.
CN201310336976.1A 2013-08-05 2013-08-05 Control circuit and method for detecting instrument Pending CN104345658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310336976.1A CN104345658A (en) 2013-08-05 2013-08-05 Control circuit and method for detecting instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310336976.1A CN104345658A (en) 2013-08-05 2013-08-05 Control circuit and method for detecting instrument

Publications (1)

Publication Number Publication Date
CN104345658A true CN104345658A (en) 2015-02-11

Family

ID=52501521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310336976.1A Pending CN104345658A (en) 2013-08-05 2013-08-05 Control circuit and method for detecting instrument

Country Status (1)

Country Link
CN (1) CN104345658A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113175905A (en) * 2021-04-29 2021-07-27 浙江陀曼云计算有限公司 Micrometer parameter self-adaptive obtaining method and system based on time sequence data fluctuation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113175905A (en) * 2021-04-29 2021-07-27 浙江陀曼云计算有限公司 Micrometer parameter self-adaptive obtaining method and system based on time sequence data fluctuation
CN113175905B (en) * 2021-04-29 2023-03-10 浙江陀曼云计算有限公司 Micrometer parameter self-adaptive obtaining method and system based on time sequence data fluctuation

Similar Documents

Publication Publication Date Title
CN104459400B (en) Detection circuit and detection method for self-tolerant touch screen
CN103675458B (en) A kind of insulation resistance and featured resistance auto testing instrument
CN104933928B (en) It is capable of the actual training device of automatic detection circuit wiring correctness
CN104198910B (en) A kind of integrated circuit automatic testing system and method for testing
CN103135268B (en) Detection device of liquid crystal display panel
CN200941158Y (en) Automatic tester for air conditioner electrical box
CN108762229A (en) A kind of detection adjustment method of autonomous driving vehicle throttle control system
CN106936496B (en) Hot plug device for multiple IIC communication devices
CN103983856A (en) Automatic detection equipment and method of low voltage differential signal interface matched resistor
CN202815143U (en) Short/open-circuit testing circuit for flexible circuit board touch screen IC channel
CN207502674U (en) A kind of new integrated circuit tester test extended channel system
CN104345658A (en) Control circuit and method for detecting instrument
CN102955096B (en) A kind of wireline test mechanism
CN206321760U (en) Relay test-device
CN103134988A (en) Multichannel value of resistance automation measuring system
CN205643583U (en) Test wire rod detecting instrument
CN205103014U (en) A detection circuitry for flow control valve among aircraft environmental control system
CN103425561A (en) VGA interface test device
CN103872899B (en) Power converter, electronic device and method for detecting output power of power converter
CN102879705B (en) Flexible circuit board touch screen IC passage is short/out of circuit test method
CN201780338U (en) Wire-to-wire capacitance testing device
CN104571085A (en) Method for automatically testing on-off input and on-off output of light rail door control system
CN207487913U (en) A kind of high-precision air tightness detection device
CN113405583A (en) Automatic test equipment for aviation board position sensor and control method
CN206639036U (en) A kind of entire car controller test fixture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150211