CN204392210U - A kind of code signal change-over circuit - Google Patents
A kind of code signal change-over circuit Download PDFInfo
- Publication number
- CN204392210U CN204392210U CN201520124948.8U CN201520124948U CN204392210U CN 204392210 U CN204392210 U CN 204392210U CN 201520124948 U CN201520124948 U CN 201520124948U CN 204392210 U CN204392210 U CN 204392210U
- Authority
- CN
- China
- Prior art keywords
- signal
- circuit
- magnetic encoder
- pulse
- flip
- 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
Links
- 238000007493 shaping process Methods 0.000 claims abstract description 33
- 238000006243 chemical reaction Methods 0.000 claims abstract description 24
- 230000008878 coupling Effects 0.000 claims abstract description 8
- 238000010168 coupling process Methods 0.000 claims abstract description 8
- 238000005859 coupling reaction Methods 0.000 claims abstract description 8
- 238000001514 detection method Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 12
- 230000003287 optical effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 16
- 238000012360 testing method Methods 0.000 description 6
- 238000013461 design Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 239000013256 coordination polymer Substances 0.000 description 3
- 239000011521 glass Substances 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 239000002184 metal Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005553 drilling Methods 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004033 plastic Substances 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Landscapes
- Transmission And Conversion Of Sensor Element Output (AREA)
Abstract
本实用新型公开了一种编码信号转换电路,至少包括:电源电路、整形电路、脉冲宽度调整电路、磁性编码器模拟电路;其中,分别与整形电路、脉冲宽度调整电路以及磁性编码器模拟电路相连的电源电路,用于为编码信号转换电路供电;用于对输入的光电编码器信号进行整形的整形电路,将整形后的两路方波信号输出给脉冲宽度调整电路;用于对整形后的信号做二分频处理的脉冲宽度调整电路,其输出端与磁性编码器模拟电路相连;用于对脉冲宽度调整电路处理后的信号进行耦合和分压的磁性编码器模拟电路,耦合和分压后的信号输出磁性编码器信号。本实用新型能够采集两路光电编码器信号并转换为磁性编码器信号。
The utility model discloses a coded signal conversion circuit, which at least includes: a power supply circuit, a shaping circuit, a pulse width adjusting circuit, and a magnetic encoder analog circuit; wherein, the shaping circuit, the pulse width adjusting circuit, and the magnetic encoder analog circuit are respectively connected. The power supply circuit is used to supply power to the encoding signal conversion circuit; the shaping circuit is used to shape the input photoelectric encoder signal, and outputs the shaped two-way square wave signal to the pulse width adjustment circuit; it is used to shape the shaped signal. A pulse width adjustment circuit for signal frequency division by two, and its output terminal is connected to a magnetic encoder analog circuit; a magnetic encoder analog circuit for coupling and voltage division of the signal processed by the pulse width adjustment circuit, coupling and voltage division The final signal outputs the magnetic encoder signal. The utility model can collect two-way photoelectric encoder signals and convert them into magnetic encoder signals.
Description
技术领域technical field
本实用新型涉及数据信号转换电路技术,尤指一种编码信号转换电路。The utility model relates to a data signal conversion circuit technology, in particular to a coding signal conversion circuit.
背景技术Background technique
目前测井时采用的深度传感器使用的编码器有两种:光电编码器和磁性编码器,两种编码器性能各有优劣,光电编码器最主要的特点是分辨率高,其分辨率可达0.5毫米,而一般的磁性编码器分辨率在0.5厘米左右,光电编码器的精度比磁性编码器高出了一个数量级,因此可以实现高精度的深度跟踪。在半潜式平台上,光电编码器的应用更为普遍。At present, there are two types of encoders used in depth sensors used in well logging: photoelectric encoders and magnetic encoders. The performances of the two encoders have their own advantages and disadvantages. The resolution of the general magnetic encoder is about 0.5 cm, and the accuracy of the photoelectric encoder is an order of magnitude higher than that of the magnetic encoder, so it can achieve high-precision depth tracking. On semi-submersible platforms, the application of photoelectric encoders is more common.
例如,现有技术中哈里伯顿的信息技术与工程集成系统(Integrated System for Information Technology and Engineering,简称Insite)的传感器信号采集箱为栅栏箱(BarrierBox),其硬件上设计了4路深度信号处理电路,但实际应用中发现深度轮(DepthWheel,简称DW)4信号无法采集,究其原因,是Insite系统主机在软硬件设计上没有对BarrierBox的DW4信号进行采集。For example, in the prior art, the sensor signal acquisition box of Halliburton's Integrated System for Information Technology and Engineering (Insite) is a barrier box (BarrierBox), and its hardware is designed with 4 channels of deep signal processing However, in practical applications, it is found that the DepthWheel (DW) 4 signal cannot be collected. The reason is that the Insite system host does not collect the DW4 signal of the BarrierBox in terms of software and hardware design.
BarrierBox的#1DW和#2DW作为磁性编码器信号计数,而#3DW和#4DW作为光电编码器信号计数,由于两种编码器的原理不近相同,因此采集电路不能混用。#1DW and #2DW of BarrierBox are used as magnetic encoder signals to count, while #3DW and #4DW are used as photoelectric encoder signals to count. Since the principles of the two encoders are not nearly the same, the acquisition circuits cannot be mixed.
光电编码器是由一个中心有轴的光电码盘,其上有环形通暗的刻线,有光电发射和接收器件读取并获得信号的一类传感器,主要用来测量位移或角度。The photoelectric encoder is a type of sensor with a photoelectric code disc with a central shaft, on which there is a ring-shaped dark and dark line, and a photoelectric emitting and receiving device to read and obtain signals. It is mainly used to measure displacement or angle.
光电编码器码盘的材料有玻璃、金属、塑料,玻璃码盘是在玻璃上沉积很薄的刻线,金属码盘直接以通和不通刻线。而磁电式编码器采用磁电式设计,通过磁感应器件、利用磁场的变化来产生和提供转子的绝对位置,利用磁器件代替了传统的码盘。The material of the photoelectric encoder code disc is glass, metal, and plastic. The glass code disc deposits very thin reticles on the glass, and the metal code disc is directly marked with pass and no pass. The magnetoelectric encoder adopts a magnetoelectric design, which generates and provides the absolute position of the rotor through magnetic induction devices and changes in the magnetic field, and uses magnetic devices to replace the traditional code disc.
两种编码器在电路接口的设计上也有所区别:两种编码器均为四线制,其中磁性编码器的接线分别为接线A+、接线A-、接线B+、接线B-,而光电编码器的接线为+5V电源线、地线GND、接线A、接线B。The design of the circuit interface of the two encoders is also different: the two encoders are four-wire system, and the wiring of the magnetic encoder is wiring A+, wiring A-, wiring B+, wiring B-, while the photoelectric encoder The wiring is +5V power line, ground wire GND, wiring A, wiring B.
由于现有技术中采用的设备一般只有一路光电编码信号采集电路可用,无法同时跟踪主深度(Block)和补偿深度(Riser),因此不能精确的完成半潜式平台的深度跟踪,使光电编码器精度高的特点无从发挥。Since the equipment used in the prior art generally only has one photoelectric encoding signal acquisition circuit available, it cannot track the main depth (Block) and the compensation depth (Riser) at the same time, so the depth tracking of the semi-submersible platform cannot be accurately completed, so that the photoelectric encoder The characteristics of high precision cannot be brought into play.
实用新型内容Utility model content
为了解决上述技术问题,本实用新型提供了一种编码信号转换电路,能够采集两路光电编码信号,并对光电编码器信号进行转换,改善现有设备只有一路光电编码信号采集电路可用的情况,从而精确的完成半潜式平台的深度跟踪。In order to solve the above-mentioned technical problems, the utility model provides a coding signal conversion circuit, which can collect two photoelectric coding signals and convert the photoelectric encoder signals, so as to improve the situation that only one photoelectric coding signal acquisition circuit is available in the existing equipment. So as to accurately complete the depth tracking of the semi-submersible platform.
为了达到本发明目的,本实用新型提供的一种编码信号转换电路至少包括:In order to achieve the purpose of the present invention, a coded signal conversion circuit provided by the utility model at least includes:
电源电路、整形电路、脉冲宽度调整电路、磁性编码器模拟电路;其中,Power supply circuit, shaping circuit, pulse width adjustment circuit, magnetic encoder simulation circuit; among them,
分别与整形电路、脉冲宽度调整电路以及磁性编码器模拟电路相连的电源电路,用于为编码信号转换电路供电;A power supply circuit connected to the shaping circuit, the pulse width adjustment circuit and the magnetic encoder analog circuit respectively, for supplying power to the encoding signal conversion circuit;
用于对输入的光电编码器信号进行整形的整形电路,将整形后的两路方波信号输出给脉冲宽度调整电路;A shaping circuit for shaping the input photoelectric encoder signal, and output the shaped two-way square wave signal to the pulse width adjustment circuit;
用于对整形后的信号做二分频处理的脉冲宽度调整电路,其输出端与磁性编码器模拟电路相连;A pulse width adjustment circuit for performing frequency division by two on the shaped signal, the output end of which is connected to the analog circuit of the magnetic encoder;
用于对脉冲宽度调整电路处理后的信号进行耦合和分压的磁性编码器模拟电路,耦合和分压后的信号输出磁性编码器信号。The magnetic encoder analog circuit is used to couple and divide the signal processed by the pulse width adjustment circuit, and the coupled and divided signal outputs the magnetic encoder signal.
可选地,本实用新型还包括鉴相电路,所述鉴相电路输入端与所述脉冲宽度调整电路输出端相连,所述鉴相电路输出端分别输出正向脉冲信号和反向脉冲信号,所述鉴相电路还与所述电源电路相连。Optionally, the utility model also includes a phase detection circuit, the input end of the phase detection circuit is connected to the output end of the pulse width adjustment circuit, and the output end of the phase detection circuit outputs a forward pulse signal and a reverse pulse signal respectively, The phase detection circuit is also connected with the power supply circuit.
可选地,所述电源电路包括降压元件,所述降压元件的输入电压为+16V,输出电压为+5V。Optionally, the power supply circuit includes a step-down element, the input voltage of the step-down element is +16V, and the output voltage is +5V.
可选地,所述降压元件为LM7805。Optionally, the step-down element is LM7805.
可选地,所述整形电路包括上拉电阻Ra、上拉电阻Rb、第一触发器以及第二触发器,所述输入的光电编码器信号包括光电编码器信号的脉冲信号A和脉冲信号B,所述脉冲信号A同时与上拉电阻Ra的一端以及第一触发器的输入端相连,所述脉冲信号B同时与上拉电阻Rb的一端以及第二触发器的输入端相连,所述整形电路的输出信号为与输入信号反向的两路方波信号。Optionally, the shaping circuit includes a pull-up resistor Ra, a pull-up resistor Rb, a first trigger and a second trigger, and the input photoelectric encoder signal includes pulse signal A and pulse signal B of the photoelectric encoder signal , the pulse signal A is connected to one end of the pull-up resistor Ra and the input end of the first flip-flop at the same time, the pulse signal B is connected to one end of the pull-up resistor Rb and the input end of the second flip-flop at the same time, and the shaping The output signal of the circuit is two-way square wave signal which is opposite to the input signal.
可选地,所述第一触发器和所述第二触发器为施密特触发器74LS14。Optionally, the first flip-flop and the second flip-flop are Schmitt triggers 74LS14.
可选地,所述脉冲宽度调整电路包括对所述方波信号进行二分频处理的计数器元件。Optionally, the pulse width adjustment circuit includes a counter element that divides the square wave signal by two.
可选地,所述计数器元件为74LS193。Optionally, the counter element is 74LS193.
可选地,所述鉴相电路包括D触发器以及第一与非门和第二与非门,所述D触发器的第一输入端、所述脉冲信号A经整形、分频处理后的脉冲信号A处理信号以及所述第一与非门的一输入端互相连接,所述第一与非门的另一输入端与所述D触发器的1Q输出端相连;所述D触发器的时钟输入端、所述脉冲信号B经整形、分频处理后的脉冲信号B处理信号以及所述第二与非门的一输入端互相连接,所述第二与非门的另一输入端与所述D触发器的1Q非输出端相连;第一与非门和第二与非门的输出信号分别为正向脉冲信号和反向脉冲信号。Optionally, the phase detection circuit includes a D flip-flop, a first NAND gate and a second NAND gate, the first input terminal of the D flip-flop, the shaped and frequency-divided pulse signal A The pulse signal A processing signal and one input end of the first NAND gate are connected to each other, and the other input end of the first NAND gate is connected to the 1Q output end of the D flip-flop; the D flip-flop The clock input terminal, the pulse signal B processed by shaping and frequency-dividing the processed signal of the pulse signal B, and one input terminal of the second NAND gate are connected to each other, and the other input terminal of the second NAND gate is connected to The 1Q non-output terminal of the D flip-flop is connected; the output signals of the first NAND gate and the second NAND gate are forward pulse signal and reverse pulse signal respectively.
可选地,所述磁性编码器模拟电路包括光耦合器、负载电阻和与负载电阻并联的并联电阻,所述光耦合器的初级连接所述脉冲信号A处理信号和脉冲信号B处理信号,所述光耦合器的次级连接负载电阻以及与负载电阻并联的并联电阻,所述磁性编码器模拟电路的输出信号连接磁性编码器的两个接线端B+和B-。Optionally, the magnetic encoder analog circuit includes an optocoupler, a load resistor and a parallel resistor connected in parallel with the load resistor, the primary of the optocoupler is connected to the pulse signal A processing signal and the pulse signal B processing signal, so The secondary of the optocoupler is connected to the load resistor and the parallel resistor connected in parallel with the load resistor, and the output signal of the magnetic encoder analog circuit is connected to the two terminals B+ and B- of the magnetic encoder.
与现有技术相比,本实用新型至少包括电源电路、整形电路、脉冲宽度调整电路、磁性编码器模拟电路;其中,电源电路,用于为编码信号转换电路供电,分别与整形电路、脉冲宽度调整电路以及磁性编码器模拟电路相连;整形电路,用于对输入的光电编码器信号进行整形,将整形后的两路方波信号输出给脉冲宽度调整电路;脉冲宽度调整电路,用于对整形后的信号做二分频处理,处理后的信号频率变为原信号的1/2,占空比调整为50%,其输出端与磁性编码器模拟电路相连;磁性编码器模拟电路,用于将脉冲宽度调整电路处理后的信号经过耦合和分压后,输出磁性编码器信号。本实用新型由于将采集的两路光电编码器信号经整形电路整形,再经脉冲宽度调整电路做二分频处理,最后通过磁性编码器模拟电路的耦合和分压,输出两路磁性编码器信号。本实用新型将光电编码器信号进行转换,可将光电编码器信号转换为磁性编码器信号,使得系统实现了双路光电编码信号的采集,从而能够精确的完成半潜式平台的深度跟踪。Compared with the prior art, the utility model at least includes a power supply circuit, a shaping circuit, a pulse width adjustment circuit, and a magnetic encoder analog circuit; wherein, the power supply circuit is used to supply power to the coded signal conversion circuit, and is respectively connected with the shaping circuit, the pulse width The adjustment circuit is connected with the analog circuit of the magnetic encoder; the shaping circuit is used to shape the input photoelectric encoder signal, and outputs the shaped two-way square wave signal to the pulse width adjustment circuit; the pulse width adjustment circuit is used for shaping After the signal is divided by two, the frequency of the processed signal becomes 1/2 of the original signal, the duty cycle is adjusted to 50%, and its output terminal is connected with the magnetic encoder analog circuit; the magnetic encoder analog circuit is used for After the signal processed by the pulse width adjustment circuit is coupled and divided, the magnetic encoder signal is output. In the utility model, the collected two-way photoelectric encoder signals are reshaped by the shaping circuit, and then the pulse width adjustment circuit is used for two-way frequency division processing, and finally the two-way magnetic encoder signals are output through the coupling and voltage division of the magnetic encoder analog circuit. . The utility model converts the photoelectric encoder signal, which can convert the photoelectric encoder signal into a magnetic encoder signal, so that the system realizes the acquisition of dual-channel photoelectric encoding signals, thereby accurately completing the depth tracking of the semi-submersible platform.
本实用新型的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本实用新型而了解。本实用新型的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the following description, and, in part, will be apparent from the description, or can be learned by practicing the present invention. The objectives and other advantages of the utility model can be realized and obtained by the structures particularly pointed out in the specification, claims and accompanying drawings.
附图说明Description of drawings
附图用来提供对本实用新型技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本实用新型的技术方案,并不构成对本实用新型技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the utility model, and constitute a part of the description, together with the embodiments of the application, are used to explain the technical solution of the utility model, and do not constitute a limitation to the technical solution of the utility model.
图1为本实用新型一实施例的编码信号转换电路的原理框图;Fig. 1 is the functional block diagram of the encoded signal conversion circuit of an embodiment of the present invention;
图2为本实用新型另一实施例的的编码信号转换电路的原理框图;Fig. 2 is the functional block diagram of the encoded signal conversion circuit of another embodiment of the present invention;
图3为本实用新型实施例中的电源电路的原理图;Fig. 3 is the schematic diagram of the power supply circuit in the utility model embodiment;
图4为本实用新型实施例中的整形电路的原理图;Fig. 4 is the schematic diagram of the shaping circuit in the utility model embodiment;
图5为本实用新型实施例中的施密特触发器功能示意图;Fig. 5 is the functional schematic diagram of the Schmitt trigger in the utility model embodiment;
图6为本实用新型实施例中的脉冲宽度调整电路的原理图;6 is a schematic diagram of a pulse width adjustment circuit in an embodiment of the present invention;
图7为本实用新型实施例中的鉴相电路的原理图;Fig. 7 is the schematic diagram of the phase detection circuit in the utility model embodiment;
图8为本实用新型实施例中的磁性编码器模拟电路的原理图。Fig. 8 is a schematic diagram of the analog circuit of the magnetic encoder in the embodiment of the present invention.
具体实施方式Detailed ways
为使本实用新型的目的、技术方案和优点更加清楚明白,下文中将结合附图对本实用新型的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solutions and advantages of the present utility model clearer, the embodiments of the present utility model will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
图1为本实用新型一实施例的编码信号转换电路的原理框图,如图1所示,本实用新型编码信号转换电路至少包括:电源电路101、整形电路102、脉冲宽度调整电路103、磁性编码器模拟电路104;其中,Fig. 1 is the functional block diagram of the coding signal conversion circuit of one embodiment of the utility model, as shown in Fig. The device analog circuit 104; wherein,
电源电路101,用于为编码信号转换电路供电,分别与整形电路102、脉冲宽度调整电路103以及磁性编码器模拟电路104相连;The power supply circuit 101 is used to supply power to the encoding signal conversion circuit, and is respectively connected to the shaping circuit 102, the pulse width adjustment circuit 103 and the magnetic encoder analog circuit 104;
整形电路102,用于对输入的光电编码器信号进行整形,将整形后的两路方波信号输出给脉冲宽度调整电路103;The shaping circuit 102 is used to shape the input photoelectric encoder signal, and output the shaped two-way square wave signal to the pulse width adjustment circuit 103;
脉冲宽度调整电路103,用于对整形后的信号做二分频处理,处理后的信号频率变为原信号的1/2,占空比调整为50%,其输出端与磁性编码器模拟电路104相连;The pulse width adjustment circuit 103 is used to divide the frequency by two on the signal after shaping, the frequency of the processed signal becomes 1/2 of the original signal, and the duty cycle is adjusted to 50%. Its output terminal is connected with the magnetic encoder analog circuit 104 connected;
磁性编码器模拟电路104,用于将脉冲宽度调整电路103处理后的信号经过耦合和分压后,输出磁性编码器信号。该信号输入到现有设备的采集电路,从而被现有设备接收。The magnetic encoder analog circuit 104 is used to couple and divide the signal processed by the pulse width adjustment circuit 103 to output the magnetic encoder signal. The signal is input to the acquisition circuit of the existing equipment, thereby being received by the existing equipment.
本实用新型实施例中,由于将采集的两路光电编码器信号经整形电路整形,再经脉冲宽度调整电路做二分频处理,最后通过磁性编码器模拟电路的耦合和分压,输出两路磁性编码器信号,实现了同时采集两路光电编码器信号,将光电编码器信号转换为磁性编码器信号,从而能够通过磁性编码器信号采集电路进行深度数据的转换和采集。In the embodiment of the utility model, since the collected two-way photoelectric encoder signals are shaped by the shaping circuit, and then processed by the pulse width adjustment circuit for two-way frequency division, and finally through the coupling and voltage division of the magnetic encoder analog circuit, the output two-way The magnetic encoder signal realizes the acquisition of two photoelectric encoder signals at the same time, and converts the photoelectric encoder signal into a magnetic encoder signal, so that the depth data can be converted and collected through the magnetic encoder signal acquisition circuit.
图2为本实用新型另一实施例的编码信号转换电路的原理框图,如图2所示,进一步的,本实用新型还包括鉴相电路201,用于检测整个电路的工作情况,鉴相电路201输入端与脉冲宽度调整电路103输出端相连,鉴相电路201输出端分别输出正向脉冲信号和反向脉冲信号,鉴相电路201还与电源电路101相连,以获取工作电源。Fig. 2 is the functional block diagram of the coded signal conversion circuit of another embodiment of the utility model, as shown in Fig. 2, further, the utility model also comprises phase detection circuit 201, is used for detecting the working condition of whole circuit, phase detection circuit The input end of 201 is connected with the output end of pulse width adjustment circuit 103, the output end of phase detection circuit 201 outputs forward pulse signal and reverse pulse signal respectively, and phase detection circuit 201 is also connected with power supply circuit 101 to obtain working power.
图3为本实用新型实施例中的电源电路的原理图,进一步地,如图3所示,电源电路101包括降压元件301,降压元件301的输入电压IN为+16V,输出电压OUT为+5V。Fig. 3 is the schematic diagram of the power supply circuit in the embodiment of the utility model, further, as shown in Fig. 3, the power supply circuit 101 comprises step-down element 301, and the input voltage IN of step-down element 301 is +16V, and the output voltage OUT is +5V.
可选地,降压元件301例如为美国国家半导体公司(NationalSemiconductor)的LM7805。在一个实施例中,电源电路101采用现有设备的+16V作为电源输入,然后经过LM7805降压输出+5V作为系统电源。Optionally, the step-down element 301 is, for example, the LM7805 of National Semiconductor. In one embodiment, the power supply circuit 101 uses +16V of the existing equipment as the power input, and then outputs +5V through the LM7805 as the system power supply.
图4为本实用新型实施例中的整形电路的原理图,如图4所示,整形电路102包括上拉电阻Ra、上拉电阻Rb、第一触发器401以及第二触发器402,输入的光电编码器信号包括光电编码器信号的脉冲信号A和脉冲信号B。其中,脉冲信号A同时与上拉电阻Ra的一端以及第一触发器401的输入端相连,脉冲信号B同时与上拉电阻Rb的一端以及第二触发器402的输入端相连,整形电路102的输出信号为与输入信号反向的两路方波信号。Fig. 4 is the schematic diagram of the shaping circuit in the embodiment of the utility model, as shown in Fig. 4, shaping circuit 102 comprises pull-up resistor Ra, pull-up resistor Rb, first flip-flop 401 and second flip-flop 402, input The photoelectric encoder signal includes pulse signal A and pulse signal B of the photoelectric encoder signal. Wherein, the pulse signal A is connected with one end of the pull-up resistor Ra and the input end of the first flip-flop 401 at the same time, and the pulse signal B is connected with one end of the pull-up resistor Rb and the input end of the second flip-flop 402 at the same time, and the shaping circuit 102 The output signal is two-way square wave signal opposite to the input signal.
可选地,第一触发器401和第二触发器402为施密特触发器,例如为摩托罗拉(MOTOROLA)公司的74LS14。图5为本实用新型实施例中的施密特触发器功能示意图,如图5所示,采用施密特触发器74LS14对初始输入的光电信号input进行整形,使之输出规整的方波信号output。施密特触发器也有两个稳定状态,但与一般触发器不同的是,施密特触发器采用电位触发方式,其状态由输入信号电位维持;对于负向递减和正向递增两种不同变化方向的输入信号,施密特触发器有不同的阀值电压VT-和VT+。Optionally, the first flip-flop 401 and the second flip-flop 402 are Schmitt triggers, such as 74LS14 of Motorola (MOTOROLA). Fig. 5 is a functional schematic diagram of the Schmitt trigger in the embodiment of the present invention. As shown in Fig. 5, a Schmitt trigger 74LS14 is used to shape the initial input photoelectric signal input to make it output a regular square wave signal output . The Schmitt trigger also has two stable states, but unlike the general trigger, the Schmitt trigger adopts the potential trigger mode, and its state is maintained by the input signal potential; for two different directions of negative decreasing and positive increasing For the input signal, the Schmitt trigger has different threshold voltages V T- and V T+ .
在模拟软件环境下对该电路进行软件仿真,输入输出能达到设计要求。In the simulation software environment, the circuit is simulated by software, and the input and output can meet the design requirements.
图6为本实用新型实施例中的脉冲宽度调整电路的原理图,脉冲宽度调整电路103包括两套电路,每套电路包括一个计数器元件,分别对两路方波信号进行二分频处理,如图6所示,其中一套电路包括对一路方波信号进行二分频处理的计数器元件601。Fig. 6 is the schematic diagram of the pulse width adjustment circuit in the embodiment of the present invention, the pulse width adjustment circuit 103 comprises two sets of circuits, each set of circuits comprises a counter element, respectively carries out two-way frequency division processing to the two-way square wave signal, as As shown in FIG. 6 , one set of circuits includes a counter element 601 for frequency-dividing one channel of square wave signal by two.
可选地,计数器元件601例如为摩托罗拉公司的74LS193。两个计数器元件可选同型号器件。Optionally, the counter element 601 is, for example, 74LS193 of Motorola. The two counter elements can be selected from the same model.
具体的,在实际情况中,脉冲信号由于频率过高,脉冲宽度较窄,当脉冲信号产生畸变后,很容易导致数字信号处理器在处理脉冲信号时无法正确的分辨脉冲信号A和脉冲信号B的相位,使深度跟踪的方向出现误差。因此调整脉冲宽度,达到理想的占空比很有必要。在一个实施例中,利用计数器74LS193对信号做二分频处理,处理后的信号频率变为原信号的1/2,占空比调整为50%,虽然导致深度信号的分辨率下降了50%,但在追求稳定的前提下在可接受范围内降低分辨率是必要的。Specifically, in actual situations, the pulse signal is too high in frequency and the pulse width is narrow. When the pulse signal is distorted, it is easy for the digital signal processor to be unable to correctly distinguish between pulse signal A and pulse signal B when processing the pulse signal. The phase of , so that the direction of depth tracking error. Therefore, it is necessary to adjust the pulse width to achieve an ideal duty cycle. In one embodiment, the counter 74LS193 is used to divide the signal by two, the frequency of the processed signal becomes 1/2 of the original signal, and the duty cycle is adjusted to 50%, although the resolution of the depth signal is reduced by 50% , but it is necessary to reduce the resolution within an acceptable range under the premise of pursuing stability.
在模拟软件中可以看到,脉冲信号经过二分频后可得到占空比50%,波形非常理想的方波信号。It can be seen in the simulation software that after the pulse signal is divided by two, a square wave signal with a duty cycle of 50% and a very ideal waveform can be obtained.
图7为本实用新型实施例中的鉴相电路的原理图,如图7所示,鉴相电路201包括D触发器701以及第一与非门702和第二与非门703,D触发器701的第一输入端1D、脉冲信号A经整形、分频处理后的脉冲信号A处理信号以及第一与非门702的一输入端1互相连接,第一与非门702的另一输入端2与D触发器701的1Q输出端相连;D触发器701的时钟输入端CP、脉冲信号B经整形、分频处理后的脉冲信号B处理信号以及第二与非门703的一输入端5互相连接,第二与非门703的另一输入端4与D触发器701的1Q非输出端相连;第一与非门702输出端3和第二与非门703输出端6的输出信号分别为正向脉冲信号和反向脉冲信号,该正向脉冲信号和反向脉冲信号输出端分别为两个测试点。Fig. 7 is the schematic diagram of the phase detector circuit in the utility model embodiment, as shown in Fig. 7, phase detector circuit 201 comprises D flip-flop 701 and first NAND gate 702 and second NAND gate 703, D flip-flop The first input terminal 1D of 701, the pulse signal A processed signal after shaping and frequency division of the pulse signal A, and an input terminal 1 of the first NAND gate 702 are connected to each other, and the other input terminal of the first NAND gate 702 2 connected to the 1Q output terminal of the D flip-flop 701; the clock input terminal CP of the D flip-flop 701, the pulse signal B processed by shaping and frequency division of the pulse signal B, and an input terminal 5 of the second NAND gate 703 The other input terminal 4 of the second NAND gate 703 is connected with the 1Q non-output terminal of the D flip-flop 701; the output signals of the first NAND gate 702 output terminal 3 and the second NAND gate 703 output terminal 6 are respectively It is a forward pulse signal and a reverse pulse signal, and the output terminals of the forward pulse signal and the reverse pulse signal are respectively two test points.
该电路由D触发器701和两个与非门组成,通过查看测试点的波形可作编码器旋转方向的判断。检查电路时,通过单方向旋转编码器,查看鉴相电路是否工作正常,以此来检测整个电路的工作情况。The circuit is composed of D flip-flop 701 and two NAND gates, and the rotation direction of the encoder can be judged by looking at the waveform of the test point. When checking the circuit, check whether the phase detection circuit is working normally by rotating the encoder in one direction, so as to detect the working condition of the whole circuit.
具体实现原理如下:D触发器使用时,还包括预置端SD和清零端RD,SD和RD端置于高电平,此时当CP端上升沿到来时将D端状态达到输出端Q端口。如下表1为D触发器功能表。The specific implementation principle is as follows: when the D flip-flop is used, it also includes the preset terminal SD and the clear terminal RD, and the SD and RD terminals are set at high level. At this time, when the rising edge of the CP terminal arrives, the state of the D terminal reaches the output terminal Q port. Table 1 below is the D flip-flop function table.
表1Table 1
表1中,H为高电平,L为低电平,时钟边沿为由低到高CP转换,Qn+1为下一个由低到高时钟转换后的状态。In Table 1, H is high level, L is low level, the clock edge is the transition from low to high CP, and Qn+1 is the state after the next transition from low to high clock.
与非门作为逻辑单元,其真值表如下表2,只有当脉冲信号A端和脉冲信号B端同时输入低电平时,输出端Z为低,否则为高电平。The NAND gate is used as a logic unit, and its truth table is shown in Table 2. Only when the pulse signal A terminal and the pulse signal B terminal input low level at the same time, the output terminal Z is low, otherwise it is high level.
表2Table 2
脉冲信号B作为D触发器的时钟信号,脉冲信号A作为数据输入,当编码器正转时,脉冲信号A相位超前于脉冲信号B,使Q1端输出高电平,同时端输出低电平;Q1端与脉冲信号A相与,从与非门输出增量脉冲。而由于端为低电平,与非门输出低电平,没有脉冲输出。上述信号可以作为编码器正反转的方向指示信号,方向信号与脉冲信号A、脉冲信号B分别通过两个与非门,这样在编码器正转时,只能在脉冲信号A测试点检测到脉冲而脉冲信号B测试点没有脉冲,反之脉冲信号B测试点有信号,而脉冲信号A测试点无信号。通过检测这两点的信号输出情况,可以检验整个系统工作是否正常。The pulse signal B is used as the clock signal of the D flip-flop, and the pulse signal A is used as the data input. When the encoder rotates forward, the phase of the pulse signal A is ahead of the pulse signal B, so that the Q1 terminal outputs a high level, and at the same time The terminal outputs a low level; the Q1 terminal is ANDed with the pulse signal A, and the incremental pulse is output from the NAND gate. And because of The terminal is low level, the NAND gate outputs low level, and there is no pulse output. The above signal can be used as the direction indication signal for the forward and reverse rotation of the encoder. The direction signal, pulse signal A, and pulse signal B respectively pass through two NAND gates, so that when the encoder is rotating forward, it can only be detected at the test point of pulse signal A. Pulse and pulse signal B test point has no pulse, otherwise pulse signal B test point has signal, but pulse signal A test point has no signal. By detecting the signal output of these two points, it can be checked whether the whole system is working normally.
图8为本实用新型实施例中的磁性编码器模拟电路的原理图,如图8所示,磁性编码器模拟电路104包括光耦合器801、负载电阻R1和与负载电阻并联的并联电阻R2,光耦合器801的初级连接脉冲信号A处理信号和脉冲信号B处理信号,光耦合器的次级连接负载电阻R1以及与负载电阻并联的并联电阻R2,磁性编码器模拟电路104的输出信号连接磁性编码器的两个接线端即接线端B+和接线端B-。Figure 8 is a schematic diagram of the magnetic encoder analog circuit in the embodiment of the present invention, as shown in Figure 8, the magnetic encoder analog circuit 104 includes an optical coupler 801, a load resistor R1 and a parallel resistor R2 connected in parallel with the load resistor, The primary of the optocoupler 801 is connected to the pulse signal A processing signal and the pulse signal B processing signal, the secondary of the optocoupler is connected to the load resistance R1 and the parallel resistance R2 connected in parallel with the load resistance, and the output signal of the magnetic encoder analog circuit 104 is connected to the magnetic The two terminals of the encoder are terminal B+ and terminal B-.
脉冲信号A和脉冲信号B经过脉冲宽度调整电路的处理后通过光耦合器801耦合到次级,改变次级磁性编码器模拟电路104中负载电阻R1的阻值,使其并联电阻R2上的电压分压发生改变,输出脉冲信号。该脉冲信号输入到现有设备的采集电路,从而被系统接收。Pulse signal A and pulse signal B are processed by the pulse width adjustment circuit and then coupled to the secondary through the optical coupler 801, changing the resistance value of the load resistor R1 in the secondary magnetic encoder analog circuit 104 to make the voltage on the parallel resistor R2 When the divided voltage changes, a pulse signal is output. The pulse signal is input to the acquisition circuit of the existing equipment and thus received by the system.
本实用新型采用逻辑集成电路(integrated circuit,简称IC)与计数器组成,没有采用单片机进行数据的处理,因此系统的可靠性较高,与现有设备组合后不会增加系统的不稳定性。The utility model is composed of a logic integrated circuit (integrated circuit, IC for short) and a counter, and does not use a single-chip microcomputer for data processing, so the reliability of the system is high, and the combination with the existing equipment will not increase the instability of the system.
虽然如此,本实用新型并不限于此,采用单片机或其他器件实现,也在本实用新型保护范围内。Even so, the utility model is not limited thereto, and it is also within the protection scope of the utility model to realize it by using a single-chip microcomputer or other devices.
本实用新型通过采集两路光电编码信号,并对光电编码器信号进行转换,可将光电编码器信号转换为磁性编码器信号,使得系统可以实现双路光电编码信号的采集。从而使Insite系统具备了同时处理两路光电编码器信号的能力,解决了Insite系统在半潜式平台无法采集补偿器深度数据的问题,提高了随钻测井过程中对深度的跟踪精度。The utility model can convert the photoelectric encoder signal into a magnetic encoder signal by collecting two-way photoelectric coding signals and converting the photoelectric encoder signals, so that the system can realize the collection of two-way photoelectric coding signals. Thus, the Insite system has the ability to process two channels of photoelectric encoder signals at the same time, which solves the problem that the Insite system cannot collect the depth data of the compensator on the semi-submersible platform, and improves the tracking accuracy of the depth during the logging while drilling process.
本实用新型虽然是对两路光电编码信号进行转换的技术,但本实用新型并不限于此,例如也可采用本实用新型的技术对一路光电编码信号或多路光电编码信号进行转换,以满足不同现场需要。Although the utility model is a technology for converting two-way photoelectric coding signals, the utility model is not limited thereto. For example, the technology of the utility model can also be used to convert one-way photoelectric coding signals or multiple photoelectric coding signals, so as to satisfy Different site needs.
虽然本实用新型所揭露的实施方式如上,但所述的内容仅为便于理解本实用新型而采用的实施方式,并非用以限定本实用新型。任何本实用新型所属领域内的技术人员,在不脱离本实用新型所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本实用新型的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present utility model are as above, the content described is only an embodiment adopted to facilitate understanding of the present utility model, and is not intended to limit the present utility model. Anyone skilled in the field of the utility model can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed by the utility model, but the patent protection scope of the utility model , must still be subject to the scope defined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520124948.8U CN204392210U (en) | 2015-03-03 | 2015-03-03 | A kind of code signal change-over circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520124948.8U CN204392210U (en) | 2015-03-03 | 2015-03-03 | A kind of code signal change-over circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN204392210U true CN204392210U (en) | 2015-06-10 |
Family
ID=53364889
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201520124948.8U Expired - Lifetime CN204392210U (en) | 2015-03-03 | 2015-03-03 | A kind of code signal change-over circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN204392210U (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105403726A (en) * | 2015-12-17 | 2016-03-16 | 滁州市博创电气有限公司 | Pulse velocity measurement module |
CN105751004A (en) * | 2016-02-19 | 2016-07-13 | 西安秦川数控系统工程有限公司 | Post-processing circuit for position feedback signals |
CN111224679A (en) * | 2020-01-21 | 2020-06-02 | 上海雷智电机有限公司 | Z-phase signal generating circuit and encoder |
CN111581130A (en) * | 2020-04-15 | 2020-08-25 | 宁波视睿迪光电有限公司 | Equipment access detection control method and system and electronic equipment |
-
2015
- 2015-03-03 CN CN201520124948.8U patent/CN204392210U/en not_active Expired - Lifetime
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105403726A (en) * | 2015-12-17 | 2016-03-16 | 滁州市博创电气有限公司 | Pulse velocity measurement module |
CN105751004A (en) * | 2016-02-19 | 2016-07-13 | 西安秦川数控系统工程有限公司 | Post-processing circuit for position feedback signals |
CN111224679A (en) * | 2020-01-21 | 2020-06-02 | 上海雷智电机有限公司 | Z-phase signal generating circuit and encoder |
CN111224679B (en) * | 2020-01-21 | 2023-10-03 | 上海市雷智电机有限公司 | Z phase signal generating circuit and encoder |
CN111581130A (en) * | 2020-04-15 | 2020-08-25 | 宁波视睿迪光电有限公司 | Equipment access detection control method and system and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204392210U (en) | A kind of code signal change-over circuit | |
CN108155910B (en) | High-speed sine and cosine encoder decoding method based on FPGA | |
CN107124412A (en) | A kind of BISS protocol datas coding/decoding method and interface system | |
CN101723213A (en) | SinCos coder based method for detecting position and speed | |
CN107449376B (en) | Real-time steering wheel corner acquisition system | |
CN106773897A (en) | A kind of method that absolute encoder signal is converted to incremental encoder signal | |
CN204944565U (en) | A kind of flow sensor | |
CN203116757U (en) | Optical-electricity encoder and grating orthogonal waveform subdividing functional circuit | |
CN204479014U (en) | Hold grid chi slit gauge | |
CN108347233A (en) | A kind of multistage input logic decision circuitry | |
CN102706374B (en) | Angle measuring and reading device of disk photoelectric encoder | |
CN103713154A (en) | Method for judging motor rotating direction by using trigger and coder | |
CN204313787U (en) | A kind of testing circuit of angular encoder | |
CN204202625U (en) | Electronics multi-turn absolute value encoder | |
CN204788428U (en) | Many rings of absolute encoder of magnetic induction | |
CN104133407A (en) | Counting device and method for incremental encoder | |
CN208028864U (en) | A Multilevel Input Logic Judgment Circuit | |
CN104748687B (en) | A kind of method and adapter for improving grating sensor measurement accuracy | |
CN105509777B (en) | With reference to the programmable implementation method and encoder of processor and Magnetic Sensor | |
CN204087498U (en) | A kind of triple coil vehicle speed measuring system | |
CN204301802U (en) | A kind of intellectual water meter opto-electrical direct reader | |
CN104006858B (en) | A kind of method that photoelectric direct-reading water meter sensor suppresses bubble interference | |
CN208476269U (en) | A photoelectric encoder circuit | |
CN203837723U (en) | Adaptive card for improving measurement precision of grating sensor | |
CN101936751B (en) | Method and circuit thereof for improving resolution of encoder by adopting secondary subdivision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 100010 Chaoyangmen North Street, Dongcheng District, Dongcheng District, Beijing Co-patentee after: CHINA OILFIELD SERVICES Ltd. Patentee after: CHINA NATIONAL OFFSHORE OIL Corp. Address before: 100010 Chaoyangmen North Street, Dongcheng District, Dongcheng District, Beijing Co-patentee before: CHINA OILFIELD SERVICES Ltd. Patentee before: CHINA NATIONAL OFFSHORE OIL Corp. |
|
CX01 | Expiry of patent term | ||
CX01 | Expiry of patent term |
Granted publication date: 20150610 |