Motion control generally refers to an open loop or closed loop electromechanical system in which things are moving. A motion…