Chapter 13
Torque Control
13-14
ni.com
Speed Control Based on Analog Value
In a system where a feed roll must run at speeds based on an input voltage,
the algorithm to maintain the speed consists of reading the analog voltage
connected to one of the analog channels on the motion controller, and
updating the speed of the axis based on the value of the voltage read. In this
system, the feedback is a normal position sensor, such as an encoder.
Speed Control Based on Analog Feedback Algorithm
Figure 13-7.
Speed Control Based on Analog Feedback Algorithm
The analog input could be connected to a force sensor, which ensures that
the tension of a web being fed is maintained.
Read analog input
Load move constraints
Start motion
Compute new velocity
based on analog input
Load new velocity
Loop waiting for move complete
Set operation mode
Set to velocity mode