SETDAC n, x |
Purpose | To set channel #n of the PLC's Digital-to-Analog Converter (DAC) with the 16-bit integer result of the expression x. n must range between 1 and 16. Once set, the DAC channel will latch the set value until the next SETDAC statement on the same channel is executed. |
Examples | SETDAC 5,A+B*16 |
Comments: | DAC channel #5 will be set with the value of A+B*16. A run- time error will result if n is less than 1 or is greater than 16. The actual number of DAC channels depends on the PLC model in use. |