@AN Syntax:@ Function
Operands:none
Burn:not burnable
Analog Input Query

Full Description

Returns the value of the given analog input in volts

Arguments

@AN[n] where n is the input number assigned to a particular analog input pin (1-8)

Operand Usage

N/A

Usage

Usage and Default Details
UsageValue
While Moving (No RIO)Yes
In a ProgramYes
Command LineYes
Controller UsageAll
Default ValueN/A
Default FormatN/A

While Moving     Yes     Default Value     -
In a Program     Yes     Default Format     -
Command Line     Yes

@AN[] is an operand, not a command. It can only be used as an argument to other commands and operators

Related Commands

Examples:

:MG @AN[1] ;'print analog input 1
 1.7883
:x = @AN[1] ;'assign analog input 1 to a variable