Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
BRAKE SYSTEM AND CONTROLLER FOR USE WITH A WELLHEAD DIRECT DRIVE
Document Type and Number:
WIPO Patent Application WO/2016/101074
Kind Code:
A1
Abstract:
The invention relates to fluid drive systems used in fluid wells and brake systems for permanent magnet wellhead direct drives. The braking controller connects or disconnects a brake resistor from a back EMF. A variable frequency drive (VFD) drives the motor and communicates with the control circuitry of the brake controller. The control circuitry monitors the brake resistor and depending on the rotational speed and direction of the motor and operating state of the VFD, disconnects or connects the brake resistor. If the direction of the motor is in reverse and above a threshold speed, it connects the brake resistor. If the direction of the motor is in reverse and below the threshold speed, the control circuitry dissipates stored back EMF through the brake controller. The amount of stored back EMF corresponds to the time to empty a pump.

Inventors:
DUERR AL (CA)
BRASSARD AARON (CA)
DOYLE JOHN (CA)
SPARLING WRAY (CA)
Application Number:
PCT/CA2015/051364
Publication Date:
June 30, 2016
Filing Date:
December 22, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
GEN MAGNETIC INTERNAT INC (CA)
International Classes:
E21B3/02; H02P3/22; F04C2/107; H02H3/00; H02P27/04
Domestic Patent References:
WO2006065957A12006-06-22
Foreign References:
US20140288758A12014-09-25
US6082433A2000-07-04
US20120256575A12012-10-11
Attorney, Agent or Firm:
MCMILLAN LLP et al. (181 Bay Street Suite 440, Toronto M5J 2T3, CA)
Download PDF:
Claims:
What is claimed is:

1. A braking controller comprising: receiving a back electromotive force (EMF); at least one electrical contact to a variable frequency drive (VFD); an electrically controlled switch to connect or disconnect a brake resistor from a current flow of the back EMF; the brake resistor dissipating the back EMF as heat; and an electrical control circuit comprising: storing the back EMF within an energy storage device; determining a rotational speed and a direction of a motor; when receiving a run signal on the at least one electrical contact from the VFD, transmitting a disconnect signal to the electrically controlled switch to disconnect the brake resistor; and when not receiving the run signal on the at least one electrical contact from the VFD and if the direction of the motor is in reverse, transmitting a connect signal to the electrically controlled switch to connect the brake resistor.

2. The braking controller according to claim 1, wherein the transmitting of the connect signal occurs when the motor is above a threshold speed.

3. The braking controller according to claim 2, the electrical control circuit further comprising: when the motor is below the threshold speed, dissipating the back EMF stored within the energy storage device through at least the brake resistor and once the energy storage device is depleted, releasing the connect signal to disconnect the brake resistor. The braking controller according to claim 1, wherein the back EMF is an alternating current (AC) back EMF.

The braking controller according to claim 4, further comprising a rectifier converting the alternating current (AC) back electromotive force (EMF) into a direct current (DC) back EMF.

The braking controller according to claim 5, wherein the motor is a permanent magnet (PM) motor and the AC back EMF is generated from the PM motor.

The braking controller according to claim 1, wherein the motor drives a progressive cavity (PC) pump.

The braking controller according to claim 7, further comprises a rod string between the motor and the PC pump.

The braking controller according to claim 8, wherein the rod string is assembled using pieces of rod fastened together.

The braking controller according to claim 4, wherein the motor converts 3 -phase electrical energy into rotational mechanical energy.

11. The braking controller according to claim 1, wherein the braking resistor is between 0.5 Ω and 10 Ω.

12. The braking controller according to claim 1, wherein the braking resistor is approximately 4 Ω.

13. The braking controller according to claim 1, the electrical control circuit further comprising monitoring at least one electrical property of the braking resistor or the back EMF, the at least one electrical property is selected from at least one of: resistance, voltage, current, frequency, and temperature.

14. The braking controller according to claim 13, wherein if the electrical property is abnormal, the braking controller signals the VFD to stop driving the motor.

15. The braking controller according to claim 14, the electrical control circuit further comprising placing the brake controller in a standby mode or a fault mode.

16. The braking controller according to claim 1, wherein the energy storage device provides electrical power to at least the electrical control circuit.

17. The braking controller according to claim 16, wherein the energy storage device comprises at least one capacitor storing energy from the back EMF.

18. The braking controller according to claim 17, further comprising at least one power resistor limiting a current from the back EMF to at least the electrical control circuit.

19. The braking controller according to claim 1, wherein the electrically controlled switch comprises a insulated-gate bipolar transistor (IGBT).

20. The braking controller according to claim 1, wherein the electrically controlled switch comprises a solid state contactor.

21. The braking controller according to claim 20, wherein the resistor has a three- phase AC resistance, wherein the resistance of each phase is between 0.5 Ω and 10 Ω.

The braking controller according to claim 1, wherein the VFD converts 3 -phase, fixed voltage line power into 3 -phase variable frequency, variable voltage, variable current electrical energy for the motor.

The braking controller according to claim 7, wherein a dissipation time from the energy storage device through at least the brake resistor corresponds to draining the PC pump.

The braking controller according to claim 7, the electrical control circuit further comprising detecting at least one fault condition and signaling the VFD to disable driving of the PC pump.

The braking controller according to claim 24, wherein the at least one fault condition is selected from at least one of: faults associated with the brake resistor; faults associated with the rectifier; and faults associated with the electrically controlled switch.

26. The braking controller according to claim 24, wherein the at least one fault is maintained until a reset switch is initiated. The braking controller according to claim 24, further comprising a thermistor initiating the at least one fault condition when the brake resistor is in an overheated state.

28. A braking controller comprising: a rectifier converting an alternating current (AC) back electromotive force (EMF) into a direct current (DC) back EMF; an electrically controlled switch to connect or disconnect a brake resistor from a current flow of the DC back EMF; the brake resistor dissipating the DC back EMF as heat; at least one electrical contact coupled to a variable frequency drive (VFD); a processor executing instructions from memory, the instructions comprise: monitoring at least one electrical property of at least one of the brake resistor, the DC back EMF, or the AC back EMF; correlating the at least one electrical property to a rotational speed and a direction of a permanent magnet (PM) motor; receiving a run signal on the at least one electrical contact from the VFD and transmitting a disconnect signal to the electrically controlled switch to disconnect the brake resistor; and when not receiving the run signal on the at least one electrical contact from the VFD and if the direction of the PM motor is in reverse, transmitting a connect signal to the electrically controlled switch to connect the brake resistor.

29. The braking controller according to claim 28, wherein the transmitting of the connect signal occurs when the PM motor is above a threshold.

30. The braking controller according to claim 29, the instructions further comprising: when the PM motor is below the threshold speed, initiating a timer; and transmitting the connect signal to the electrically controlled switch to connect the brake resistor until the timer expires.

31. The braking controller according to claim 28, wherein the AC back EMF is generated from the PM motor.

32. The braking controller according to claim 31, wherein the PM motor drives a progressive cavity (PC) pump.

33. The braking controller according to claim 32, further comprises a rod string between the PM motor and the PC pump.

34. The braking controller according to claim 33, wherein the rod string is assembled using pieces of rod fastened together.

35. The braking controller according to claim 31, wherein the PM motor converts 3- phase electrical energy into rotational mechanical energy.

36. The braking controller according to claim 28, wherein the braking resistor is between 0.5 Ω and 10 Ω.

37. The braking controller according to claim 28, wherein the braking resistor is approximately 4 Ω.

38. The braking controller according to claim 28, wherein the at least one electrical property is selected from at least one of: resistance, voltage, current, frequency, and temperature.

39. The braking controller according to claim 38, wherein if the electrical property is abnormal, the braking controller signals the VFD to stop driving the PM motor.

40. The braking controller according to claim 39, the instructions further comprising: placing the brake controller in a standby mode or a fault mode.

41. The braking controller according to claim 28, wherein the AC back EMF or the DC back EMF provides electrical power to at least the processor and the memory.

42. The braking controller according to claim 41, further comprising: at least one capacitor storing energy from the AC back EMF or the DC back EMF.

43. The braking controller according to claim 42, further comprising at least one power resistor limiting a current from the AC back EMF or the DC back EMF to at least the processor and the memory.

44. The braking controller according to claim 28, wherein the electrically controlled switch comprises a insulated-gate bipolar transistor (IGBT).

45. A braking controller according to claim 28, wherein the electrically controlled switch comprises a solid state contactor.

46. The braking controller according to claim 45, wherein the resistor is a three-phase AC resistance, wherein the resistance of each phase is between 0.5 Ω and 10 Ω.

47. The braking controller according to claim 28, wherein the VFD converts 3-phase, fixed voltage line power into 3-phase variable frequency, variable voltage, variable current electrical energy for the PM motor.

48. The braking controller according to claim 32, wherein the timer expiration corresponds to draining the PC pump.

49. The braking controller according to claim 32, further comprising instructions to detect at least one fault condition and signaling the VFD to disable driving of the PC pump.

50. The braking controller according to claim 49, wherein the at least one fault condition is selected from: faults associated with the brake resistor; faults associated with the rectifier; and faults associated with the electrically controlled switch.

51. The braking controller according to claim 49, wherein the at least one fault is maintained until a reset switch is initiated.

52. The braking controller according to claim 30, further comprising a thermistor detecting when the brake resistor is in an overheated state.

53. A permanent magnet motor system comprising: a variable frequency drive (VFD) powering a permanent magnet (PM) motor driving a progressive cavity (PC) pump, the VFD having at least one electrical contact with a braking controller; and the braking controller comprising: a rectifier converting an alternating current (AC) back electromotive force (EMF) into a direct current (DC) back EMF; an electrically controlled switch to connect or disconnect a brake resistor from a current flow of the DC back EMF; the brake resistor dissipating the DC back EMF as heat; a processor executing instructions from memory, the instructions comprise: monitoring at least one electrical property of at least one of the brake resistor, the DC back EMF, or the AC back EMF; correlating the at least one electrical property to a rotational speed and a direction of a permanent magnet (PM) motor; receiving a run signal on the at least one electrical contact from the VFD and transmitting a disconnect signal to the electrically controlled switch to disconnect the brake resistor; when not receiving the run signal on the at least one electrical contact from the VFD and, if the direction of the PM motor is in reverse and above a threshold speed, transmitting a connect signal to the electrically controlled switch to connect the brake resistor; when not receiving the run signal from the VFD and, if the direction of the PM motor is in reverse and below the threshold speed, initiating a timer; and transmitting the connect signal to the electrically controlled switch to connect the brake resistor until the timer expires and then transmitting a disconnect signal to disconnect the brake resistor.

Description:
BRAKE SYSTEM AND CONTROLLER FOR USE WITH A WELLHEAD

DIRECT DRIVE

Field of the Invention

[0001] The present invention relates generally to the field of drive systems and controllers used in fluid wells. More particularly, the present invention relates to a failsafe brake controller for permanent magnet wellhead direct drives.

Background of the Invention

[0002] Resource extraction in the oil and gas industry often uses progressing cavity (PC) pumps positioned at the bottom of a well bore to produce fluid from the well. The PC pumps require low speed rotation by way of a rod string rotating within the well bore that supports the weight of the rod string, pump rotor, and fluid. As the torque in the rod string increases, twisting of the rod stores rotational energy in the rod. If this torque is suddenly removed, the release of the rotational strain energy in the rod can be violent. Braking must therefore be managed safely and effectively.

[0003] Certain braking systems make use of alternating current (AC) synchronous Permanent Magnet (PM) motor direct drives which produce back electromotive forces (EMF) or back EMF. When a PM motor is rotating, the PM electromagnetic circuit produces a back EMF. In this way, the PM motor acts as a generator. The back EMF is proportional to speed of the PM motor. As the speed approaches zero, the voltage also reduces to zero. This voltage may be connected to braking resistors to absorb rotating energy (e.g. to brake).

[0004] During braking, the rotational spring energy is first released. Once this event is complete, there is still fluid in the well bore and back spin continues. The brake manages both the release of the rotational tension, which happens very quickly, and the settling out of the fluid level in the well bore, which may take a long time. As long as the connection between the PM motor and the resistance is maintained, the system resists rotation. Since the resistance is constant, as the speed reduces the braking torque also reduces, and as the speed increases, the braking torque increases.

[0005] This bi-directional nature of electronic brakes results in the braking effect occurring when the drive is operating both in a forward direction and a reverse direction. One system is disclosed United States Patent No. 8,283,879 to Liu el al. A braking controller of a three-phase permanent magnetic (PM) brushless direct current (DC) motor for directly driving a screw pump includes a detection circuit for detecting power supply states of the motor and a braking circuit for controlling the braking startup according to the power supply states of the motor. When the motor is supplied with power, the braking circuit is cut off. When the motor is not supplied with power and the screw pump drives the motor to reverse, the braking circuit starts up.

[0006] It is an object of this invention to at least provide a novel method and system for improved braking control for permanent magnet motor driving a progressive cavity pump or other type of pump. Summary of the Invention

[0007] According to one embodiment of the invention, there is provided a braking controller comprising: receiving a back electromotive force (EMF); at least one electrical contact to a variable frequency drive (VFD); an electrically controlled switch to connect or disconnect a brake resistor from a current flow of the back EMF; the brake resistor dissipating the back EMF as heat; and an electrical control circuit. The electrical control circuit utilizes the back EMF to power the circuit and store a holdup voltage in an energy storage device and determines a rotational speed and a direction of a motor. When a run signal is received on the at least one electrical contact from the VFD, a disconnect signal (e.g. 0V) is transmitted to the electrically controlled switch to disconnect the brake resistor. When the run signal is not received on the at least one electrical contact from the VFD and, if the direction of the motor is in reverse and above a threshold speed, a connect signal (e.g. 15 V) is transmitted to the electrically controlled switch to connect the brake resistor. When not receiving the run signal from the VFD and, if the direction of the motor is in reverse and below the threshold speed, dissipating the holdup voltage. The back EMF may be an alternating current (AC) back EMF and a rectifier may convert the alternating current (AC) back electromotive force (EMF) into a direct current (DC) back EMF. The motor may be a permanent magnet (PM) motor and the AC back EMF may be generated from the PM motor. The electrically controlled switch may be a insulated-gate bipolar transistor (IGBT).

[0008] According to another aspect of the invention, the motor may drive a progressive cavity (PC) pump using a rod string between the motor and the PC pump. A dissipation time from the energy storage device (e.g. at least one capacitor) through at least the brake resistor may correspond to completely draining a PC pump. The rod string may be assembled using pieces of rod fastened together. The motor may convert 3-phase electrical energy into rotational mechanical energy.

[0009] According to yet another aspect of the invention, the braking resistor resistance may be between 0.5 Ω and 10 Ω or alternatively, may be approximately 4 Ω. The electrical control circuit may monitor at least one electrical property of the braking resistor, the at least one electrical property is selected from at least one of: resistance, voltage, current, frequency, and temperature. If the electrical property is abnormal, the braking controller may signal the VFD to stop driving the motor and place the brake controller in a standby mode or a fault mode. A thermistor may detect when the brake resistor is in an overheated state.

[0010] According to another aspect of the invention, the back EMF may provide electrical power to at least the electrical control circuit and may be stored in at least one capacitor. At least one power resistor may limit a current from the back EMF to at least the electrical control circuit.

[0011] The VFD may convert 3-phase, fixed voltage line power into 3-phase variable frequency, variable voltage, variable current electrical energy for the motor.

[0012] According to yet another aspect of the invention, the electrical control circuit may comprise detecting at least one fault condition and signaling the VFD to disable driving of the PC pump. The at least one fault condition may be selected from: faults associated with the brake resistor; faults associated with the rectifier; and faults associated with the electrically controlled switch. The triggered fault may be maintained until a reset switch is initiated.

[0013] According to another embodiment of the invention, there is provided a fluid well pump system including a pump driven by a permanent magnet motor (PMM), which is driven by a variable frequency drive (VFD), a brake resistor is in contact with the PMM and operation may be controlled by an electronic brake controller. The electronic brake controller is adapted to monitor the back EMF of the PMM, and if the back EMF is above a predetermined level or within a range, the brake controller makes the connection between the brake resistor and the PMM, thus engaging the brake. If the back EMF is below the predetermined level, the resistance is disconnected.

[0014] According to an embodiment of the invention, there is provided a braking controller having: a rectifier converting an alternating current (AC) back electromotive force (EMF) into a direct current (DC) back EMF; an electrically controlled switch to connect or disconnect a brake resistor from a current flow of the DC back EMF; the brake resistor dissipating the DC back EMF as heat; at least one electrical contact coupled to a variable frequency drive (VFD); and a processor executing instructions from memory. The instructions comprise: monitoring one or more electrical properties of at least one of the brake resistor, the AC back EMF, or the DC back EMF; correlating the one or more electrical properties to a rotational speed and a direction of a permanent magnet (PM) motor; receiving a run signal on the one or more electrical contacts from the VFD and transmitting a signal to the electrically controlled switch to disconnect the brake resistor; receiving a stop signal on the one or more electrical contacts from the VFD and, if the direction of the PM motor is in reverse and above a threshold speed, transmitting a signal to the electrically controlled switch to connect the brake resistor; receiving a stop signal from the VFD and, if the direction of the PM motor is in reverse and below the threshold speed, transmitting a signal to the electrically controlled switch to connect the brake resistor and when the stored energy in the capacitors can no longer hold the electrically control switch closed, allow the switch to open. The electrically controlled switch may correspond to completely draining the PC pump. The AC back EMF may be generated from the PM motor and the PM motor may drive a progressive cavity (PC) pump. The PM motor converts 3-phase electrical energy into rotational mechanical energy. A rod string may be between the PM motor and the PC pump. The rod string may be assembled using pieces of rod fastened together or may be a single shaft of material.

[0015] According to some embodiments, the braking resistor may have a resistance between 0.5 Ω and 10 Ω. In other embodiments the braking resistor is approximately 4 Ω plus or minus the tolerance of the particular resistor (e.g. +/- 5 percent, +/- 10 percent, etc).

[0016] The one or more electrical properties of the braking resistor may be selected from at least one of: resistance, voltage, current, frequency, and temperature. If the electrical property is abnormal, the braking controller signals the VFD to stop driving the PM motor and may place the brake controller in a standby or fault mode.

[0017] According to another aspect of the invention, the DC back EMF may provide electrical power to at least the processor and the memory. One or more capacitors may store energy from the DC back EMF and one or more power resistors may limit a current from the DC back EMF to the processor and the memory or additional electrical components.

[0018] According to yet another aspect of the invention, the electrically controlled switch may be a insulated-gate bipolar transistor (IGBT).

[0019] According to another aspect of the invention, the VFD may convert 3-phase, fixed voltage line power into 3-phase variable frequency, variable voltage, variable current electrical energy for the PM motor.

[0020] According to yet another aspect of the invention, the instructions may detect at least one fault condition and signaling the VFD to disable driving of the PC pump. The at least one fault condition is selected from at least one of: faults associated with the brake resistor; faults associated with the rectifier; and faults associated with the electrically controlled switch. The at least one fault may be maintained until a reset switch is initiated.

[0021] According to any aspect of the invention, a thermistor may detect when the brake resistor is in an overheated state.

[0022] According to another aspect of the invention, there is provided a permanent magnet motor system comprising: a variable frequency drive (VFD) powering a permanent magnet (PM) motor driving a progressive cavity (PC) pump, the VFD having at least one electrical contact with a braking controller; and the braking controller comprising: a rectifier converting an alternating current (AC) back electromotive force (EMF) into a direct current (DC) back EMF; an electrically controlled switch to connect or disconnect a brake resistor from a current flow of the DC back EMF; the brake resistor dissipating the DC back EMF as heat; a processor executing instructions from memory, the instructions comprise: monitoring at least one electrical property of the brake resistor, AC back EMF, or DC back EMF; correlating the at least one electrical property to a rotational speed and a direction of a permanent magnet (PM) motor; receiving a run signal on the at least one electrical contact from the VFD and transmitting a disconnect signal to the electrically controlled switch to disconnect the brake resistor; when not receiving the run signal on the at least one electrical contact from the VFD and, if the direction of the PM motor is in reverse and above a threshold speed, transmitting a connect signal to the electrically controlled switch to connect the brake resistor; when not receiving the run signal from the VFD and, if the direction of the PM motor is in reverse and below the threshold speed, transmitting the connect signal to the electrically controlled switch to connect the brake resistor and when the stored energy in the capacitors can no longer control the electrically control switch, allow the switch to open.

Brief Description of the Drawings

[0023] An embodiment will now be described, by way of example only, with reference to the attached Figures, wherein:

[0024] Figure 1 shows a torque map showing the relationship between driving/braking and forward/reverse rotation;

[0025] Figure 2 shows a schematic drawing of a system according to an embodiment of the invention;

[0026] Figure 3 shows an energy flow and control diagram during forward driving;

[0027] Figure 4 shows an energy flow and control diagram during reverse braking;

[0028] Figure 5A and 5B shows exemplary controller logic for operating the brake; [0029] Figure 6 shows exemplary controller logic for brake resistor conditions according to an embodiment of the invention; and

[0030] Figure 7A and 7B show exemplary controller logic for fault conditions.

Detailed Description of the Embodiment [0031] While the Background of Invention described above has identified particular problems known in the prior art, the present invention provides, in part, a new and useful application for braking and brake control for a pump with a permanent magnet motor.

[0032] Referring to Figure 1, the relationship between driving/braking and movement in the forward/reverse directions is illustrated for ease of understanding. As shown, there is positive torque in the system when driving forward or when braking in reverse. When driving in reverse or braking forward, there is negative torque. An electronic brake system which only enables braking when back spin is present, and that is when the drive is rotating backwards, or in the reverse braking quadrant is shown in Figure 1.

[0033] In broad terms, the embodiments herein selectively connect the PM motor 202 back EMF with a brake resistor 206. If the brake resistor 206 is not present, then no braking can occur. The brake resistor 206 is between 0.5 Ω and 10 Ω but in this embodiment it is approximately 4 Ω (+/- 5% or 10% tolerances). Other larger resistances for brake resistor 206 are possible for systems 200 that require different braking properties. In general, if braking resistance is low (e.g. 0.5 Ω) then the braking torque is higher at lower speeds. Whereas, if the braking resistance is higher (e.g. 10 Ω or higher), then the braking torque is lower at lower speeds. The brake controller 204 comprises electrical circuitry that senses and reacts to the status of the brake resistor 206. The brake controller 204 determines if the brake resistor 206 is present and whether or not the brake resistor 206 is isolated from ground or shorted to ground. Additionally, the brake controller 204 may monitor one or more electrical properties of the brake resistor 206 such as the value of the resistance, voltage, temperature, frequency, and/or current. Alternatively or in addition, the brake controller 204 may monitor one or more electrical properties of the back EMF such as voltage, frequency, and/or current. [0034] One example of a system 200 in which the invention is contemplated to be used is shown schematically in Figures 2, 3, and 4. A permanent magnetic motor (PMM) or PM motor 202 is in a top direct drive configuration to a rod string 240. The rod string 240 is assembled using short pieces of rod that are fastened together with screw threads or other fastening mechanism. The rod string 240 mechanically drives a progressive cavity (PC) pump 242 to extract fluid from a well. Alternatively, the rod string 240 may be constructed of a single continuous rod. The PM motor 202 converts 3-phase electrical energy into rotating mechanical energy using a conventional permanent magnet architecture. In backspin, and while braking, the PMM 202 converts rotating mechanical energy into 3- phase electric energy as shown in Figure 4.

[0035] An electronic brake controller 204 provides control of the braking elements and is in communication with the PM motor 202 and the brake resistor 206. The brake resistor 206 converts electric energy into heat. Any time the PM motor 202 is rotating, there is back EMF produced. If the back EMF is connected to the brake resistor 206, the VFD 212 may measure this as a load. The brake controller 204 connects the brake resistor 206 and the PM motor 202 at the right time and under the right conditions, as will be discussed further below. Optionally, the brake controller 204 may also monitor the status of the brake resistor 206, and in particular it monitors whether the brake resistor 206 has failed. If the brake resistor 206 has failed, operation of the motor 202 is halted as safely as possible, or in the alternative, the motor 202 is not permitted to start operation. The braking effort is dependent on the rotational direction. The brake resistor 206 may further comprise a brake resistor thermistor (not shown) that senses whether or not the brake resistor 206 is in an overheated state. If the thermistor senses an overheated state, a fault may be initiatied as described further below.

[0036] The brake controller 204 also includes a 3-phase diode 208 which converts (e.g. rectifies) the 3-phase AC operation to DC operation. The brake controller 204 preferably comprises a 3-phase diode that permits the motor 202 to output DC voltage, and an insulated-gate bipolar transistor (IGBT) 210 (e.g. an electrically controlled switch) which connects the output DC voltage to the brake resistor 206. The brake resistor 206 in communication with the IGBT 210 then converts the back EMF electric energy into heat.

[0037] The system 200 also includes a variable frequency drive (VFD) 212 which drives the PMM 202. The VFD 212 converts 3 -phase, fixed voltage line power 214 into a form of electrical energy acceptable to the PM motor 202 such as an alternate 3-phase variable frequency, variable voltage, variable current electrical energy source capable of controlling the PM motor 202. An output filter (not shown) may be provided with some VFDs to manage electrical noise produced by the VFD as it converts electrical utility energy into a form directly usable by the PMM 202.

[0038] The brake controller 204 is also adapted to operate in a standby mode when the VFD 212 is operating the PM motor 202 and to operate in a ready mode when the VFD 212 is not operating the PM motor 202. This can be implemented by way of a 'RUN' contact 216, which is closed when the VFD 212 is controlling the PM motor 202 and opened when the VFD 212 is not controlling the motor 202. The brake controller 204 may be powered by the voltage produced by the back EMF from the PM motor 202 via terminals 224. A power resistor 220 reduces the current from the back EMF to prevent damage to the brake controller 204. The brake controller 204 has capacitors (not shown) within its internal power supply that are charged with the back EMF. Since the back EMF varies linearly with the speed of the motor 202, the voltage generated has a wide range such as 415 VAC at 450 rotations-per-minute (rpm). Once the capacitors are charged, a low amount of energy is required to maintain the brake controller 204. When the back EMF drops, the capacitors continue to provide power to the brake controller 204. Depending on the level of the back EMF voltage, the controller 204 either connects or disconnects the brake resistor 206 through a gate drive integrated circuit by way of contact 226 that provides a voltage to close the IGBT 210 and removes the voltage to open the IGBT 210. If the brake resistor 206 is operational, the IGBT 210 can be closed and if non-operational, the IGBT 210 can be opened.

[0039] The brake connection is dependent on the 'RUN' contact 216 and the state of PM motor 202 rotation (bidirectional). A closed 'RUN' contact 216 means that the VFD 212 is controlling the motor 202. An open 'RUN' contact 216 means that the VFD 212 is not controlling the motor 202. The state of the 'RUN' contact 216 may not coincide with the state of utility power 214. The 'RUN' contact 216 can be closed or open if utility power 214 is present. When utility power 214 is not present, the 'RUN' contact 216 may or may not be closed or open depending on the system state.

[0040] A closed 'RUN' contact 216 ensures that signals are connected to remove the ready state of the brake. Generally, the 'RUN' contact 216 state identifies if the brake controller 204 is in a ' Stand By' or a 'Ready' state. A closed 'RUN' contact 216 causes the brake controller 204 to maintain a disconnected brake (e.g. Stand By state). An open 'RUN' contact 216 allows the brake controller 204 to alter its behavior depending on the rotation state of the motor 202 as shown further in Figure 5 A.

[0041] If the brake controller 204 is in a Ready state and the PM motor 202 is rotating or has been rotating above -50 rpm in reverse rotation, the brake controller 204 changes to an 'Operating' state. An Operating state is where the PM motor 202 is connected to the brake resistor 206 applying a positive torque. The speed that the controller 204 uses to switch could be adjusted up or down. The sensing method can be by voltage or by frequency.

[0042] The default state of the brake is disconnected. The brake resistor 206 connects when voltage is present which is signified by a rotating motor 202. The brake connects only when the 'RUN' contact 216 is open and if the brake controller 204 is in a Ready state. If the components fail, the brake controller 204 fails to a connected state meaning the VFD 212 overloads and is not be able to sustain rotation of the motor 202.

[0043] Figure 5A shows chart of an exemplary controller logic of the brake connection depending on the 'RUN' contact 216 and the rotation state of the PM motor 202. The explanation of each Brake Status in Figure 5A is further defined with reference to Figure 5B. When the VFD Run Contact 216 is in a closed position, the VFD 212 is actively controlling the PM motor 202. In this condition, the back EMF charges the brake controller 204 when the speed is non-stationary and the brake controller 204 disconnects the brake resistor 206 (e.g. Stand By state). When the Run Contact 216 opens (e.g. disconnects the Run signal), the PM motor 202 and brake controller 204 are placed in a Ready State where braking may be initiated. The brake controller 204 connects the brake resistor 206 when the motor is in reverse rotation when the back EMF is greater than 50 Vrms (e.g. the motor 202 is instructed to slow down and brake) and also when less than 50 Vrms before the holdup voltage in the electronic controller has dissipated, indicating that the remaining fluid in the pump 242 has been drained. A set of capacitors (not shown), or other energy storage device, maintain the power supply of the brake controller 204 for a period of time (e.g. time delay) in order for the remaining fluid in the pump 242 to be removed. The period of time is determined by the size of the capacitors. When the system exceeds 50Vrms from OVrms, then the controller 200 knows that the speed has increased. When the capacitors discharge at low speed (Vrms has fallen below 50Vrms), then the speed has reduced. It is possible for the system 200 to physically speed up and reduce crossing the 50Vrms threshold multiple times during a braking event as described further below.

[0044] Depending on the VFD 212 capability, the 'RUN' contact 216 can be closed when utility power 214 is absent. The VFD 212 can recycle power from the motor 202 (acting as a generator) and reapply the power to the motor 202 (acting to resist an increase in speed). For VFDs 212 that do not have this capability, the brake controller 204 does not require this functionality in order to operate.

[0045] Additionally, the brake contact disengages below -50 rpm because this disengagement allows the PC pump 242 to completely drain for maintenance work without storing potential energy in the rod string 240. If the brake is 'always on', it is possible for some fluid energy to be stored above the pump 242. The brake controller 204 lets the fluid drain completely. A period of time needs to pass below approximately 50 rpm before the brake disengages. A set of capacitors or other energy source (not shown) provide a holdup voltage when the back EMF is too low to power the brake controller 204. In the present embodiment, the time delay is 2 to 10 minutes. If the viscous fluid builds up (by draining from the well bore) after the brake has disconnected and the pump 242 begins to rotate greater than -50 rpm, the brake reengages (connect). [0046] The brake controller 204 may, in some embodiments, detect various fault conditions with the system 200 and convey these fault conditions to the VFD 212. When a fault is detected, the VFD 212 is instructed to reduce and/or stop providing power to the motor 202 in a safe manner. If the motor 202 is stationary, the fault condition prevents the VFD 212 from starting the motor 202. A notification may be provided to operator by way of an light emitting diode (LED), computer display, or other indicator. Example fault conditions are demonstrated in Figures 7 A and 7B. The fault conditions may be divided into several major categories such as faults associated with the brake resistor 206; faults associated with the rectifier 208; faults associated with the IGBT 210; and faults associated with the brake resistor thermistor. The brake controller 204 may latch the fault condition in order to maintain its status through a power cycle (e.g. the brake controller 204 losing power). The operator may clear the fault using an external reset switch 222.

[0047] Faults associated with the brake resistor 206 may detect a damaged or disconnected brake resistor 206, a shorted brake resistor 206, or abnormal brake resistance. Figure 6 shows a representation of checking the status of the brake resistor 206. If the brake resistor 206 is shorted to ground, then the braking action may be very high torque or may be unpredictable. If the brake resistor 206 has infinite resistance then the brake resistor 206 is not present and no braking occurs. However, the brake resistance influences how the system brakes. High torque, low speed braking is possible with a low resistance. Low torque, high speed braking is possible with a higher resistance.

[0048] Faults associated with an IGBT 210 are detected via a process where on startup of the system 200, the VFD 212 manipulates the brake controller 204 in unison with running the motor 202 to sense a change of the VFD 212 load. This process enables determination of whether the IGBT 210 is within suitable parameters.

[0049] Although the PM motor 202 described herein converts 3-phase electric energy into rotating mechanical energy, the PC motor 202 can be both an AC synchronous PM motor 202 or a DC brushless PM motor 202 such that the rotor is constructed with surface mount permanent magnets or interior permanent magnets. The embodiments herein work with any AC PM motor 202 that produces a sinusoidal back EMF when supplied with rotational energy. The brake controller 204 also works with any DC brushless PM motor 202 that produces a trapezoidal (or rectangular) back EMF when supplied with rotational energy.

[0050] Although the embodiments described herein have the brake controller 204 powered by the back EMF, other power supplies are possible such as using the 24V power supply included with the VFD 212. Alternatively, the brake controller 204 may use the DC bus of the VFD 212. These two power supplies provide a more stable voltage to the brake controller 204 allowing the brake controller 204 to be constructed with a reduced number of components. In other embodiments, the power to the brake controller 204 may be supplied by a solar panel, wind turbine, rechargeable battery, etc.

[0051] Although the energy storage devices described herein are capacitors, other energy storage devices are possible such as inductors, flywheels, rechargeable batteries, etc.

[0052] Although connect and disconnect signals are described, the disconnect signal may simply be the absence of the connect signal. Alternatively, the connect signal may be a 4-20 raA signal where the disconnect signal may be 4 mA and the connect signal may be 20 mA. In some configurations, the connect and disconnect signals may be inverted (e.g. active-low rather than active-hight).

[0053] Although the embodiments described herein have a single brake resistor 206, alternative embodiments may have more than one brake resistor 206 in order to more efficiently dissipate the heat from the resistor. Additionally, or alternatively, the brake resistor 206 may further comprise a heat sink or other type of heat dissipation device such as a liquid cooling system. Additionally, or alternatively, the IGBT 210 may also comprise a heat sink or other type of heat dissipation device.

[0054] Although the embodiments described herein reference a rotational speed of 50rpms, other rotational speeds may be used particular to the circumstances such as viscosity of the fluid, depth of the well, size of the PM motor, etc.

[0055] Although the brake controller 204 is described herein as electrical circuitry to accomplish the operation, the brake controller 204 may comprise at least one processor executing instructions from memory to control and convert signals from the other system components. The controller may also be demonstrated as printed circuit boards with a processor and memory, various implementations of the systems and techniques can be realized in digital electronic circuitry, integrated circuitry, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device. For example, memory may comprise flip-flops retaining state information such as remembering fault states.

[0056] The controllers may execute computer programs (also known as programs, software, software applications or code) include machine instructions for a programmable processor, and can be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" "computer-readable medium" refers to any computer program product, apparatus and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

[0057] Although the period of time to empty the pump 242 is provided with a set of capacitors, in an alternative embodiment, a timer may be provided corresponding to the period of time (e.g. time delay). The timer may expire by starting at a particular non-zero value and decrement to zero. The timer may also expire by starting at zero and incrementing to reach a particular non-zero value. The timer may increase or decrease by a fraction, whole number, or multiples. The period set on the timer within the processor may be based on the particular parameters of the pump 242 (e.g. pump size, rpm, etc). The timer may not be specific and may be adjusted. [0058] An operator may interact with the systems and techniques using a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0059] The above-described embodiments are intended to be examples of the present invention and alterations and modifications may be effected thereto, by those of skill in the art, without departing from the scope of the invention, which is defined solely by the claims appended hereto.