Data Sheet
Set/Read Configuration Commands
Advanced Digital Motor Controller User Manual 277
^PWM 180 : Sets PWM frequency to 18.0 kHz
^OVL 400 : Sets Overvoltage limit to 40.0V
Other parameters have multiple value, with typically one value applying to a different
channel. Multiple value parameters are numbered from 1 to n. For example, Amps limit
for a motor channel or the configuration of an analog input channel.
^ALIM 1 250 : Sets Amps limit for channel 1 to 25.0A
^AMIN 4 2000 : Sets low range of analog input 4 to 2000
Using 0 as the first parameter value will cause all elements to be loaded with the same
content.
^ADB 0 10 : Sets the deadband of all analog inputs to 10%
Important Notice
Saving configuration into EEPROM can take up to 20ms per parameter. The control-
ler will suspend the loop processing during this time, potentially affecting the con-
troller operation. Avoid saving configuration to EEPROM during motor operation.
Reading Configurations
Configuration parameters are read by issuing the “~” character followed by the command
name and with an optional channel number parameter. If no parameter is sent, the con-
troller will give the value of all channels. If a channel number is sent, the controller will
give the value of the selected channel.
The reply to parameter read command is the command name followed by “=” followed
by the parameter value. When the reply contains multiple values, then the different values
are separated by “:”. The list below describes every configuration command of the control-
ler. For Example:
~ALIM : Read Amps limit for all channels
Reply: ALIM= 750:650
~ALIM 2: Read Amps limit for channel 2
Reply: ALIM= 650
Configuration parameters can be read from within a MicroBasic script using the getcon-
fig() function. The setconfig() function is used to load a new value in a configuration pa-
rameter.
Important Warning
Configuration commands can be issued at any time during controller operation.
Beware that some configuration parameters can alter the motor behavior. Change
configurations with care. Whenever possible, change configurations while the
motors are stopped.