User Manual

Table Of Contents
Input Command Modes and Priorities
Advanced Digital Motor Controller User Manual 79
TABLE 6-1. Priority resolution example
Microcomputer
Sending commands
Valid Pulses
Received
Analog joystick
within safe Min/Max Command mode selected
Ye s Don’t care Don’t care Serial
No Ye s Don’t care RC mode
No No Ye s Analog mode
No No No User selectable default value
Note that it is possible to set a priority level to “None. For example, the priority table
1 - Serial
2 - RC Pulse
3 - None
will only arbitrate and use Serial or RC Pulse commands.
USB vs Serial 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 RS232 are re-
plied on the RS232 and so on. Redirection symbol for redirecting outputs to the other
port exists (e.g. a command can be made to respond on USB even though it arrived on
RS232).
CAN Commands Arbitration
On controllers fitted with a CAN interface, commands received via CAN are processed
as they arrive regardless if any other mode, apart from Script mode, is active at the same
time. CAN mode has the highest priority from all other modes apart from script mode.
Commands issued from MicroBasic scripts
When sending a Motor command from a MicroBasic script, it will be interpreted by the
controller with higher priority than any other interface. If a serial command is received
from the serial/USB port at the same time a command is sent from the script, the script
command will prevail.
Important Warning
Script and CAN commands are also subject to the serial Watchdog timer. Script
commands have the highest priority and CAN commands similar priority to serial
commands. as shown below:
Priority Mode Configurable
1 Script Mode No
2 CAN Mode No
3, 4, 5
Serial Mode(RS232,RS485,TCP,USB)
Yes (see CPRI)Pulse Mode
Analog Mode