Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
DOWNHOLE TOOL AND METHOD FOR OPERATING THE SAME
Document Type and Number:
WIPO Patent Application WO/2021/262009
Kind Code:
A1
Abstract:
There is disclosed a downhole tool conveyable on a coiled tubing string, the downhole tool comprising: - an electric actuator; - one or more sensors; and - a control unit adapted to receive and interpret data from the one or more sensors, wherein the control unit is adapted to operate the electric actuator in a closed-loop config-uration based on data received from one or more of the sensors. There is also disclosed a method of operating such a downhole tool.

Inventors:
DOVLAND SIMEN DIDDEN (NO)
MALMIN MONIKA BAKKE (NO)
ALMÅS PER EGIL (NO)
ANDA ROGER (NO)
BERGLAND KENNETH (NO)
Application Number:
PCT/NO2021/050151
Publication Date:
December 30, 2021
Filing Date:
June 24, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
TARGET INTERVENTION AS (NO)
International Classes:
E21B47/00; E21B23/01; E21B23/06; E21B33/124; E21B47/007; E21B47/12
Domestic Patent References:
WO2015051368A12015-04-09
Foreign References:
US20090050370A12009-02-26
US20150101864A12015-04-16
Attorney, Agent or Firm:
HÅMSØ PATENTBYRÅ AS (NO)
Download PDF:
Claims:
C l a i m s

1. Downhole tool conveyable on a coiled tubing string, the downhole tool comprising of:

- an electric actuator; - one or more sensors; and

- a control unit adapted to receive and interpret data from the one or more sensors c h a r a c t e r i s e d i n that the control unit is adapted to operate the electric actuator in a closed-loop configuration based on data received from one or more of the sensors. 2. Downhole tool according to claim 1, wherein the electric actuator is a linear elec tric actuator operated by means of an electromotor.

3. Downhole tool according to claim 1 or 2, wherein one or more of the sensors is/are adapted to measure work exerted by the electric actuator when operating one or more elements of the downhole tool. 4. Downhole tool according to claim 3, wherein the control unit is adapted to stop the operation of the element when the work measured by one or more sensors reaches a predefined limit.

5. Downhole tool according to claim anyone of claims 2-4, wherein the control unit is adapted to operate electromotor to operate the element, via the linear actuator, at a first power at an initial stage of an operation and a at a second power, which is lower than the first power, at a later stage of the operation.

6. Downhole tool according to any one of claims 3-5, wherein an element operable by the electric actuator is a sealing element expandable to an expanded state to a sealing engagement with an inside of a pipe string in the wellbore 7. Downhole tool according to any one of the claims 3-6, wherein an element oper able by the electric actuator is an anchor for anchoring the downhole tool in the well.

8. Downhole too according to any one of the claims 3-7, wherein an element opera ble by the electric actuator is a valve in the downhole tool.

9. Downhole tool according to any one of the claims 6-8, wherein the downhole tool is provided with two or more sensors for measuring the pressure in the well, wherein at least one of the sensors is provided above the sealing element on the downhole tool and wherein at least one sensor is provided below the sealing ele ment on the downhole tool.

10. Downhole tool according to claim 9, wherein the downhole tool is provided with a mandrel extending axially at least across a portion of the downhole tool where the expandable sealing element is provided, wherein an axial bore in the mandrel al lows for fluid circulation through the tool and wherein real-time communication with, and optionally power to, the sensor provided below the expandable sealing element is provided by means of one or more wires provided in an axial bore in the wall of the mandrel.

11. Downhole tool according to claim 10, wherein the downhole tool is an isolation tool, and wherein the downhole tool further comprises:

- at least two expandable sealing elements adapted to isolate a section of the wellbore therebetween;

- one or more fluid ports provided between the expandable sealing elements and adapted to be in fluid communication with the coiled tubing string; and

- sensors for measuring the pressure in the well, where at least one sensor is provided above the upper expandable sealing element and one sensor is provid ed below the lower expandable sealing element.

12. Downhole tool according to any one of the preceding claims, wherein the down hole tool includes sensors for measuring the position, speed and force exerted by the electric actuator.

13. Downhole tool assembly including a downhole tool according to any one of the preceding claims, wherein the control unit in the downhole tool is first control unit, and wherein the downhole tool assembly further comprises:

- a coiled tubing string to the which the downhole tool is connected; and

- a second control unit provided topside and adapted to communicate with the first control unit.

14. Downhole tool assembly according to claim 13, wherein the first control unit, up on loss of communication with second control unit, is adapted to: - automatically reset one or more elements of the downhole tool to a fail-safe or idle position.

15. Downhole tool assembly according to claim 13 or 14, wherein first control unit is adapted to recognize a command in the form of a mechanical or acoustic signa ture transmitted via the coiled tubing.

16. Method for operating a downhole tool assembly according to any one of the claims 13-15, the method comprising the steps of:

- receiving data from one or more of the plurality of sensors;

- executing a command to operate the electric actuator from the first control unit based on data received from the one or more sensors in a closed loop configura tion.

17. Method according to claim 16 wherein the method, prior to executing a com mand, further includes the step of:

- sending the command from the second, topside control unit to the first control unit on the downhole tool.

18. Method according to claim 16, wherein the method further comprises the steps of:

- sensing a pressure in the well by means of one or more of the plurality of sen sor; and - if the pressure is outside a pre-defined interval, adjusting the pressure in the well by operating a pump and/or valve device from the first control unit in closed loop configuration.

19. The method according to claim 16, wherein the method further comprises the steps of:

- by means of the first control unit, sensing that communication with topside has been lost;

- automatically operating one or more elements of the downhole tool to a fail-safe or idle position.

Description:
DOWNHOLE TOOL AND METHOD FOR OPERATING THE SAME

The invention relates to a downhole tool. In particular, the invention relates to a downhole tool conveyable on a coiled tubing string, wherein the tool is provided with an electric ac tuator; one or more sensors and a control unit adapted to receive and interpret data from the plurality of sensors. The invention also relates to a downhole tool assembly as well as to a method for operating the downhole tool assembly.

In the search for and exploration of petroleum resources, it is known to log and measure data during operations in a wellbore, such as during drilling, well testing, stimulation, fracking, etc. Typical data that are logged and measured are pressure, temperature, vari ous properties of the surrounding formation, properties of the drilling mud etc. “Logging while drilling” (LWD) is a well-defined term in the industry, implying that data is logged and stored in memory downhole and downloaded when the tools reach the surface. “Meas urement while drilling” (MWD) is another well-defined term indicating that data is transmit ted to the surface in real-time. The transmission of data usually takes place by means of mud-pulse or electromagnetic telemetry. However, driven by the desire to transfer larger data rates over the last decades, wired drill pipe solutions have been developed, including both “standard” torque-transmitting drill pipes and coiled tubing. Coiled tubing with inte grated power and/or communication wires are often referred to as “e-coil”.

Even if it is possible to transfer data topside in real-time at high rates, initiating an opera tion downhole still requires sending a command from topside based on a human decision. For coiled tubing, which has a lower yield-strength than drill pipes, there is an increased risk of downhole tools, conveyed by the coiled tubing, getting stuck in the well, in particu lar in deviated sections. Use of coiled tubing also entails an increased risk of loss of power and communication from topside. Having to rely on communication with topside for deci sion making, introduces a latency and increased reaction time which can be highly unde sirable in critical situations. The invention has for its object to remedy or to reduce at least one of the drawbacks of the prior art, or at least provide a useful alternative to prior art.

The object is achieved through features, which are specified in the description below and in the claims that follow.

The invention is defined by the independent patent claims. The dependent claims define advantageous embodiments of the invention.

In a first aspect, the invention relates to a downhole tool conveyable on a coiled tubing string, the downhole tool comprising:

- an electric actuator;

- one or more sensors; and

- a control unit adapted to receive and interpret data from the one or more sensors, wherein the control unit is adapted to operate the electric actuator in a closed-loop config uration based on data received from one or more of the plurality of sensors. By enabling the downhole tool to perform certain operations autonomously and in closed loop, the downhole tool may be adapted to perform certain operations without being dependent on instructions from and communication with topside as will be explained in the following.

In one embodiment, the electric actuator may be a linear actuator operated by means of an electromotor. In another embodiment, the downhole tool may, in addition or as an al ternative, comprise one or more electric rotary actuators.

In embodiment one or more of the sensors may be adapted to measure work exerted by the electric actuator when operating one or more elements of the downhole tool. The con trol unit may further be adapted to stop the operation of the element when the work meas ured by one or more sensors reaches a predefined limit. The control unit may further be adapted to operate the electric actuator to operate the element at a first speed at an initial stage of an operation and a at a second speed, which is lower than the first speed, at a later stage of the operation as will be explained in more detail below.

The element operable by means of the electric actuator may be a sealing element expandable to a sealing engagement with an inside of a pipe string in the wellbore to iso late a section of a well bore above sealing element from a section of the wellbore below the sealing element. In addition, or as an alternative, the element may be an anchor for anchoring the downhole tool in the well. As a further addition or alternative, the element may be a valve or a pump. As an example, a sensor may be adapted to measure the work exerted by the electric actuator when expanding a sealing element to a sealing engagement with the inside of a pipe string. Sensor data on the work is communicated to and interpreted by the downhole control unit. The control unit may stop the expansion of the sealing element when the measured work reaches a pre-defined level. In this way, it may become possible to moni tor the force by which a sealing element, such as a packer, is set in the wellbore and to avoid excessive, and possibly damaging, forces acting on the actuator and sealing ele ment. The overall command of initiating expansion/setting of one or more packers may be transmitted from a topside control unit, as included in the downhole tool assembly de scribed herein. When the command is received by the downhole control unit, the down hole control unit operates the electric actuator to expand the sealing element. During ex pansion the work exerted by the actuator is monitored and fed back to the downhole control unit in a closed loop. When a pre-set work limit is reached, the actuator stops. A signal may in certain embodiments then be sent to the topside control unit confirming that the sealing element has been set. In one embodiment, as disclosed above, the actuator may be also adapted to expand the sealing element with a first, high power (correspond ing to a high speed in one embodiment) at the beginning of the expansion, and then sub sequently, when approaching the work limit, reducing the power (speed) to a second, low er power (speed) to ensure efficient, controlled and reliable setting of the sealing element. In another embodiment, a similar process may be used when operating an anchor, a valve or any other element in the downhole tool operated by means of the downhole control unit and the electric actuator.

In one embodiment, the downhole tool may be provided with two or more sensors for measuring the pressure in the well, wherein at least one of the sensors is provided above the sealing element on the downhole tool and wherein at least one sensor is provided below the sealing element on the downhole tool. In this way, the forces acting on the tool, from pressure differences between the upper and lower sides of the sealing element, when in an expanded position, may be monitored and reacted to. The downhole tool may, in one embodiment, be provided with a mandrel extending axially at least across a portion of the downhole tool where the expandable sealing element is provided, wherein an axial bore in the mandrel allows for fluid circulation axially through the tool independently of the position/state of the expandable sealing element, and wherein real-time communication with, and optionally power to, the sensor below the expandable sealing element is provid ed by means of one or more wires provided in an axial bore in the wall of the mandrel. Establishing real-time communication with a sensor provided below the sealing element, and in an embodiment with a plurality of sealing elements, below the lowest sealing ele ment, enables monitoring of the pressure in the well below the downhole tool in real-time, which may be a huge benefit. It has been shown to be challenging to establish real-time communication with a sensor across a zone with a sealing element provided around a fluid-carrying mandrel. By providing an axial bore in the mandrel along the along the zone of the sealing element(s) it becomes possible to establish communication with and option ally also provide power to the sensor below the sealing element without comprising the sealing efficiency of the sealing element and without interfering with flow through the mandrel. In one embodiment, because of the length of the downhole tool, the axial bore in the wall of the mandrel may be provided by pre-drilling hole in segments of the mandrel that are subsequently welded together.

In one embodiment, the downhole tool may be an isolation tool, and wherein the down hole tool further comprises:

- at least two expandable sealing elements adapted to isolate a section of the wellbore therebetween;

- one or more fluid ports provided between the expandable sealing elements and adapted to be in fluid communication with the coiled tubing string; and

- sensors for measuring the pressure in the well, where at least one sensor is provided above the upper expandable sealing element and one sensor is provided below the lower expandable sealing element. In other embodiments the downhole tool may be a fracking tool, a tool for chemical injection, well testing or matrix stimulation etc. One embodiment of such a fracking tool is disclosed in the applicant’s own WO2014/158028 A1.

In one embodiment, the downhole tool may include sensors for measuring the position, speed and force exerted by the electric actuator. By monitoring one or more of, or prefer ably each of, these variables (position, speed and force) a very precise operation of the element (such as sealing element, valve, anchor) may be provided. It may also be possi ble to detect problems such a scale or influx of sand in the well if a force reading exceeds a pre-determined limit before an end position is reached. In one embodiment, one or more strain gauges placed on the element that is being operated, such as on a packer, may be used to measure force. In addition, or as alternative, the force may be calculated based on the speed and power consumption of the electric motor. Speed of the electric actuator may in one embodiment be measured indirectly by measuring the rotational speed of the motor and from there calculating the speed of the actuator. Similarly, also the position of the electric actuator may be measured indirectly by measuring the rotation of the motor. In one embodiment, the actuator may be provided with an end stop switch adapted to sense that the electric actuator has come to one of its end points. In one embodiment, the con trol unit may use a detected end point to verify and/or re-calibrate the position of the elec tric actuator.

In a second aspect, the invention relates to a downhole tool assembly including a down hole tool according to the first aspect of the invention, wherein the control unit of the downhole tool is a first control unit, and wherein the downhole tool assembly further com prises:

- a coiled tubing string to the which the downhole tool is connected; and

- a second control unit provided topside and adapted to communicate with the first control unit. Communication between the topside control unit and the downhole control unit may take place via wires extending along the coiled tubing, inside or outside the tubing or in the wall of the pipe itself. A coiled tubing with power and communication wires is often referred to as an “e-coil” in the industry.

In one embodiment, the first control unit, upon loss of communication with second control unit, may be adapted to automatically reset one or more elements of the downhole tool to a fail-safe or idle position. In a situation where communication is lost, but where the downhole tool is not stuck in the well, it may be desirable to pull the downhole tool out of well by means of the coiled tubing. The logic in the downhole control unit may understand that communication with topside has been lost, and downhole control unitwill then be adapted to operate the downhole tool e.g. to retract expanded sealing elements and/or slips/anchors and/or to open closed valves as necessary to make it possible to retrieve tool from the well. Power to perform these resetting operations may be provided from top side via the coiled tubing and/or by means of back-up batteries provided in the downhole tool. Power to operate the electric actuator is typically provided from topside. However, for emergency situations, where also power from topside is lost, it may be useful if the down hole tool is provided with one or more back-up batteries with sufficient power to reset the downhole tool to an idle and/or fail-safe state where it can be pulled out from the well.

In one embodiment, the first control unit may be adapted to recognize a command in the form of a mechanical or acoustic signature transmitted via the coiled tubing or via a circu lating fluid. It may occur that communication with and power from topside is lost altogether and/or if the automatic resetting of elements disclosed above still does not allow pulling the downhole tool out of the well. If this happens, it may be beneficial if the first/downhole control unit is adapted to recognize a command in the form of a mechanical or acoustic signature transmitted via the coiled tubing or alternatively via a circulation fluid to initiate an automatic release of one part of the downhole tool from another part of the tool. Even if communication between the two control units is no longer possible, it may still be possible to transmit commands from topside and down to the control unit. The logics incorporated into the first, downhole control unit may understand that communication with topside has been lost, and it will be programmed to start “listening” to the mentioned signatures. When such a signature has been sensed and recognized by the downhole control unitinitia a release procedure as mentioned above. A mechanical signature transmitted via the coiled tubing may be transmitted as strain and/or compression patterns in the coiled tubing or optionally as pressure pulses in a circulating fluid. An acoustic signature may be generat ed by percussive strokes applied to the coiled tubing with a hammer or similar.

In a third aspect, the invention relates to a method for operating a downhole tool assembly according to the second aspect of the invention, the method comprising the steps of: - receiving data from one or more of the plurality of sensors;

- executing a command to operate the electric actuator from the first control unit based on data received from the one or more sensors in a closed loop configuration.

In one embodiment, the method may further include, prior to executing a command, the step of sending the command from the topside control unit to the downhole control unit on the downhole tool. The downhole tool according to the present invention is provided with a first control unit and one or more sensors, where the first control unit is adapted to operate the downhole tool in a closed loop configuration based on data sensed by the one or more sensors. This implies that overall, general instructions/commands, such as “expand seal ing element”, “set anchor”, “close valve”, etc, may be transmitted from an operator via the topside control unit topside, while the implementation of the commands may be performed autonomously by the tool downhole without involvement from an operator and without communication with topside. After the operation has been finalized, e.g. after a valve has been closed, a signal may be transmitted from the downhole control unit to the topside control unit to confirm that the job has been finalized.

In one embodiment, the method may further comprise the steps of:

- sensing a pressure in the well by means of the one or more sensors; and

- if the pressure exceeds a pre-defined level, adjusting the pressure in the well by operat ing a pump and/or valve device from the first control unit in closed loop configuration. Dur ing such operations as setting of packers, closing of valves etc. the downhole tool may be constantly monitoring temperature, pressure and forces acting on the tool in real-time by means of the plurality of sensors. Pressure sensors will typically be provided above the upper sealing element, between the sealing elements and preferably also below the low est sealing element, when two or more sealing elements are provided. Forces acting on the tool as well as the tool’s orientation may be measured by means of sensors and fed back to the downhole control unit as well as to the topside control unit. An operator may interpret the data sent topside, while the downhole control unit is also provided with logics enabling it to react and operate in closed loop configuration in the event that something unforeseen should occur. In one embodiment, if the first control unit receives information that huge forces are acting on the tool due to pressure differences above and below the downhole tool, i.e. pressure gradients across the downhole tool, the logic in the downhole control unit may be adapted to operate the pump rate of a topside pump and/or to open a downhole relief valve to reduce or equalize the pressure differ ence. This “pressure self-balancing” logic may enable use of the tool without the need for separate anchors/slips for anchoring the tool in the well in addition to the packers, since the forces acting on the tool from the pressure differences are monitored and controlled in real-time and may be kept below a pre-defined limit. The downhole tool may therefore in certain embodiments be provided without anchors/slips.

The method may further include steps of

- by means of the first control unit, sensing that communication with topside has been lost;

- automatically operating one or more elements of the downhole tool to a fail-safe or idle position. The benefits of enabling the downhole tool to automatically and autonomously reset were described above.

In the following is described examples of preferred embodiments illustrated in the accom panying drawings, wherein:

Fig. 1 shows an embodiment of a downhole tool assembly according to the inven tion;

Fig. 2 shows a downhole tool according to the invention;

Fig. 3 shows, in a detailed cross-section, a first embodiment downhole tool ac cording to the invention in a first position of use;

Fig. 4 shows, in a detailed cross-section, the downhole tool from Fig. 3 in a sec ond position of use;

Fig. 5 shows, in a detailed cross-section, a second embodiment of a downhole tool according to the invention is a first position of use; Fig. 6 shows, in a detailed cross-section, the downhole tool from Fig. 5 in a sec ond position of use;

Fig. 7 shows an embodiment of a downhole tool according to the invention, as well as an enlarged detail of the downhole tool; and Figs. 8-13 show flow diagrams of various operations of use of the downhole tool as sembly according the invention.

In the following, the reference numeral 1 will be used to denote a downhole tool according to the first aspect of the invention, whereas reference numeral 10 will be used to denote a downhole tool assembly according to the second aspect of the invention. Identical refer ence numerals refer to identical or similar features in the drawings. The drawings are shown simplified and schematic, and various features therein are not necessarily drawn to scale.

Fig. 1 shows a downhole tool assembly 10 according to second aspect of the invention The tool assembly comprises a downhole tool 1 according to the first aspect of the inven tion. The downhole tool 1 is connected to a coiled tubing 2 run into a not shown wellbore from a topside surface unit 4. The downhole tool 1 is provided with a first/downhole control unit 6 adapted to operate the downhole tool 1 in closed loop configuration as disclosed herein. A second control unit 7 is provided topside and adapted to communicate with the downhole control unit. The downhole tool 1 is adapted to receive power from and to com municated with topside via the coil tubing as also disclosed herein.

Fig. 2 shows downhole tool 1 according to the first aspect of the invention separate from the other parts of the downhole tool assembly 10. In the shown embodiment, the down hole tool 1 is provided with a coiled tubing connector 8, adapted to mate with/connect to a complementary fitting connector on the coiled tubing for mechanically connecting the downhole tool to the coil tubing and for the connection of power and communication. The downhole tool 1 is provided with two sealing means 12, here in the form of reversible ex pandable packers 12a, b provided with an axial distance between them along the down hole tool. Between the packers 12, a, b the downhole tool 1 is provided with fluid ports 11, of which only one can be seen in the drawing. At its lower/distal end, the downhole tool is provided with an anchor 16 in the form of slips that may be set to anchor/securely fasten the downhole tool 1 in the wellbore. Fig. 3 shows cross-sections of a first embodiment of a downhole tool 1 according to the first aspect of the invention in a first position of use. A sealing element/packer 12 repre sents the operable element. In the shown embodiment, the electric actuator is a linear actuator 14 operable by means of an electromotor 16 via a set of gears 18. Sensors 20a, b are provided to measure work exerted by the linear actuator 14 when setting the packer 12. A threaded shaft 142 of the linear actuator 14 is rotatable to create a linear motion in a sleeve 144 with complementary fitting inner threads. The sleeve 144 abuts and pushes a first wedge 22a against a complementary fitting first oblique portion of the packer 12. The first wedge 22a is axially movable on mandrel 24 of the downhole tool 1. A second wedge portion 22b is non-movably arranged on the mandrel 24 on the other side of the packer 12, complementary fitting to a second oblique portion of the packer 12. By driving the linear actuator 14 to the right in the drawing, the packer is pushed/squeezed out radially towards the inner surface of a not-shown pipe string in the wellbore to create a sealing engagement, as indicated in Fig. 4. The packer 12 may be released from the sealing en gagement by driving the linear actuator 14 in the opposite direction, i.e. to the left in the drawing. While setting the packer 12, the work exerted by the linear actuator is measured by the sensors 20a, b and fed to the downhole control unit, not shown in this figure, via sensor wires 25 embedded in the wall of the mandrel 24.

Fig. 5 shows similar cross-sections of a downhole tool 1 with a similar configuration as in Figs. 3 and 4, but where the element operable by the linear actuator 14 is an anchor/slips 26 for anchoring the downhole tool 1 in the wellbore. In the shown embodiment, the slips 26 is activated/expanded by driving the linear actuator to the right, where the sleeve 144 of the linear actuator 14 pushes a first abutment plate 28, axially movable on the mandrel 24, towards the slips 26. On its distal end, the slips 26 abuts a second abutment plate 30, non-movably arranged on the mandrel 24. Between the first and second abutment plates 28, 30 and slips 26 are provided pairs of link arms 32. When the linear actuator 14 is driv en to the right in the drawing, the force exerted by the linear actuator 14 on the first abut ment plate 28 pushes the slips 26 radially out towards the inside of a not shown pipe string in the wellbore by rotating the link arms 32 from the position shown in Fig. 5 to the position shown in Fig. 6. The slips 26 may be retracted by driving the linear actuator 14 in the opposite direction, i.e. to the left in the drawing.

In Fig. 7 an embodiment of a downhole tool 1 is shown where the mandrel 24 is formed with an axial bore 34 its wall, and where sensor wires 25 extend across the region of the lower packer 12b, to a sensor 20c, as best seen in the enlarged detail A and cross-section B-B. The sensor 20c is adapted to measure the pressure in the wellbore below the lower- most packer 12b, enabling real-time measurement of pressure in the wellbore below the downhole tool, also when the lower packer 12b is in an expanded, sealing state. Fluid- circulation through the main axial flow bore 36 of the mandrel is not affected by the ex pansion state of the packer.

Fig. 8 is a flow diagram showing an operational use of a tool assembly according to the present invention. A pre-set maximum limit for work that may be exerted by the electric actuator is set in the downhole control unit. The maximum limit may be embedded in the downhole control unit, or it may be sent as a command value from the topside control unit. In this exemplary embodiment, the value is set to 10. The downhole control unit initiates the process by sending a command to start the electromotor. The sensor value is read and fed back to the downhole control unit in closed loop configuration. If the read value is below the pre-set limit, then motor continues to run to operate the linear actuator. When the pre-set sensor value limit is reached, the downhole control unit stops the operation of the motor, whereby excess forces acting on packers, slips, valves etc. may be avoided and at the same time it is ensured the same elements are set with a sufficiently high force. The sampling frequency may be in the order of 1-10 Hz, though lower and higher frequen cies may be appropriate in certain embodiments.

Fig. 9 shows a flow diagram where the electromotor is adapted to operate an element, via the linear actuator, at a first power at an initial stage of an operation and at a second pow er, lower than the first power, at a second stage of the operation. In certain operations, the force may influence the speed by which the linear actuator moves. Before start, a first power value and a second power value are set by which the electromotor is to operate based sensor value readings. In the exemplary embodiment, for simplicity, the first power value is set to 10 and the second power value is set to 5. A first stage value and a second stage value are set to 99 and 999, respectively, in the exemplary embodiment. The values may be embedded in the downhole control unit, or the values may be sent as commands- values from the topside control unit. The downhole control unit initiates the process by starting the electromotor. The sensor value is read and fed back to the downhole control unit. The sensor value that is read, may be a force or position of the linear actuator, posi tion of a valve, packer, position, anchor, etc. When the sensor value is below 99, the elec tromotor operates at a power of 10. When the sensor value increases to be equal to or larger than 99 but lower than 999, the electromotor operates at a power of 5. When the sensor value is 999 or larger, the control unit finishes the process by stopping the motor.

In one embodiment, this process may be used to let the electromotor set an anchor, packer, valve etc. at a first speed, by operating at a first power, at the first stage of the process, and then reduce the speed as the sensor value approaches its pre-set maximum limit, whereby a more accurate activation of the element being operated may be achieved without comprising the efficiency of the operation too much.

Fig. 10 shows a flow diagram where one or more operable elements of the downhole tool may be reset to a fail-safe or idle position upon loss of communication between the down hole and topside control units. Frist and second time values are set in the downhole con trol. In the exemplary embodiment, the first time value is set to 300 while the second time value is set to 30. The process is started by the first, downhole control unit checking if it is in communication with the second, topside communication unit. If it is able to receive a control signal from the topside control, unit the process stops. If no signal is received, the downhole control unit starts counting down from the first pre-set time value, here 300. While counting down, the first control unit makes several attempts in getting in contact with topside control unit. If no contact has been made when the counter reaches 0, this is an indication that communication with topside has been permanently lost. The electromo tor is then started and is allowed to run for a pre-determined time, corresponding to the second pre-set time value. When the electromotor has run for the second pre-set time value it stops. The electromotor may operate any element, such as packers, valves, an chors etc. that need to be reset in order to be able to pull the downhole tool out of the wellbore by means of the coil-tubing. In certain embodiments, one electromotor may be adapted to operate several elements in sequence, such as closing a valve, setting and packer and optionally also an anchor. In addition or as an alternative, a plurality of motors may be provided, where one or more of the motors may operate one element or a se quence of element.

Fig .11 is a flow diagram showing an example of how the downhole control unit may be adapted to sense and recognize a command, sent from topside, in the form of an acoustic or mechanical signal transmitted via the coiled tubing. A pre-set signal pattern and a pre set time value are embedded in the downhole control unit. The signal pattern is here ex emplified by a binary pattern 1-0-1-1-0-1, while the time value is set to 30. The process starts as in Fig. 10, with the downhole control unit verifying whether or not it is able to es tablish “normal” signal communication with the topside control unit and or if the tool is stuck despite resetting of element. If “yes”, the process is finished. If the downhole control unit is not able to establish normal contact with the topside control unit, it starts listening for the pre-set signal pattern, which may then be communicated via the coiled tubing e.g. as an acoustic pattern created percussively with a hammer or similar, mechanically by pulling the coiled tubing or by pressure pulses in a fluid circulating in the coiled tubing. If the downhole control unit senses and recognises the pre-set signal pattern, the electromo tor is started to run for a time set according to the pre-set value. As in the flow diagram of Fig. 10, the electromotor runs to reset elements of the downhole tool to an idle or fail-safe position so that the downhole tool may be pulled out of the well by means of the coiled tubing.

Fig. 12 shows a flow diagram where an overall command is sent from the topside control unit to the downhole control unit. The downhole control unit, after receiving the overall command from topside, executes the command in a closed loop configuration. Only after the command has been executed, a signal is sent to topside to indicate that the operation has been completed. The process is started topside by the topside control unit sending a command to the downhole control unit. The command from the topside control unit may be initiated by an operator or automatically/autonomously by the topside control unit. In the exemplary embodiment, the overall command sent from topside is to open or close a valve. The downhole control unit starts the electromotor and performs the operation while also reading sensor values, as e.g. shown in the flow diagrams of Figs. 8 and 9. When the process is completed a confirmation signal is sent to topside that the valve has now been opened/closed, whereby a topside data storage is updated with the new status infor mation. This may significantly improve efficiency and reliability of the operation of the downhole tool since only a small amount of data needs to be communicated between top side and downhole.

Fig. 13 is an exemplary flow diagram showing how sensor value readings on the down hole tool can be used to automatically adjust the pressure in the well near the tool as dis closed herein. First and second pressure values are set in the downhole control unit. In the shown embodiment, these values are exemplified by 50 and 100, respectively. The process is initiated by starting a topside/surface mud circulation pump. Pressure values are read by downhole pressure sensor. When the read pressure value is below the first pre-set limit, the pump continues to operate, and no further action is taken. If the read pressure value is equal to or larger than the first set pressure value, the downhole control unit opens a valve on the downhole tool to equalize a pressure difference and to reduce the pressure. If the read pressure value, after opening of the valve, is equal to or greater than the second pre-set pressure value, then the topside pump may be ramped down or stopped to further reduce the pressure. In this way, the downhole control unit may ensure that an absolute pressure or a pressure differential is kept below a pre-set limit as dis closed herein. It should be noted that the processes of operating a valve and/or a pump may be done separately for regulating the pressure and need not be run in sequence. The operation of a valve and/or a pump may also be used to increase pressure if it falls below a certain limit. Operating a valve may also be done so as to increase or reduce its opening rather than fully close or open. Similarly, operating a pump may be done by ramping up or reducing its circulation rather than only start or stop the pump. In this way the pressure around or pressure gradient across the downhole tool in the well may be balanced and kept within a certain interval.

It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodi- ments without departing from the scope of the appended claims. In the claims, any refer ence signs placed between parentheses shall not be construed as limiting the claim. Use of the verb "comprise" and its conjugations does not exclude the presence of elements or steps other than those stated in a claim. The article "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.

The logics as included in the control unit in the downhole tool may be implemented by means of hardware comprising several distinct elements, and by means of a suitably pro grammed computer. In the device claim enumerating several means, several of these means may be embodied by one and the same item of hardware.