Driving an encoder motor??????????

Did you read the manual?