Galil Motion Control manc 18x 6 Page 32
DMC-18x6 Command Reference
24
@AN[n]
FUNCTION: Read analog input
DESCRIPTION:
Returns the value of the given analog input in volts
ARGUMENTS: @AN[n] where
n is an unsigned integer in the range 1 to 8
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
Read digital input
Read digital output
Set digital output bit
Clear digital output bit
Set analog output offset
EXAMPLES:
:MG @AN[1] ;'print analog input 1
1.7883
:x = @AN[1] ;'assign analog input 1 to a variable