I have an Amada machine model Coma 588 the X-axis servomotor is on the origin position, when the stopper reaches the three limit switch the servomotor physical stops but on the display, the X axis continue increasing just like the X axis was going forward to another position

we already replaced the drive, the board, the comunication cable,the flat cable conection from comunication main cable to the encoder , the encoder and the servomotor.

also when motor get to origen and we push the emergency push button, the display start to count and the number start to increase on the display but the servo motor don't change position.