I've approximated it by referencing the power pin (pin 2) voltage and doing whatever math is necessary with an open loop PWM output to generate an analog voltage. So you'll configure an output for duty cycle control. If your power pin shows, for example, a 24V input then a duty cycle of 0 to 41.67% will result in 0 to 10V...approximately. In practice you'll find that you won't be able to get as repeatable and accurate of an output as you'd get from an industrial PLC, so it just depends on what you're trying to do.