I am trying to control a motor by having it go through a predefined torque profile. Ideally, I would like the profile sample rate to be 1ms or better.
The motor drive is configured for torque control, so the +/-10V output from the 7342 corresponds directly to torque of the motor. I'm not worried about closed loop control, so there is no torque feedback.
My first attempt was to simply drive the DAC channel directly using the Load DAC vi and continually update it with new values. Unfortunately, this only updates the torque value once per scan, and the vi will not run any faster than about 5ms per iteration. Also, every time the DAC value is loaded, there is a very sharp step in the torque output, not a smooth transition.
My seco
nd attempt was to take advantage of the contour move capability to allow the controller to update the output at a much higher rate. By setting the PID controller to only proportional control, the "position" demand actually becomes a torque signal. However, there are two problems with this. One is that the minimum interval time for contouring is 10ms. The other problem is that the 7342 controller uses spline interpolation for contour moves, when the profile has sharp corners at 10ms, the splining artifacts become rather significant.
Is there any way I can achieve decent torque control at 1ms with this hardware?