User Manual

Table Of Contents
Commands Types
Advanced Digital Motor Controller User Manual 173
SECTION 15
Commands
Reference
This section lists all the commands accepted by the controller. Commands are typically
sent via the serial (RS232, RS485, TCP or USB) ports (See “Serial (RS232/RS485/TCP/
USB) Operation on page 161) Except for a few maintenance commands, they can also be
issued from within a user script written using the MicroBasic language (See “MicroBasic
Scripting Manual”).
Commands Types
The controller will accept and recognize four types of commands:
Runtime commands
These start with “!” when called via the serial communication (RS232, RS485, TCP or
USB), or using the setcommand() MicroBasic function. These are usually motor or oper-
ation commands that will have immediate effect (e.g. to turn on the motor, set a speed
or activate digital output). Most of Runtime commands are mapped inside a CANopen
Object Directory, allowing the controller to be remotely operated on a CANopen standard
network (See “CAN Networking Manual”). See “Runtime Commands” on page 169 for
the full list and description of these commands.
Runtime queries
These start with ?” when called via the serial communication (RS232, RS485, TCP or
USB), or using the getvalue() Microbasic function. These are used to read operating values
at runtime (e.g. read Amps, Volts, power level, counter values). All runtime queries are
mapped inside a CANopen Object Directory, allowing the controller to be remotely inter-
rogated on a CANopen standard network (See “CAN Networking Manual”). See Runtime
commands are commands that can be sent at any time during controller operation and
are taken into consideration immediately. Runtime commands start with “!” and are fol-
lowed by one to three letters. Runtime commands are also used to refresh the watchdog
timer to ensure safe communication. Runtime commands can be called from a MicroBasic
script using the setcommand() function..
Maintenance commands
These are only available trough serial (RS232, RS485, TCP or USB) and start with “%”.
They are used for all of the maintenance commands such as (e.g. set the time, save con-
figuration to EEPROM, reset, load default, etc.).