AIO_OutW Statement

Output 16 bits analog value from optional analog I/O output channel.

Syntax
AIO_OutW Channel Number, Output data [, Forced]

Parameters

Channel Number
Specify the channel number of the analog I/O.
Outputs
Specify the output data (integer from 0 to 65535) as an expression or numeric value.
Forced
This value is optional. Usually omitted.

Description
Output to analog I/O channel specified by channel number. For the output data, specify integer expression from 0 to 65535 in formula or value.

Output voltage (current) is as follows according to output range configuration which is set by the switch on the 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

Note


  • Forced Flag

    Specify the flag if outputting the analog I/O when operating emergency stop or opening the Safety Door by NoPause task, NoEmgAbort task (special task specified NoPause or NoEmgAbort to start when executing Xqt), and background task.

    Need to be careful about the system design since analog I/O output changes when operating emergency stop or opening the Safety Door.


See Also
AIO_In Function, AIO_Out, AIO_Out Function, AIO_OutW Function, AIO_Set, Wait

AIO_OutW Example

AIO_OutW 1, &H8000