AIO_In Function
Reads analog value from optional analog I/O input channel.
Syntax
AIO_In(Channel Number)
Parameters
- Channel Number
- Specify the channel number of the analog I/O.
Return Values
Return the analog input value of the analog I/O channel which specified in channel number in real number. Return value range differs depending on the input range configuration of the analog I/O board.
Description
InFunction
See Also
AIO_InW Function, AIO_Out, AIO_OutW, AIO_Out Function, AIO_OutW Function, AIO_Set, Wait
AIO_In Function Example
Function main
Real var1
var1 = AIO_In(2) 'Acquires input state of analog channel input 2
If var1 > 5.0 Then
Go P1
Go P2
'Execute other motion command here
'.
'.
Else
Print "Error in initialization!"
Print "Sensory Inputs not ready for cycle start"
Print "Please check analog inputs 2."
EndIf
Fend