SMAC
LAC-25 Technical Reference Manual
29
Command:
aSVn
-- Set Maximum Velocity --
Argument:
0 <= n < 1,073,741,823
Default:
0
This command sets the desired velocity (in quadrature counts per servo loop interval) for
servo axis 'a'. The 32 bit argument to this command consists of a 16 bit integer part and a 16 bit
fractional part.
Example:
Encoder: 500 lines, 2000 Counts/Rev
Desired Velocity: 40 Rev/Sec
Servo Loop Interval: 1,000 Hz
5242880 = ((40 Rev/Sec * 2000 Counts/Rev) / 1000 Hz) * 65536
To achieve a velocity of 40 Rev/Sec, the command SV5242880 would be issued. A simpler
way to calculate the velocity would be to determine a constant for your application by which to
calculate desired velocity.
131072 = K = ((1 Rev/Sec * 2000 Counts/Rev) / 1000 Hz) * 65536
5242880 = 40 Rev/Sec * K
Related Commands: SA, SS