AIO_Out Method
Description
Reads or set analog value from the optional analog I/O output channel.
Syntax
Function AIO_Out (Channel As Integer) As Single
Sub AIO_Out (Channel As Integer, Value As Single)
Parameters
- Channel
Specifies the analog I/O channel number. - Value
An expression or number that specifies the real number indicating the voltage [V] or current [mA] you want to output.
Return Value
Returns specified analog I/O channel voltage and current output state in real number. Unit of voltage output is [V] and current output is [mA].
For Function AIO_Out (Channel As Integer) As Single: When outputting the speed information of the robot on specified channel, a return value can be acquired by this method.
Remarks
Output the real value indicating specified voltage [V] or current [mA] to analog output port which specified on channel port. Set the voltage output range of analog output port or selection of voltage and current output by the switch on the board. If setting a value which out of range of analog I/O port, output the border value (maximum and minimum value) which is not out of the range.
For Sub AIO_Out (Channel As Integer, Value As Single): The output setting of this method becomes an error if outputting the speed information by specified channel. Stop the speed information output and execute this method.
If an error occurs and the ErrorNumber property of the SpelException is 3101, see the remarks in the SetPoint method.
See Also
AIO_In Method, AIO_InW Method, AIO_OutW Method, SetPoint Method
AIO_Out Use Example
VB Examples:
Dim val As Single
val = m_spel.AIO_Out(1)
C# Example:
float val;
val = m_spel.AIO_Out(1);