An adaptive control system based on a neural network autotuning unit has been developed. A method for training a neural network for an autotuning block has been examined. A comparison between a control system with a PID-controller and a control system with a PID controller and an autotuning unit has been made.