A pump unit has an electrical drive motor and a control device for controlling the drive motor, wherein said control device includes at least one microprocessor and storage means which is able to store at least one control program executable by said microprocessor, wherein said control device includes or communicates with a programming module by which at least one user application can be created and/or modified and stored in said storage means, wherein said programming module is designed such that at least one input parameter, at least one operator and at least one action can be chosen as program elements and combined to generate at least one user function of said user application which can be executed by said microprocessor.