AIO_Out Statement
Output analog value from the optional analog I/O output channel.
Syntax
AIO_Out Channel Number, Output data [, Forced]
Parameters
- Channel Number
- Specify the channel number of the analog I/O.
- Output data
- Specify the real number of Real type which indicates output voltage [V] or current value [mA] using an expression or numeric value.
- Forced
- Optional. Usually omitted.
Description
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.
AIO_Out command becomes an error if outputting the speed information by specified channel. Stop the speed information output and execute the AIO_Out command.
Note
Forced Flag
Specify the flag if outputting the analog I/O when operating emergency stop or opening the Safety Door by NoPause task and NoEmgAbort task (special task specified NoPause or NoEmgAbort to start when executing Xqt).
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_OutW, AIO_Out Function, AIO_OutW Function, AIO_Set
AIO_Out Example
Output 7.0 [V] from the analog I/O channel #1.
AIO_Out 1, 7.0