Data Sheet
Analog, Digital, Pulse IO Configurations
Advanced Digital Motor Controller User Manual 299
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 when-
ever 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 output 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)
Number of Arguments: 2
Argument 1: InputNbr
Min: 1 Max: Total Number of Analog Inputs
Argument 2: Mode
Type: Unsigned 8-bit
Min: 0 Max: 2
Default: 0 = Disabled
Where:
cc = Analog input channel