User Manual

Table Of Contents
Command Priorities
Advanced Digital Motor Controller User Manual 171
All TCP/IP configuration changes will be applied within one second after activation and
communication via TCP, Modbus TCP or Modbus TCP over RTU will be available as long as
the TCP mode is enabled.
Command Priorities
The controller will respond to commands from one of five possible sources:
CAN or Script Command
Serial (RS232, RS485, TCP or USB)
Pulse
Analog
Spektrum Radio (when available)
One, two, three or four (except from CAN or Script command, which is always enabled)
command modes can be enabled at the same time. When multiple modes are enabled,
the controller will select which mode to use based on a user selectable priority scheme.
The priority mechanism is described in details in “Input Command Modes and Priorities”
on page 73.
Communication Arbitration
Commands may arrive through the RS232, RS485, TCP or the USB port at the same time.
They are executed as they arrive in a first come first served manner. Commands that are
arriving via USB are replied on USB. Commands arriving via the UART are replied on the
UART. Redirection symbol for redirecting outputs to the other port exists (e.g. a command
can be made respond on USB even though it arrived on RS232).
CAN Commands
Commands arriving via CAN have bigger priority than serial commands and will not con-
flict with motor command arriving via serial, TCP or USB. CAN commands are also subject
to the serial Watchdog timer. Motors will be stopped and command input will switch ac-
cording to the Priority table if the Watchdog timer is allowed to timeout.
Script-generated Commands
Commands that are issued from a user script have bigger priority than serial and CAN
commands and will not conflict with motor command arriving via serial, TCP, USB or CAN.
Script commands are also subject to the serial Watchdog timer. Motors will be stopped
and command input will switch according to the Priority table if the Watchdog timer is
allowed to timeout.
Communication Protocol Description
The controller uses a simple communication protocol based on ASCII characters. Com-
mands are not case sensitive. ?a is the same as ?A. Commands are terminated by car-
riage return (Hex 0x0d, ‘\r’).