AIO_OutW Method
Description
Reads or set analog value from the optional analog I/O output channel.
Syntax
Function AIO_OutW (Channel As Integer) As Integer
Sub AIO_OutW (Channel As Integer, OutputData As Integer)
Parameters
- Channel
Specifies the analog I/O channel number. - OutputData
An expression or number that specifies the output data (0 to 65535).
Return Value
Returns the output state of specified analog I/O channel in Long integers from 0 to 65535.
The following table shows output voltage (current) and return value of each output channel according to output range configuration of analog I/O board.
| Output Data | Output Range Configuration | ||||||
|---|---|---|---|---|---|---|---|
| Hexadecimal | Decimal | ±10(V) | ±5(V) | 0-5(V) | 0-10(V) | 4-20(mA) | 0-20(mA) |
| 0xFFFF | 65535 | 9.99970 | 4.99985 | 5.00000 | 10.00000 | 20.00000 | 20.00000 |
| 0x8001 | 32769 | 0.00031 | 0.00015 | 2.50008 | 5.00015 | 12.00024 | 10.00031 |
| 0x8000 | 32768 | 0.00000 | 0.00000 | 2.50000 | 5.00000 | 12.00000 | 10.00000 |
| 0x0000 | 0 | -10.00000 | -5.00000 | 0.00000 | 0.00000 | 4.00000 | 0.00000 |
This method is available when outputting the speed information of the robot on specified channel.
See Also
AIO_In Method, AIO_InW Method, AIO_Out Method
AIO_OutW Use Example
VB Examples:
Dim val As Integer
val = m_spel.AIO_OutW(1)
C# Example:
int val;
val = m_spel.AIO_OutW(1);