Angle measuring method based on rotating mechanism in petroleum drilling and production equipment

文档序号:1503482 发布日期:2020-02-07 浏览:13次 中文

阅读说明:本技术 基于石油钻采设备中旋转机构的角度测量方法 (Angle measuring method based on rotating mechanism in petroleum drilling and production equipment ) 是由 辜运富 曾礼平 张贵生 徐霖 申有于 于 2019-09-29 设计创作,主要内容包括:本发明公开了基于石油钻采设备中旋转机构的角度测量方法,该方法包括(S1)在石油钻采设备的旋转机构上安装磁铁;(S2)通过AS5045磁传感器接收来自旋转机构上磁铁的磁场变化信息;(S3)与AS5045磁传感器连接的STM32系列单片机接收AS5045磁传感器获取的磁场变化信息,STM32系列单片机对机械零点进行设置后对获取的磁场变化信息进行处理;(S4)STM32系列单片机对处理后的AS5045磁传感器获取的磁场变化信息进行类型转换处理;(S5)STM32系列单片机对类型转换处理后的各类数据进行数据标定处理,然后输出到后端显示设备。通过上述方案,本发明达到了将标准角度给定替代常规电位器速度给定,实际使用操作方便,性能稳定可靠的目的,具有很高的实用价值和推广价值。(The invention discloses an angle measuring method based on a rotating mechanism in oil drilling and production equipment, which comprises the steps of (S1) installing a magnet on the rotating mechanism of the oil drilling and production equipment; (S2) receiving magnetic field variation information from the magnet on the rotating mechanism by the AS5045 magnetic sensor; (S3) the STM32 series single chip microcomputer connected with the AS5045 magnetic sensor receives the magnetic field change information acquired by the AS5045 magnetic sensor, and the STM32 series single chip microcomputer processes the acquired magnetic field change information after setting a mechanical zero point; (S4) the STM32 series single chip microcomputer carries out type conversion processing on the processed magnetic field change information acquired by the AS5045 magnetic sensor; (S5) the STM32 series single chip microcomputer carries out data calibration processing on various types of data after type conversion processing, and then outputs the data to rear-end display equipment. Through the scheme, the purpose that the speed setting of the conventional potentiometer is replaced by the standard angle setting is achieved, the practical use and operation are convenient, and the performance is stable and reliable, so that the method has high practical value and popularization value.)

1. The angle measuring method based on the rotating mechanism in the petroleum drilling and production equipment is characterized by comprising the following steps of:

(S1) mounting a magnet on a rotating mechanism of the oil drilling and production equipment;

(S2) receiving magnetic field variation information from the magnet on the rotating mechanism by the AS5045 magnetic sensor;

(S3) the STM32 series single chip microcomputer connected with the AS5045 magnetic sensor receives the magnetic field change information acquired by the AS5045 magnetic sensor, and the STM32 series single chip microcomputer processes the acquired magnetic field change information after setting a mechanical zero point;

(S4) the STM32 series single chip microcomputer carries out type conversion processing on the processed magnetic field change information acquired by the AS5045 magnetic sensor;

(S5) the STM32 series single chip microcomputer carries out data calibration processing on various types of data after type conversion processing, and then outputs the data to rear-end display equipment.

2. The method for measuring the angle based on the rotating mechanism in the oil drilling and production equipment according to claim 1, wherein the step (S3) is performed by an STM32 series single chip microcomputer to obtain the angle information of the rotation of the magnet after processing the obtained magnetic field change information.

3. The method of claim 1, wherein the type of the rotation mechanism of the oil drilling and production equipment after the type conversion process in the step (S4) includes current, voltage, PWM, SPI.

Technical Field

The invention belongs to the technical field of petroleum equipment measurement, and particularly relates to an angle measurement method based on a rotating mechanism in petroleum drilling and production equipment.

Background

In the process of petroleum and gas drilling and production, stepless speed regulation control on the drilling speed and the pump stroke of a slurry pump is required, different rotating speeds are required to be adjusted frequently in the production process to meet the requirements of the drilling process, a fixed potentiometer with the conventional speed is inconvenient to replace due to the defects that a resistance wire is adopted and the fixed potentiometer is worn in a contact mode, the service life is short and the like, particularly when the conventional potentiometer breaks the zero potential (the speed rises sharply), the fixed potentiometer is very dangerous, the offset potentiometer at the mechanical zero point cannot be adjusted to the zero point and always has output, the rotating speed is also unfavorable to control, in addition, the control program with program zero point starting protection cannot be started, the production process is influenced (the replacement time is long), and the difficulty is increased for maintenance personnel. Therefore, how to accurately judge the rotation speed of the rotating mechanism and effectively set the mechanical zero point is a problem that needs to be solved urgently by those skilled in the art.

Disclosure of Invention

The invention aims to provide an angle measuring method based on a rotating mechanism in oil drilling and production equipment, and mainly solves the problems that in the prior art, a resistance wire is adopted for a conventional speed positioner to be in contact with the rotating mechanism, the resistance wire is short in service life due to abrasion, and zero point disconnection is easy to cause great maintenance difficulty.

In order to achieve the purpose, the technical scheme adopted by the invention is as follows:

the angle measuring method based on the rotating mechanism in the petroleum drilling and production equipment comprises the following steps:

(S1) mounting a magnet on a rotating mechanism of the oil drilling and production equipment;

(S2) receiving magnetic field variation information from the magnet on the rotating mechanism by the AS5045 magnetic sensor;

(S3) the STM32 series single chip microcomputer connected with the AS5045 magnetic sensor receives the magnetic field change information acquired by the AS5045 magnetic sensor, and the STM32 series single chip microcomputer processes the acquired magnetic field change information after setting a mechanical zero point;

(S4) the STM32 series single chip microcomputer carries out type conversion processing on the processed magnetic field change information acquired by the AS5045 magnetic sensor;

(S5) the STM32 series single chip microcomputer carries out data calibration processing on various types of data after type conversion processing, and then outputs the data to rear-end display equipment.

Further, in the step (S3), the STM 32-series single chip microcomputer processes the acquired magnetic field change information to obtain the angle information of the magnet rotation;

specifically, the types subjected to the type conversion processing in the step (S4) include current, voltage, PWM, SPI.

Compared with the prior art, the invention has the following beneficial effects:

(1) the invention fixes the magnet on the rotating machinery, obtains the magnetic field change information through the AS5045 magnetic sensor, converts the magnetic field change information obtained by the magnetic sensor into the rotating speed through the STM32 series single chip microcomputer, and then obtains the data information meeting the requirement of the back-end equipment through the internal type conversion and the data calibration processing.

(2) Compared with the traditional potentiometer, the conventional potentiometer consists of a resistance wire wound on circular ceramic and a mechanical rotating mechanism, and the resistance wire and a mechanical sliding contact wear a carbon contact and the resistance wire for a long time, so that the speed is set to be zero or the maximum, the conventional potentiometer is very dangerous in production engineering, the given value is changed by temperature change, the speed is also changed, the service life is short, and the like, and the mechanical zero position is changed and needs to be detached for mechanical calibration. The magnetic coding technology adopted by the rotating speed setting device is in non-contact type rotation control with the mechanical rotating mechanism, so that mechanical contact abrasion is avoided, the service life is greatly prolonged, mechanical zero point changes, mechanical calibration is not needed to be detached, the mechanical zero point is automatically calibrated only through communication of a button or an STM32 series single chip microcomputer, the testing accuracy is high, and the operability is stronger.

(3) The speed setting device avoids the problems because the position signal is transmitted in a magnetic induction mode in a non-contact mode, the position signal gives an analog signal or serial communication data in proportion, the detection chip cannot be damaged in a non-contact mode, and even if the magnet is damaged due to strong vibration, the output is zero, so that the speed output cannot be increased sharply; when the mechanical zero point changes, the novel speed setting controller does not need to be detached to correct the zero point, the mechanical zero point can be automatically set only by pressing a correction button on the novel speed setting controller, and the chip board is also very convenient to replace if the chip board is damaged by high voltage in a PCB plug-in mode

(4) The method has the advantages of setting the rotating speed, having unique advantages in the field of automatic control, programming and randomly outputting and calibrating the rotating angle value and the speed set value in the running process of the system, setting the state linkage function, facilitating the signal acquisition of the automatic system to control the actuator and the like, helping the running and debugging of the automatic system, greatly shortening the debugging time of the system and reducing the working pressure of program debugging personnel.

(5) In the practical field application of the invention, the speed setting device is separated from the STM32 singlechip, the mechanical zero point correction does not need to be connected with the singlechip, and the speed setting device adopts a PCB plug-in mode, so that the speed setting device is convenient and quick to replace and does not need to be welded.

(6) The AS5045 magnetic sensor has the advantages of high rotating speed, high response speed, dust and oil prevention, high anti-seismic grade, convenience in debugging, simplicity in installation, high anti-interference capability, suitability for long-line transmission and the like, and is of a line drive output type.

Drawings

FIG. 1 is a schematic diagram of the system of the present invention.

Fig. 2 is a schematic diagram of a voltage step-down circuit of LM2596 of the present invention.

FIG. 3 is a circuit diagram of the AS5045 magnetic sensor according to the present invention.

FIG. 4 is a pin connection circuit diagram of the STM32 series single chip microcomputer of the present invention.

Detailed Description

The present invention is further illustrated by the following figures and examples, which include, but are not limited to, the following examples.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种磁电转速测量装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!