I am trying to get a closed loop stepper system to work. Motor is setup with 2000 microsteps per rev using an NI 2000 CPR encoder which really means 4000 cnts per rev in MAX. It works fine in open loop mode. It does strange things in closed loop mode like going back and forth like a washing machine. I am not talking chatter but large shaft rotations. I am not trying to code yet just get it working in MAX. I can disable the motor and turn the shaft by hand and 4000 cnts per rotation seems to be correct. I have used servos before and I was thinking this would be easy compared to that but it does not work. I am going backwards in some respects by going from servos to steppers. The reason is that the servos are causing a ton of EMI that is messing up other aspects of the test system. Open loop steppers are not accurate enough and I am getting slip and hysterisis that is causing things not to line up properly.
The system is controlled using a PCI-7344 motion control card and everything is connected to a UMI-7764 breakout box. A, A-, B, B-, IDX, IDX- are connected as well as the 5V line. I am assuming the PID parameters used for servos are not use for closed loop steppers.
Perry