User Manual

Table Of Contents
Commands Reference
286 Advanced Digital Motor Controller User Manual V2.0, July 8, 2019
mand. For example, this feature can be used to create soft limit switches, in which case
the motor can be made to stop if the feedback sensor in a position mode has reached a
minimum value.
Syntax Serial: ^AMINA cc (aa + mm)
~AMINA [cc]
Syntax Scripting: setconfig(_AMINA, cc, aa)
Number of Arguments: 2
Argument 1: InputNbr
Min: 1 Max: Total Number of Analog Inputs
Argument 2: Action
Type: Unsigned 8-bit
Min: 0 Max: 255
Default: 0 = No action
Where:
cc = Analog input channel
aa =
0: No action
1: Safety stop
2: Emergency stop
3: Motor stop
4: Forward limit switch
5: Reverse limit switch
6: Invert direction
7: Run MicroBasic script
8: Load counter with home value
mm = mot1*16 + mot2*32 + mot3*48
Example:
^AMINA 2 33 : Stops motor 2. I.e. 33 = 1 (safety stop) + 32 (motor2)
AMOD - Enable and Set Analog Input Mode
HexCode: 13
Description:
This parameter is used to enable/disable an analog input pin. When enabled, it can be
made to measure an absolute voltage from 0 to 5V, or a relative voltage that takes the 5V
output on the connector as the 5V reference. The absolute mode is preferred whenever
measuring a voltage generated by an outside device or sensor. The relative mode is the
mode to use when a sensor or a potentiometer is powered using the controller’s 5V out-
put of the controller. Using the relative mode gives a correct sensor reading even though
the 5V output is imprecise.
Syntax Serial: ^AMOD cc nn
~AMOD [cc]
Syntax Scripting: setconfig(_AMOD, cc, nn)