User Manual

Table Of Contents
Runtime Commands
Advanced Digital Motor Controller User Manual 175
Command Arguments Description
RC Channel Value Set Pulse Out
S Channel Value Set Motor Speed
STT None STO Self-Test
SX Channel Value Next Velocity
VAR VarNbr Value Set User Variable
AC - Set Acceleration
Alias: ACCEL HexCode: 07 CANOpen id: 0x2006
Description:
Set the rate of speed change during acceleration for a motor channel. This command is
identical to the MACC configuration command but is provided so that it can be changed
rapidly during motor operation. Acceleration value is in 0.1 * RPM per second. When using
controllers fitted with encoder, the speed and acceleration value are actual RPMs. Brush-
less motor controllers use the hall sensor for measuring actual speed and acceleration will
also be in actual RPM/s. When using the controller without speed sensor, the acceleration
value is relative to the Max RPM configuration parameter, which itself is a user-provided
number for the speed normally expected at full power. Assuming that the Max RPM pa-
rameter is set to 1000, and acceleration value of 10000 means that the motor will go from
0 to full speed in exactly 1 second, regardless of the actual motor speed. In Closed Loop
Torque mode acceleration value is in 0.1 * miliAmps per second. This command is not
applicable if either of the acceleration (MAC) or deceleration (MDEC) configuration value is
set to 0.
Syntax Serial: !AC cc nn
Syntax Scripting: setcommand(_AC, cc, nn)
setcommand(_ACCEL, cc, nn)
Number of Arguments: 2
Argument 1: Channel
Min: 1 Max: Total Number of Motors
Argument 2: Acceleration Type: Signed 32-bit
Min: 0 Max: 500000
Where:
cc = Motor channel
nn = Acceleration value in 0.1 * RPM/s
Example:
!AC 1 2000 : Increase Motor 1 speed by 200 RPM every second if speed is measured by
encoder
!AC 2 20000 : Time from 0 to full power is 0.5s if no speed sensors are present and Max
RPM is set to 1000