Galil Motion Control optcom Page 32
Optima DMC-1xxx and DMC-18x2 Command Reference
@AN[n]
i
21
@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 EXCEPT DMC-18x2
RELATED COMMANDS:
@IN
Read digital input
@OUT
Read digital output
SB
Set digital output bit
CB
Clear digital output bit
OF
Set analog output offset
EXAMPLES:
:MG @AN[1] ;'print analog input 1
1.7883
:x = @AN[1] ;'assign analog input 1 to a variable