An (analog input), Function, N is an unsigned integer – Yaskawa LEGEND-MC User Manual
Page 72

62
LEGEND-MC User’s Manual
@AN (Analog Input)
[Function]
DESCRIPTION:
@AN returns the value of an analog input as a voltage (+/-10V). Note that the @AN command is a
function, which means that it does not follow the convention of other commands, and does not require the
underscore when used as an operand. The resolution is 14 bit, or 1.2mV per bit. To read analog inputs
from a slave controller, use the SA command.
When using this command to access I/O on a slave controller in distributed control mode, use it with the handle for
outbound master commands. Do not use the handle which is for incoming slave update packets. For example, if a
slave is connected on handles E and F, reference the I/O for the slave on handle E.
ARGUMENTS: @AN [n]
where
n is an unsigned integer
USAGE:
EXAMPLES:
While Moving
Yes
Minimum n Value
1
In a Program
Yes
Maximum n Value
2
Not in a Program
Yes
Default n Value
n/a
Can be Interrogated
No
Default Format
10.4
Used as an Operand
Yes
Distributed Control
Use SA
#TEST
Program TEST
MG @AN[2]
Display the value of analog input #2 as a
voltage
JGX=@AN[2]*10000
Set jog speed according to analog input
SAA=”MG @AN[2]”
Sends command MG @AN[2] to slave on
handle A
Analog3=_SAA
Returns slave response to SA command
BGX
Begin Move
EN
End of program