A quick way to rule out an encoder issue on an IMC-AC controller with an F5 drive is to set the drive to open loop (LF.30) and see if it persists.