6
DAC internal device v. 2.6
FUNCTION
Device configuration
The device DAC generates an analog output which is proportional to the value of in variable. The
value must be introduced in bit with complement to 2 binary format.
The values of the minimal and maximum analog output can be limit to you with the parameters
lowlim and uplim.
The offset parameter is a variable which to be added to the in variable in order to adjust the
analog output.
In =
+32767
= + 10 V (maximum analog output value).
In =
0
= 0V (central value of analog output)
In =
-32768
= - 10 V (minimum analog output value).
Exemple
OUTDIR OutAn
;Set the sign of the analog output
WAIT NOT OutAn:st_outrev
;Check the status of the device
OutAn:in = 3276
;Set +1 V analog output
OUTREV OutAn
;Reverse the sign of analog output
WAIT OutAn:st_outrev
;Check the status of the device
In = input variable of the
device
Vout = signed analog output