User Manual

Table Of Contents
Commands Reference
298 Advanced Digital Motor Controller User Manual V2.1, December 3, 2020
Syntax Scripting: setconfig(_BEE, aa, dd)
Number of Arguments: 2
Argument 1: Address
Min: 1 Max: Total Number of BEE
Argument 2: Value
Type: Signed 16-bit
Min: -32768 Max: 32767
Default: 0
Where:
aa = Address
dd = Data
Example:
^BEE 1 555 : Store value 555 in Battery Backed RAM location 1
~BEE 1: Read data from RAM location 1
BRUN - Script Auto-Start
HexCode: 48
Description:
This parameter is used to enable or disable the automatic MicroBasic script execution
when the controller powers up. When enabled, the controller checks that a valid script
is present in Flash and will start its execution 2 seconds after the controller has become
active. The 2 seconds wait time can be circumvented by putting 2 in the command argu-
ment. However, this must be done only on scripts that are known to be bug-free. A crash-
ing script will cause the controller to continuously reboot with little means to recover.
Syntax Serial: ^BRUN nn
~BRUN
Syntax Scripting: setconfig(_BRUN, nn)
Number of Arguments: 1
Argument 1: Enable
Type: Unsigned 8-bit
Min: 0 Max: 2
Default: 0 = Disabled
Where:
nn =
0: Disabled
1: Enabled after 2 seconds
2: Enabled immediately