Slave controlled as function of reference and actual position and derived speed of master