Summary of the invention
In order to address the above problem, the purpose of this invention is to provide a kind of survey measurements that after dead electricity, recovers automatically, to inflammable, explosive, the liquid level of poisonous substance, optical fiber half absolute value encoder that linear measurement is carried out in the thing position.
Technical scheme of the present invention is: comprising that housing, light sign indicating number become send mechanism and light code data processing module, it is characterized in that: the light sign indicating number becomes and send mechanism and light code data processing module to link together by optical fiber;
Described light sign indicating number change is sent mechanism to comprise and is installed in housing interior incremental light ink recorder structure and absolute value light ink recorder structure, and incremental light ink recorder structure links together by gear set and absolute value light ink recorder structure;
Described incremental light ink recorder structure comprises the front axle that is installed on the front-end bearing pedestal, between front-end bearing pedestal and front axle rolling bearing is installed, and the incremental code-disc places between two clamping plate, and clamping plate are fixed on the front axle; At two light path devices of front-end bearing pedestal upper fixed, two light path devices place the left and right sides of incremental code-disc, fixed grating seat between light path device and the incremental code-disc therein, fixed grating dish on the grating seat; Optical fiber passes to the light path device of left end to the continuous light beam that active device sends, and the light path device of left end is radiated on the incremental code-disc after beam cross section is amassed expansion.In incremental code-disc rotation process and under the grating acting in conjunction of grating dish, right-hand member light path device has just formed the regular physical features that illumination and unglazed photograph are arranged, and passes to the light activated element of active device by optical fiber.Produce the noble potential pulse when light activated element has illumination, produce the electronegative potential pulse during unglazed the photograph, in light code data processing module, all assign changing each time of high and low current potential as new data " 1 " and handle.Add 1 or successively decrease and subtract 1 mode and count according to the ordinal relation of incremental code-disc and grating dish grating combination to increase progressively.
Described absolute value light ink recorder structure comprises the rear axle that is installed on the rear bearing block, between rear bearing block and rear axle rolling bearing is installed, and the absolute value code-disc places between two clamping plate, and clamping plate are fixed on the rear axle; At two absolute value light paths of rear bearing block upper fixed device, two absolute value light path devices place the both sides of absolute value code-disc; Optical fiber passes to left end absolute value light path device to the continuous light beam that active device sends, and left end absolute value light path device is radiated on the absolute value code-disc after beam cross section is amassed expansion.In absolute value code-disc rotation process, under the different grating effect of logical light quantity, right-hand member absolute value light path device just formed regular strong, the low light level according to and the physical features of unglazed photograph, and pass to the light activated element of active device by optical fiber.Light activated element strong, the low light level according under produce different large and small electric currents (4-20Ma), require under different electric currents, just to have different data according to assignment, unglazed according to the time reading not, realized the absolute value attribute of mechanical location reading.
Described smooth code data processing module comprises single-chip microcomputer, and single-chip microcomputer is installed on the pcb board, and pcb board is connected with optical cable, also is provided with infrared emission transistor and infrared receiving crystal pipe on the pcb board, and the infrared emission transistor is connected with single-chip microcomputer with infrared receiving crystal pipe.
The invention has the beneficial effects as follows the coding light code data of correction increment type automatically by absolute value, lose coordinate basis point problem when having solved optical fiber incremental encoder dead electricity simultaneously.When sending a telegram here again after the dead electricity, when moving to a certain mechanical location of absolute value, absolute value data is upgraded the incremental encoder data automatically, recovers its former point data, realize the reparation data of absolute value character, improved stable operation and the convenience of whole measuring mechanism; So just realize security measurement and do not needed manually to arrive the purpose of in-site measurement.
Embodiment
The change of light sign indicating number send mechanism and light code data processing module to link together by optical fiber 44;
Described light sign indicating number becomes incremental light ink recorder structure and the absolute value light ink recorder structure that send mechanism to comprise to be installed in the housing 3, and incremental light ink recorder structure links together by gear set 31 and absolute value light ink recorder structure;
Described incremental light ink recorder structure comprises the front axle 1 that is installed on the front-end bearing pedestal, and clamping plate 22 are fixed on the front axle, and incremental code-disc 8 places between two clamping plate; At two light path devices of front-end bearing pedestal 7 upper fixed, two light path devices 6 place the both sides of incremental code-disc, fixed grating seat 10 between light path device and the incremental code-disc therein, fixed grating dish 9 on the grating seat;
Described absolute value light ink recorder structure comprises the rear axle 39 that is installed on the rear bearing block 38, and absolute value code-disc 42 places between two clamping plate, and clamping plate are fixed on the rear axle; At two light path devices of rear bearing block upper fixed, two light path devices place the both sides of absolute value code-disc;
Described smooth code data processing module comprises single-chip microcomputer 50, single-chip microcomputer is installed on the pcb board 51, pcb board is connected with optical cable 52, also is provided with infrared emission transistor 53 and infrared receiving crystal pipe 54 on the pcb board, and the infrared emission transistor is connected with single-chip microcomputer with infrared receiving crystal pipe.Described light path device 6 is made up of light path device housing 61 and light sign indicating number transmission system 62; Described light path device housing is tubular, and light sign indicating number transmission system is installed in the light path device housing; The structure of described light sign indicating number transmission system is the end that convex lens 621 are connected tail optical fiber 622, and the other end of tail optical fiber is connected with optical fiber.
The present invention is when work, and 1, No. 3 optical fiber passes to the left end light path device of I shown in Figure 1, II light path to the continuous light beam that active device sends, and left end light path device is radiated on the incremental code-disc after beam cross section is amassed expansion.In incremental code-disc rotation process and under the grating acting in conjunction of grating dish, the right-hand member light path device of I, II light path has just formed the regular physical features that illumination and unglazed photograph are arranged, and passes to the light activated element of active device by 2, No. 4 optical fiber.Produce the noble potential pulse when light activated element has illumination, produce the electronegative potential pulse during unglazed the photograph, in light code data processing module, all assign changing each time of high and low current potential as new data " 1 " and handle.Add 1 or successively decrease and subtract 1 mode and count according to the ordinal relation of incremental code-disc and grating dish grating combination to increase progressively.No. 5 optical fiber pass to the left end light path device of I light path shown in Figure 1 to the continuous light beam that active device sends, and left end light path device is radiated on the absolute value code-disc after beam cross section is amassed expansion.In absolute value code-disc rotation process, under the different grating effect of logical light quantity, the right-hand member light path device of III light path just formed regular strong, the low light level according to and the physical features of unglazed photograph, and transmit the light activated element of active devices by No. 6 optical fiber.Light activated element strong, the low light level according under produce different large and small electric currents (4-20Ma), require under different electric currents, just to have different data according to assignment, unglazed according to the time reading not, realized the absolute value attribute of mechanical location reading.
The effect of fiber optic protection cover 12 is that protection optical fiber is not damaged by its extraneous various factors.
The present invention has carried out the miniaturization design in one-piece construction, in practice maximum gauge about 80 ㎜, littler by about 50% than preliminary light sign indicating number incremental transmitter.Incremental code-disc corrosion resistant plate etching Precision Machining, make revolution that 1200-1500 reading accuracy can be arranged, approached the level of photoelectric encoder, incremental code-disc and absolute value coded data relation are recently determined with the transmission of gear set, when design different measuring scope, the ratio of gear of gear set is also just different.
In incremental encoder, adopted the grating dish structure of photoelectric encoder, its light sign indicating number clear reading degree is significantly improved, be doubled whole encoder resolution many thus.
Adopt 4-20mA formula absolute value code-disc, the width that the design of code-disc can design quantity N1~Ni grating hole of code-disc grating hole N1~Ni according to the quantity of absolute value adjusting point is different, minimum light hole induction reading electric current is 4mA, maximum light hole induction current is 20mA, each grating hole is artificial input with the absolute value data of correspondence, make the structure of this code-disc very simple, be convenient to processing and manufacturing, with low cost.
The faying face of convex lens and tail optical fiber is dustless requirement in the light path device, according to this requirement, O-ring seal is a rubber elastic material, and some organic principles in the rubber can not produce the volatilization phenomenon, can drift arrive the faying face place of tail optical fiber and convex lens after the volatilization, and influence the transmission of light beam.Interior cover I and light path body, interior cover I and interior cover II adopt spinning interference structure, guarantee the positional precision of convex lens, and spring is to guarantee that tail optical fiber has one reasonably to contact pressure with convex lens, and fastening plug screw provides pretightning force for spring.Optical fiber is responsible for the transmission of light signal.The light path device in use every group be two, one be responsible for to send light beam, one for receiving the light sign indicating number.
It is to finish light beam to send conversion and computing and processing with the electric pulse data of back light sign indicating number that the light code data is handled its major function of electronic module, and data-signal is flowed to host computer.
Optical cable is 6 core optical cables, and 1,3, No. 5 optical fiber send mechanism to send beam fiber-optic for becoming to the light sign indicating number, and 2,4, No. 6 optical fiber is light sign indicating number passback optical fiber, and the light beam of transmission is sent by infrared transmitting tube, and the light sign indicating number receives and finished by infrared receiving tube.Single-chip microcomputer is responsible for the conversion of light code data and is handled.In the process that data are handled, the present invention's key point herein be exactly 4-20mA signal data corresponding with the absolute value code-disc be according to scrambler absolute value part gamut accurately after the measurement, according to each different 4-20mA signal value of absolute value code-disc.The absolute value data that artificial assignment is arranged in single-chip microcomputer, when running into dead electricity in working order down, incremental encoder loses former reference point, when scrambler behind the power recovery ran to a certain absolute value data point, single-chip microcomputer recovered its reference point data for the incremental encoder totalizer absolute value data assignment automatically.
Referring to Fig. 4 ~ 10, the light code data is handled the electronic module electrical schematic diagram and is described as follows.
The photoelectric conversion plate effect: the function of photoelectric conversion plate is that with the infrared light that active device sends, behind light sign indicating number transmitter, the light signal of formation changes into electric signal.
Referring to Fig. 4, the explanation of the exploded view of photoelectric conversion plate:
Referring to Fig. 5 ~ 8, transmitting module opto-electronic conversion partitioned signal amplification filtering partly illustrates:
Direction is judged the forward signal amplifying circuit by U1, the U2 operational amplifier.R4 ~ R7, and C1 is the peripheral assembly of amplifying circuit.D4 is that active device is with equaling infrared receiving tube.Light signal changes into electric signal through D4, and by U1, U2 amplifies, output signal V01.
Direction is judged the reverse signal amplifying circuit by U3, the U4 operational amplifier.R8 ~ R11, and C2 is that the peripheral group D5 of amplifying circuit is that active device is with equaling infrared receiving tube.Light signal changes into electric signal through D5, and passes through
U3, U4 amplifies, output signal V02.
The former reason U5 of corrected signal amplifying circuit, the U6 operational amplifier.R12 ~ R15, and C3 is the peripheral assembly of amplifying circuit.D6 is that active device is with equaling infrared receiving tube.Light signal changes into electric signal through D6, and by U5, U6 amplifies, output signal V03.
Referring to Fig. 9, transmitting module mainboard figure explanation:
The effect of mainboard: mainboard receives the data that opto-electronic conversion is passed back, handles.Have two kinds of signal outputs of RS485 and 4 ~ 20mA simultaneously.
Referring to Figure 10, mainboard CUP and the explanation of periphery circuit:
Mainboard CPU part: CUP part by U5 MSP430 single-chip microcomputer and, Y1, the Y2 crystal oscillator, C4 ~ C7, C13 resonant capacitance and filter capacitor are formed.
The transmitting module data processing principle: after transmitting module powers on, by the active device D1 of photoelectricity reformer plate, D2, D3 produces three groups of infrared lights, is sent to light sign indicating number transmitter by optical fiber.Through producing 3 groups of light coded signals behind the code-disc on the light sign indicating number transmitter, preceding two groups of light coded signals are count signal, and the 3rd group of signal returns zero-signal for the modifying factor power down.Preceding two groups of signals are got back to photoelectric conversion plate by optical fiber, and by the active device D4 on the photoelectric conversion plate, D5 receives, and changes into electric signal.U1 on the process photoelectric conversion plate, the U2 operational amplifier.R4 ~ R7, and the amplifying circuit of C1 composition.And U3, the U4 operational amplifier.R8 ~ R11, and the amplifying circuit that C2 forms is exported 2 groups of electric signal V01 and V02 after the amplification.V01 and V02 enter single-chip microcomputer, work as V01, and V02 produces high level transmitting module data value and adds 1, otherwise subtracts 1.Realize adding up and successively decreasing of data.The 3rd group of electric signal, the 2nd special code-disc through light sign indicating number transmitter (has 6 apertures on the code-disc, be evenly distributed on the code-disc, the aperture of each aperture enlarges gradually, infrared light supply is grown from weak to strong be divided into 6 nodes), the 3rd group of light source got back to photoelectric conversion plate by optical fiber, received by the active device D6 on the photoelectric conversion plate, change into electric signal, because corresponding magnitude of voltage of the intensity of light source of each node, so just obtain 6 magnitudes of voltage when the 2nd code-disc turns around, magnitude of voltage is through U5, U6 operational amplifier.R12 ~ R15, and the magnitude of voltage V03 after 6 amplifications of amplifying circuit output of C3 composition, V03 enters 6 range values in the corresponding gamut of single-chip microcomputer.Transmitting module because of unexpected power down after, re-power when back.Because of the characteristics of incremental encoder, data are returned zero and are counted again.When the 2nd code-disc of scrambler forwarded in 6 nodes one of them to, correspondence obtained corresponding magnitude of voltage, after single-chip microcomputer obtains magnitude of voltage, obtains corresponding output range value.Single-chip microcomputer is revised existing range after obtaining the range value, obtains real range value.
4-20mA absolute value code-disc, grating hole N1 on the code-disc-Ni is an ascending change procedure, N1 is the minimum light signal that III light path device can receive, Ni is the maximum light signal that III light path device can receive, minimum light signal last data-signal in circuit is 4mA, maximum light signal last data-signal in circuit is 20mA, the scope of the data value of 4-20mA will be determined according to the concrete technical indicator of place testing agency, the i of Ni is the quantity in grating hole, quantity too much increases the manufacture difficulty of code-disc, the very few purpose that can not reach timely reparation incremental encoder Data Base point data again, how many Ni will decide according to the attribute specification of concrete measuring mechanism and measured matter, also can require decide according to different industries.Grating hole N1-the width dimensions of Ni is to set according to the sensing capability of circuit, be complementary with the design of circuit.Consider that when selecting light activated element the grating Kongzui is little of maximum logical light quantity, minimum grating hole should have the electric current that produces 4mA, maximum grating hole should have the current capacity that produces 20mA, we for this reason and specialized designs is made the testing table of a special use drawing absolute value code-disc N1-the width value in the grating hole of Ni in the test test.
In the work operational process of absolute value code-disc, be once ascending to little process by the single reading process in each grating hole of reason of mechanism, each reading is the reading when the logical light value of the maximum in grating hole at that time.This process is controlled by the program of single-chip microcomputer.
Because the reading of each absolute value of 4-20mA absolute value code-disc exists certain error with accurate mechanical location data, this error is to be determined by the attribute of signal, still can't be its control in reasonable range under modern means of science and technology, this just give realize mechanical type accurately absolute value data brought higher difficulty, we have taked the data processing method of " peek assignment method " to reach the accuracy requirement of absolute value data in order to realize this goal.Basic logical relation is as follows:
IF 0≥A≤X1
G=P1
IF T1≥A≤X2
G=P2
﹕
﹕
IF Ti≥A≤Xi
A in the G=Pi formula-4-20mA reading value
The peaked maximum number of X1-i-each reading in grating hole
The peaked minimum number of T1-i-each reading in grating hole
G-system's reparation absolute value data
P1-i-manually import absolute value data
T has two to the effect of the numerical range of X: the one, prevent 4-20mA data because a variety of causes data occur and do not go up continuously, the 2nd, make absolute value data that a rational accuracy rating be arranged, the more little precision of scope is more high, otherwise more low, can adjust according to different accuracy requirements.