Method for determining a switching function for a sliding mode controller, and sliding mode controller
10381145 · 2019-08-13
Assignee
Inventors
- Torsten Bertram (Düsseldorf, DE)
- Ingo Glowatzky (Karlstadt, DE)
- Christoph Krimpmann (Dortmund, DE)
- Georg Schoppel (Lohr, DE)
Cpc classification
F15B13/0442
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
International classification
G05G1/02
PHYSICS
Abstract
The disclosure relates to a method for determining a switching function for a sliding mode controller for controlling a controlled variable of a system, the switching function being selected as a function of a control deviation of the controlled variable and its time derivatives up to at least the second order and on the basis of initial control dynamics of the system, coefficients of the switching function being represented by means of poles of a closed control loop of the system, the poles each being selected as a function of the control deviation, and desired control dynamics of the system being set by shifting at least one first pole of the poles, and to such a sliding mode controller and to a use of such a controller.
Claims
1. A method for operating a hydraulic valve comprising: identifying, with a control device, a plurality of positions of a piston over time for a piston in the hydraulic valve using a displacement transducer in the hydraulic valve, the plurality of positions including a present position of the piston and at least one prior position of the piston; determining, with the control device, a plurality of deviations over time between the plurality of positions of the piston and a predetermined position of the piston that produces a desired volumetric flow through the hydraulic valve, the plurality of deviations including a present deviation e between the present position and the predetermined position of the piston; determining, with the control device, a first derivative e corresponding to a rate of change of deviation of the piston position over time, and a second derivative e corresponding to an acceleration of deviation of the piston position over time based on the plurality of deviations over time; determining, with the control device, a switching function output s for controlling the position of the piston based on e, , , a first pole value .sub.1 that the control device determines based on a function of e: .sub.1(e), and a second pole value .sub.2 that the control device determines based on a function of .sub.1, based on a switching function:
s(e,,)=.sub.1.sub.2e(.sub.1+.sub.2)+; and operating, with the control device, an electromagnet that applies a force to the piston to move the piston from the present position toward the predetermined position based on the switching function output s.
2. The method of claim 1 further comprising: determining, with the control device, the first pole value .sub.1 based on the function of e: .sub.1(e)=|e|+.sub.0 where is a positive linear gradient that is stored in a computer-readable storage medium and .sub.0 is a value that is less than zero that is that is stored in the computer-readable storage medium.
3. The method of claim 2 further comprising: increasing, with the control device, an absolute value of .sub.0 to provide faster dynamics for the switching function.
4. The method of claim 2 further comprising: decreasing, with the control device, an absolute value of .sub.0 to provide slower dynamics for the switching function.
5. The method of claim 2 further comprising: determining, with the control device the second pole value .sub.2 based on the function of .sub.1(e) and a predetermined proportional constant value c.sub.2 that is stored in the computer-readable storage medium based on a function: .sub.2=c.sub.2.sub.1(e)=c.sub.2(|e|+.sub.0).
6. The method of claim 2 further comprising: determining, with the control device, the second pole value .sub.2 based on the function of .sub.1(e) and a predetermined proportional constant value c.sub.2 that is stored in the computer-readable storage medium based on a function: .sub.2=c.sub.2.sub.1(e).
7. The method of claim 1 further comprising: determining, with the control device, the first pole value .sub.1 based on a square root function of e.
8. The method of claim 1 further comprising: determining, with the control device, a value of a manipulated variable u based on a function: u={square root over (|s|)}sign(s) where is a proportional gain factor that is stored in the computer-readable storage medium; and operating, with the control device, the electromagnet based on the value of u to move the piston from the present position toward the predetermined position.
9. The method of claim 8 further comprising: determining, with the control device, the value of the manipulated variable u based on a function: u={square root over (|s|)}sign(s)+{dot over (u)} where {dot over (u)} is a derivative of u with respect to time that the control device determines based on a function: {dot over (u)}=
10. A control system for a hydraulic valve comprising: a control device connected to a displacement transducer in the hydraulic valve that identifies a position of a piston in the hydraulic valve, an electromagnet that is configured to apply a force to the piston to move the piston in the hydraulic valve, and a computer-readable storage medium, the control device being configured to: identify a plurality of positions of a piston over time for the piston in the hydraulic valve using the displacement transducer in the hydraulic valve, the plurality of positions including a present position of the piston and at least one prior position of the piston; determine a plurality of deviations over time between the plurality of positions of the piston and a predetermined position of the piston that produces a desired volumetric flow through the hydraulic valve, the plurality of deviations including a present deviation e between the present position and the predetermined position of the piston; determine a first derivative e corresponding to a rate of change of deviation of the piston position over time, and a second derivative e corresponding to an acceleration of deviation of the piston position over time based on the plurality of deviations over time; determine a switching function output s for control of the position of the piston based on e, , , a first pole value .sub.1 that the control device determines based on a function of e: .sub.1(e), and a second pole value .sub.2 that the control device determines based on a function of .sub.1, based on a switching function:
s(e,,)=.sub.1.sub.2e(.sub.1+.sub.2)+; and operate the electromagnet to move the piston from the present position toward the predetermined position based on the switching function output s.
11. The system of claim 10, the control device being further configured to: determine the first pole value .sub.1 based on the function of e: .sub.1(e)=|e|+.sub.0 where is a positive linear gradient that is stored in a computer-readable storage medium and .sub.0 is a value that is less than zero that is that is stored in the computer-readable storage medium.
12. The system of claim 11, the control device being further configured to: increase an absolute value of .sub.0 to provide faster dynamics for the switching function.
13. The system of claim 11, the control device being further configured to: decrease an absolute value of .sub.0 to provide slower dynamics for the switching function.
14. The system of claim 11, the control device being further configured to: determine the second pole value .sub.2 based on the function of .sub.1(e) and a predetermined proportional constant value c.sub.2 that is stored in the computer-readable storage medium based on a function: .sub.2=c.sub.2.sub.1(e)=c.sub.2(|e|+.sub.0).
15. The system of claim 11, the control device being further configured to: determine the second pole value .sub.2 based on the function of .sub.1(e) and a predetermined proportional constant value c.sub.2 that is stored in the computer-readable storage medium based on a function: .sub.2=c.sub.2.sub.1(e).
16. The system of claim 10, the control device being further configured to: determine the first pole value .sub.1 based on a square root function of e.
17. The system of claim 10 further comprising: determine a value of a manipulated variable u based on a function: u={square root over (|s|)}sign(s) where is a proportional gain factor that is stored in the computer-readable storage medium; and operate the electromagnet based on the value of u to move the piston from the present position toward the predetermined position.
18. The system of claim 17 further comprising: determine the value of the manipulated variable u based on a function: u={square root over (|s|)}sign(s)+{dot over (u)} where {dot over (u)} is a derivative of u with respect to time that the control device determines based on a function:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Exemplary embodiments of the disclosure are presented in the drawings an are explained in more detail in the description below.
(2) In the drawings:
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION
(8)
(9) The hydraulic directional valve 100 has a piston 110 which can be moved in a housing in order to connect pressure connections P for a pump, T for a tank and working connections A and B to one another in a suitable manner. A restoring force is applied to the piston 110 at one housing end by means of a spring 120 and a setting force is applied to the piston 110 at another housing end by means of an electromagnet 130. A further spring 121 acts against the spring 120 in order to keep the piston 110 at a zero position without magnetic force.
(10) A voltage can be applied to the electromagnet 130 in order to move the piston 110, depending on the value of the voltage. A displacement transducer 140 is also provided in order to detect a position and possibly a speed and an acceleration of the piston 110 and to forward this signal to a processing unit. In this respect, it is mentioned that the valve shown has, by way of example, only one electromagnet for controlling the piston. However, it is likewise conceivable for a valve having a plurality of electromagnets to be used.
(11)
(12) In addition to the desired value x.sub.ref, the actual value x and the control deviation e, their respective first and second time derivatives are also concomitantly included in the control, as was explained in detail above.
(13)
(14) The switching line s.sub.1=0 belongs to a linear switching function of the form s.sub.1(e, )=r.sub.0e+ or s.sub.1(e,)=.sub.1e with a constant .sub.1. In contrast, the switching line s.sub.2=0 belongs to a non-linear switching function of the form s.sub.2(e,)=.sub.1 with .sub.1=.sub.1(e). Suitably selecting .sub.1 as a function of e therefore makes it possible to achieve a desired curvature of the switching lines, which is indicated only by way of example in
(15)
(16) It is therefore possible to take into account the dynamics mentioned at the outset and often desired in practice with very fast compensation for small deflections, but a slow reaction in the case of step changes in the reference variable.
(17) A quadratic and a square root dependence of the first pole are shown, by way of example, with .sub.1,2 and .sub.1,3. These are further possible ways of deliberately influencing the dynamics on the basis of the control deviation, as already explained above.
(18)
(19) The sliding mode controller 200, for example, is implemented on the real-time system 510 and a desired value x.sub.ref is predefined for said controller. In this case, the sliding mode controller 200 comprises a switching function with initial control dynamics for the hydraulic directional valve 100. A value for the manipulated variable, the voltage u in the present case, is therefore determined using the sliding mode controller 200 and is then set at the electromagnet of the hydraulic directional valve 100.
(20) An actual value x of the position of the piston is determined using the displacement transducer in the hydraulic directional valve 100 and is forwarded both to the real-time system 510 and to the computer 500. Whereas the actual value x in the real-time system is supplied to the sliding mode controller 200 for control, the position x of the piston is evaluated with respect to the dynamics on the computer 500, for example by means of a suitable program, in a step 520.
(21) The first pole .sub.1 of the switching level of the sliding mode controller 200, for example, is then adapted or shifted in a step 530. This makes it possible to quickly and easily find a suitable switching function for desired dynamics by adapting or shifting only a few parameters, for example only the first pole.