A belt-type oil pumping unit control method and system
By inserting the decision -making link in the PLC of the belt -type oil pumping machine control system, the problem of delayed reaction delay in the unexpected situation is solved, and a faster and flexible control is achieved, and the operating efficiency and safety of the oil pumping machine are improved.
Patent Information
- Application Number
- CN202411495698.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-10-25
AI Technical Summary
When an emergency occurs, the PLC's operating and processing speed is fixed, which cannot provide staff with sufficient adjustment time, resulting in delayed system response.
Insert the decision -making process during the PLC work, to obtain the input -end instruction signal and on -site data, perform logical operations and store results, and continue to obtain the state of input device status and data. Compare judgments to ensure more appropriate execution.
In the case of emergencies, provide more response time to staff, reduce the system response delay, and improve the flexibility and accuracy of the oil pumping machine control.
Smart Images

Figure CN119002390B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of oil pumping unit control, and in particular to a belt-type oil pumping unit control method and system. Background Art
[0002] The belt pump is a mechanical device used to extract underground oil. It is mainly used for oil field pumping operations. It transmits power to the pumping device through a mechanical transmission system and a belt system to achieve effective oil extraction from the oil well. The main components include a power source, a reducer, a belt transmission system, a sucker rod and a pump, a bracket and a foundation, etc. During the operation of the belt pump, a frequency converter is used to adjust the speed of the motor to control the speed and torque of the pump. The frequency conversion control can dynamically adjust the working state of the pump according to the flow of the oil in the well to achieve efficient and energy-saving operation, or use a programmable logic controller (PLC) for control. The PLC obtains real-time data such as oil pressure, flow, temperature, etc. through sensors, and performs logical judgment according to the set program, thereby automatically adjusting the working state of the pump to achieve more precise control.
[0003] Patent publication number CN110714740A is an oilfield pumping unit control method and system, which establishes an association between the pumping motor and the anti-air pump so that the pumping motor and the anti-air pump can work in coordination, thereby improving the efficiency of oil extraction. While extracting liquid oil, the gas obtained from the extraction is collected to avoid wasting the resource gas extracted. The timing of the end of an extraction cycle is automatically determined in the extraction cycle, thereby reducing the burden of manual control and improving the overall extraction efficiency of the system.
[0004] During the operation of the PLC, the above-mentioned and similar technical solutions obtain real-time data through sensors and make logical judgments according to the set program to automatically adjust the working state of the oil pump. However, after a cycle starts, if the staff changes the program again, the PLC will determine that the changed program is the next cycle program and execute this program during the next cycle, but the current cycle will not be executed. Therefore, there is a "delay" between the staff's input and the execution of the PLC. When encountering an emergency, the staff will adjust the system by changing the instructions, but since the PLC's operating processing speed is fixed, it is impossible to provide the staff with more adjustment time when encountering an emergency. Summary of the invention
[0005] The object of the present invention is to provide a belt pumping unit control method and system to solve the problems raised in the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solution: a belt pumping unit control method and system, comprising:
[0007] Data acquisition: PLC acquires the command signal from the input end, obtains the command signal item, and simultaneously acquires the status and data of each input device on site, obtains the data signal item, and reads the command signal item and the data signal item into the input status register;
[0008] Program execution: Execute logical operations based on the instruction signal items to obtain operation result items, read the operation result items into the output status register, the instruction signal items and the operation result items in the output status register and the input status register correspond to each other, obtain the corresponding results of the instruction signal items and the operation result items, and obtain the corresponding result set, which is used to verify the compatibility of the instruction signal items and the operation result items;
[0009] Decision insertion: reacquire the status and data of each input device to obtain an update signal item, judge the update signal item through the judgment method to obtain a judgment result item, and update the operation result item through the processing method to obtain an update result item. When the judgment result item shows that human intervention is required, provide the time for human intervention and judge the result of human intervention according to the processing method. In the event of an emergency, provide more reaction time for the staff, and compare and judge the operations of the staff to make more appropriate execution;
[0010] The processing methods include:
[0011] Step 1: stage division, dividing the judgment result item into at least two stages, thereby obtaining at least two stage items;
[0012] Step 2: Time setting: setting the initial time item and the growth time item, assigning different processing times based on different stage items, and obtaining at least two processing time items;
[0013] Step 3: synchronous execution, continuously acquiring the command signal of the input end, obtaining the update command item, performing a logical operation based on the update command item, obtaining the update result item, and performing a logical operation based on the judgment result item, obtaining the judgment processing item;
[0014] Step 4: Result comparison, compare the update instruction item and the judgment result item with the corresponding result set respectively, obtain the comparison result item, set the comparison threshold, when the comparison result item meets the comparison threshold, the update result item is used as the execution, and the update result item is read into the output status register; when the comparison result item does not meet the comparison threshold, the judgment processing item is used as the execution, and the judgment processing item is read into the output status register.
[0015] Furthermore, the synchronous execution method includes:
[0016] S1: Input terminal scanning, PLC continuously obtains input information from the input terminal by scanning, and obtains update instruction items;
[0017] S2: instruction comparison, comparing the update instruction item with the instruction signal item to determine whether the update instruction item has changed. When the update instruction item has changed, a logical operation is performed based on the update instruction item to obtain an update result item. When the update instruction item has not changed, a logical operation is performed based on the instruction signal item to obtain an operation result item. At this time, the update result item is the same as the operation result item.
[0018] S3: Pre-judgment execution: PLC performs logical operations based on the judgment results of the update signal items to obtain judgment processing items.
[0019] Furthermore, the method for comparing the results includes:
[0020] M1: Result acquisition: based on the corresponding result set, the update instruction item and the judgment result item are read into the input status register as input, and the result read into the output status register is obtained, and the results are the update result item and the judgment processing item respectively;
[0021] M2: Result comparison, compare the update result item and the judgment processing item, with the judgment processing item as the benchmark and the comparison threshold as the floating range. When the update result item exceeds the floating range, the judgment processing item is executed; when the update result item does not exceed the floating range, the update result item is executed.
[0022] Furthermore, the method for setting the comparison threshold includes:
[0023] N1: Determine the alignment point. Based on the corresponding result set, the information of the output status register is used as the alignment point to obtain the alignment point set, and the information of the input status register is used as the control point to obtain the control point set;
[0024] N2: Time determination, setting a time threshold, obtaining a set of alignment points and a set of control points within the time threshold, taking the alignment points as a reference, obtaining control points corresponding to the alignment points, and obtaining a set of corresponding control points;
[0025] N3: Threshold determination, setting the comparison threshold based on the corresponding control point set.
[0026] Furthermore, the method for setting the comparison threshold also includes: determining the limit point, based on the corresponding control point set, obtaining the number of comparisons of the control points in the corresponding control point set, and taking the highest control point with the largest number of times and the lowest control point with the largest number of times as the comparison threshold.
[0027] Furthermore, the determination method includes:
[0028] X1: Safety value setting, based on the status and data of each input device, set the safety value range respectively to obtain the safety value item;
[0029] X2: Numerical judgment, based on the safety numerical item, the update signal item is numerically judged to obtain the judgment result item.
[0030] Furthermore, the determination method further includes:
[0031] X3: Repeat judgment, set the repeat value, repeatedly obtain the status and data of each input device, and obtain multiple sets of judgment data;
[0032] X4: Average judgment, based on multiple groups of judgment data, obtain the average data of the multiple groups of judgment data, obtain the average data item, perform numerical judgment on the average data item based on the safety numerical item, and then obtain the judgment result item.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] The belt-type oil pump control method and system inserts a decision in the process of PLC operation. After the PLC obtains the corresponding input terminal data and the status and data of the field input device, a response logic operation is performed according to the data acquisition result, and the data and the logic operation results are respectively stored and matched. In the subsequent operation process of the PLC, the status and data of the input device are continuously obtained. When an abnormal state or abnormal data is obtained, the time for human intervention is provided and the result of human intervention is judged according to the processing method. In the event of an emergency, more reaction time is provided for the staff, and the staff's operations are compared and judged to make more appropriate execution.
[0035] At the same time, the PLC continues to obtain input information from the input end in a scanning manner to obtain update instruction items. The update instruction items may not change, which means that the staff has not entered the corresponding information at the input end. At this time, logical operations are performed based on the obtained instruction signal items to obtain operation result items. Conversely, when the update instruction item changes, it means that the staff has entered instruction information at the input end. At this time, logical operations are performed based on the update instruction items to obtain update result items, thereby realizing the intelligent selection effect of staff instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of the relationship between data acquisition, program execution and decision insertion of the present invention;
[0037] Figure 2 It is a schematic diagram of the processing method of the present invention;
[0038] Figure 3The figure is a flow chart of the synchronous execution method of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] During the PLC's cyclic operation, the staff will be prompted based on the real-time data obtained. When encountering an emergency, when the problem encountered is relatively minor, the emergency stop will cause considerable losses, which can be handled by the staff making corresponding data adjustments. However, the staff's operation requires a certain amount of time, and after the staff makes the corresponding operation, they need to judge the correctness of the operation, which is more time-consuming. The technical solution provided by the present application inserts decisions during the PLC's operation. After the PLC obtains the corresponding input end data and the status and data of the on-site input device, the response logic operation is performed according to the data acquisition result, and the data and the logic operation results are stored respectively. In the subsequent operation of the PLC, the status and data of the input device are continuously obtained. When an abnormal state or abnormal data is obtained, the time for human intervention is provided according to the processing method, and the result of human intervention is judged. In the event of an emergency, more reaction time is provided for the staff, and the staff's operations are compared and judged to make more appropriate execution.
[0041] like Figure 1-Figure 2As shown, the present invention provides a technical solution: a belt-type oil pump control method and system, including: data acquisition: PLC acquires the command signal of the input end to obtain the command signal item, and at the same time acquires the status and data of each input device on site to obtain the data signal item, and reads the command signal item and the data signal item into the input status register; program execution: based on the command signal item, a logical operation is performed to obtain the operation result item, and the operation result item is read into the output status register, the output status register corresponds to the command signal item and the operation result item in the input status register, the corresponding result of the command signal item and the operation result item is obtained, and the corresponding result set is obtained, and the corresponding result set is used to verify the adaptability of the command signal item and the operation result item; decision insertion: re-acquire the status and data of each input device to obtain the update signal item, judge the update signal item by the judgment method, obtain the judgment result item, and update the operation result item by the processing method to obtain the update result item. When the judgment result item shows that human intervention is required, the time for human intervention and the result of human intervention are provided according to the processing method. Judgment, in the event of an emergency, provide more reaction time for the staff, and at the same time compare and judge the staff's operations to make more appropriate execution; the processing method includes: step one: stage division, divide the judgment result item into at least two stages, and then obtain at least two stage items; step two: time setting, set the initial time item and the growth time item, and assign different processing times based on different stage items to obtain at least two processing time items; step three: synchronous execution, continuously obtain the instruction signal of the input end, obtain the update instruction item, perform logical operations based on the update instruction item, obtain the update result item, and perform logical operations based on the judgment result item to obtain the judgment processing item; step four: result comparison, compare the update instruction item and the judgment result item with the corresponding result set respectively, obtain the comparison result item, set the comparison threshold, when the comparison result item meets the comparison threshold, the update result item is used as the execution, and the update result item is read into the output status register, when the comparison result item does not meet the comparison threshold, the judgment processing item is used as the execution, and the judgment processing item is read into the output status register.
[0042] It should be noted that the PLC adopts a cyclic scanning working mode. When the PLC is put into operation, it first receives the status and data of each input device on site in a scanning manner, including the machine's operating speed, machine temperature and other data, and obtains data signal items. At the same time, it obtains the command signal from the input end, including the command information entered by the staff on the operation panel, and obtains the command signal item. At this time, the PLC will read both the data signal item and the command signal item into the input status register, that is, the I / O image area. At the same time, the PLC performs logical operations according to the command signal items to obtain operation result items.
[0043] During the specific implementation process, a staff member operated a belt-type oil pump. At this time, the staff member input the operating speed of the oil pump of 15r / min on the control panel. At this time, the command signal item was 15r / min. The machine temperature was obtained to be 40℃. At this time, the data signal item was 40℃. Logical operations were performed according to the command signal item of 15r / min. The operation result item was a normal output signal, and the equipment was driven at 15r / min.
[0044] It should be noted that the corresponding results of the instruction signal items and the operation result items in the corresponding result set match each other. When the PLC is about to use the normal output signal of 15r / min as the driving signal, the PLC system will continue to obtain the status and data of each input device, obtain the update signal items, and judge the update signal items. When the judgment result shows that human intervention is needed, the time for human intervention and the result of human intervention will be provided according to the processing method. The judgment result is divided into three stages, namely mild, medium and severe. Different processing times are assigned according to different stages. The initial time item is set to 10s, corresponding to the mild stage, and the growth time item is 5s. Therefore, the processing time item corresponding to the medium stage is 15s, and the processing time item corresponding to the severe stage is 20s.
[0045] In the specific implementation process, when the PLC obtains that the temperature of the machine is constantly rising and has not reached the medium stage, the corresponding processing time is 15s. When the staff controls the input end and inputs the instruction to reduce the speed to 10r / min during the processing time, the PLC obtains the update instruction item and performs logical operations based on the update instruction to reduce the speed. At the same time, the PLC performs logical operations by itself according to the judgment result. The generated judgment processing item is the instruction to reduce the speed to 9r / min, and the logical operation based on the update instruction to reduce the speed is compared with the result of the logical operation performed by itself based on the judgment result. According to the set comparison threshold, when the update instruction input by the staff is compared with the result of the logical operation performed by the PLC by itself based on the judgment result, the comparison threshold is 13r / min-17r / min. At this time, the judgment processing item is used as the benchmark, and the comparison threshold is the floating range. The update result item obtained based on the instruction input by the staff does not exceed the floating range. At this time, the update result item is used as the execution, thereby achieving the effect of verifying the update instruction item input by the staff.
[0046] like Figure 3As shown, the synchronous execution method includes: S1: input end scanning, the PLC continuously obtains input information of the input end in a scanning manner to obtain an update instruction item; S2: instruction comparison, the update instruction item is compared with the instruction signal item to determine whether there is a change in the update instruction item. When the update instruction item changes, a logical operation is performed based on the update instruction item to obtain an update result item. When the update instruction item does not change, a logical operation is performed with the instruction signal item to obtain an operation result item. At this time, the update result item is the same as the operation result item; S3: judgment pre-execution, the PLC performs a logical operation based on the judgment result of the update signal item to obtain a judgment processing item.
[0047] It should be noted that the PLC continuously obtains input information from the input end in a scanning manner to obtain update instruction items, and the update instruction items may not change, which means that the staff has not entered the corresponding information at the input end. At this time, logical operations are performed based on the obtained instruction signal items to obtain operation result items. Conversely, when the update instruction item changes, it means that the staff has entered instruction information at the input end. At this time, logical operations are performed based on the update instruction items to obtain update result items.
[0048] The method for comparing results includes: M1: result acquisition, based on the corresponding result set, the update instruction item and the judgment result item are read into the input status register as input, and the result read into the output status register is obtained, and the results are respectively the update result item and the judgment processing item; M2: result comparison, the update result item and the judgment processing item are compared, with the judgment processing item as the benchmark, and the comparison threshold is the floating range. When the update result item exceeds the floating range, the judgment processing item is executed, and when the update result item does not exceed the floating range, the update result item is executed.
[0049] It should be noted that the update instruction item generated by the instruction input by the staff and the item based on the judgment result of the PLC are read into the input status register as the input. At this time, two output status register results will be obtained respectively. The two results are compared, and the output result of the PLC is used as the benchmark. The comparison threshold is used as the upper and lower floating range. The results produced by the update instruction item generated by the instruction input by the staff are judged, thereby achieving the verification effect of the instructions input by the staff.
[0050] The method for setting the comparison threshold includes: N1: determining the alignment point, based on the corresponding result set, taking the information of the output status register as the alignment point to obtain the alignment point set, and taking the information of the input status register as the control point to obtain the control point set; N2: determining the time, setting the time threshold, obtaining the alignment point set and the control point set within the time threshold, taking the alignment point as the reference, obtaining the control point corresponding to the alignment point, and obtaining the corresponding control point set; N3: determining the threshold, setting the comparison threshold based on the corresponding control point set.
[0051] It should be noted that the information of the output status register as a calibration point will correspond to the information of multiple input status registers as control points at the same time. The set time threshold is 30 days. Within the time threshold of 30 days, one calibration point will correspond to multiple control points.
[0052] In the specific implementation process, the information of the output status register of a belt-type oil pump is normal, while the information of the input status register is 15r / min on the first day, 14r / min on the second day, and 16r / min on the third day, and so on. Within the time threshold of 30 days, the information of the output status register is normal, but the information of the input status register is the minimum speed of 13r / min and the maximum speed of 17r / min. The comparison threshold at this time is 13r / min-17r / min.
[0053] The method for setting the comparison threshold also includes: determining the limit point, based on the corresponding comparison point set, obtaining the comparison times of the comparison points in the corresponding comparison point set, and taking the highest comparison point with the most times and the lowest comparison point with the most times as the comparison threshold.
[0054] It should be noted that within the time threshold, there will be extreme cases, such as when most of the control points are concentrated in one range, and both the maximum and minimum values of the range are compared multiple times, and individual control points exceed the target range. In this case, the control points that exceed the target range are set as rejection points.
[0055] In the specific implementation process, the information of the output status register in a belt-type oil pump is normal, while the information of the input status register is compared 5 times at 15r / min, 4 times at 14r / min, 5 times at 16r / min, 11 times at 13r / min, 1 time at 11r / min, 8 times at 17r / min, and 1 time at 19r / min. At this time, the speeds of 11r / min and 19r / min are both set as rejection points, and the highest comparison point with the most times and the lowest comparison point with the most times are used as comparison thresholds, and the comparison threshold is 13r / min-17r / min.
[0056] The judgment method includes: X1: safety value setting, based on the status and data of each input device, the safety value range is set respectively to obtain a safety numerical item; X2: numerical judgment, based on the safety numerical item, a numerical judgment is performed on the update signal item to obtain a judgment result item.
[0057] It should be noted that, through the status and data of each input device, such as temperature, noise, etc., the safe value range of temperature is 40-60°C, and the safe value range of noise is 70-90dB.
[0058] The judgment method also includes: X3: repeated judgment, setting a repetition value, repeatedly obtaining the status and data of each input device, and obtaining multiple groups of judgment data; X4: average judgment, based on multiple groups of judgment data, obtaining the average data of multiple groups of judgment data, obtaining an average data item, performing a numerical judgment on the average data item based on a safe numerical item, and then obtaining a judgment result item.
[0059] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is limited by the attached embodiments and their equivalents.
Claims
1. A belt pumping unit control method, characterized in that: include: Data acquisition: PLC acquires the command signal from the input end, obtains the command signal item, and simultaneously acquires the status and data of each input device on site, obtains the data signal item, and reads the command signal item and the data signal item into the input status register; Program execution: Execute logical operations based on the instruction signal items to obtain operation result items, read the operation result items into the output status register, the instruction signal items and the operation result items in the output status register and the input status register correspond to each other, obtain the corresponding results of the instruction signal items and the operation result items, and obtain the corresponding result set, which is used to verify the compatibility of the instruction signal items and the operation result items; Decision insertion: reacquire the status and data of each input device to obtain an update signal item, judge the update signal item through the judgment method to obtain a judgment result item, and update the operation result item through the processing method to obtain an update result item. When the judgment result item shows that human intervention is required, provide the time for human intervention and judge the result of human intervention according to the processing method. In the event of an emergency, provide more reaction time for the staff, and compare and judge the operations of the staff to make more appropriate execution; The processing methods include: Step 1: stage division, dividing the judgment result item into at least two stages, thereby obtaining at least two stage items; Step 2: Time setting: setting the initial time item and the growth time item, assigning different processing times based on different stage items, and obtaining at least two processing time items; Step 3: synchronous execution, continuously acquiring the command signal of the input end, obtaining the update command item, performing a logical operation based on the update command item, obtaining the update result item, and performing a logical operation based on the judgment result item, obtaining the judgment processing item; Step 4: Result comparison: compare the update instruction item and the judgment result item with the corresponding result set respectively to obtain the comparison result item, set the comparison threshold, and when the comparison result item meets the comparison threshold, the update result item is used as the execution, and the update result item is read into the output status register; when the comparison result item does not meet the comparison threshold, the judgment processing item is used as the execution, and the judgment processing item is read into the output status register; The method for setting the comparison threshold includes: N1: Determine the alignment point. Based on the corresponding result set, the information of the output status register is used as the alignment point to obtain the alignment point set, and the information of the input status register is used as the control point to obtain the control point set; N2: Time determination, setting a time threshold, obtaining a set of alignment points and a set of control points within the time threshold, taking the alignment point as a reference, obtaining the control points corresponding to the alignment point, and obtaining a set of corresponding control points; N3: Threshold determination, setting the comparison threshold based on the corresponding control point set; The determination method comprises: X1: Safety value setting, based on the status and data of each input device, set the safety value range respectively to obtain the safety value item; X2: Numerical judgment, based on the safety numerical item, the update signal item is numerically judged to obtain the judgment result item.
2. A belt pumping unit control method according to claim 1, characterized in that: The synchronous execution method comprises: S1: Input terminal scanning, PLC continuously obtains input information from the input terminal by scanning, and obtains update instruction items; S2: instruction comparison, comparing the update instruction item with the instruction signal item to determine whether the update instruction item has changed. When the update instruction item has changed, a logical operation is performed based on the update instruction item to obtain an update result item. When the update instruction item has not changed, a logical operation is performed based on the instruction signal item to obtain an operation result item. At this time, the update result item is the same as the operation result item. S3: Pre-judgment execution: PLC performs logical operations based on the judgment results of the update signal items to obtain judgment processing items.
3. A belt pumping unit control method according to claim 1, characterized in that: The method for comparing the results includes: M1: Result acquisition: based on the corresponding result set, the update instruction item and the judgment result item are read into the input status register as input, and the result read into the output status register is obtained, and the results are the update result item and the judgment processing item respectively; M2: Result comparison, compare the update result item and the judgment processing item, with the judgment processing item as the benchmark and the comparison threshold as the floating range. When the update result item exceeds the floating range, the judgment processing item is executed; when the update result item does not exceed the floating range, the update result item is executed.
4. A belt pumping unit control method according to claim 1, characterized in that: The method for setting the comparison threshold also includes: determining the limit point, based on the corresponding comparison point set, obtaining the comparison times of the comparison points in the corresponding comparison point set, and taking the highest comparison point with the largest number of times and the lowest comparison point with the largest number of times as the comparison threshold.
5. A belt pumping unit control method according to claim 1, characterized in that: The determination method further includes: X3: Repeat judgment, set the repeat value, repeatedly obtain the status and data of each input device, and obtain multiple sets of judgment data; X4: Average judgment, based on multiple groups of judgment data, obtain the average data of the multiple groups of judgment data, obtain the average data item, perform numerical judgment on the average data item based on the safety numerical item, and then obtain the judgment result item.
6. A belt-type oil pumping unit control system, characterized in that: A belt pumping unit control method as described in any one of claims 1 to 5 is used.
Citation Information
Patent Citations
Oil field pumping unit control method and system
CN110714740A
Intelligent program control information capturing method
CN109739127A
Robot system-oriented human-in-loop decision modeling and control method
CN113467465A