AIO_OutW Function
Returns output analog value in Long integers from 0 to 65535 which is output on optional analog I/O channel.
Syntax
AIO_OutW(Channel Number)
Parameters
- Channel Number
- Specify the channel number of the analog I/O.
Return Values
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 function is available when outputting the speed information of the robot on specified channel.
See Also
AIO_In Function, AIO_Out, AIO_OutW, AIO_Out Function, AIO_Set, Wait
AIO_OutW Function Example
Long word0
word0 = AIO_OutW(1)