Kalibrierung
Programme zur Kalibrierung
196
Pro AIn 8/16 (ADC)
REM Process for the ADwin PRO in order to
REM read voltage with an AIN-8/16 module.
REM The mean value is calculated in FPAR_1.
REM Last modification on August 08, 2000 ur
REM Usage of the variables:
REM PAR_1 : module address
REM PAR_2 : channel number
REM PAR_3 : read value
REM FPAR_1: mean value
#INCLUDE
adwpad.inc
#INCLUDE
adwpda.inc
REM ##################################################
INIT:
Processdelay=2000
IF
(PAR_1=0)
then
IF
(PAR_2=0)
then
IF
(PAR_3=0)
then
REM 64080 => +9,555664V (at a voltage range of +/- 10V)
REM 32768 => 0V
REM 1456 => -9,555664V
REM ##################################################
EVENT:
PAR_3=ADC16(PAR_1,PAR_2)
FPAR_1=FPAR_1*0.95
(1 to 255)
(1 to 8)
(0 bis 65535)
'prevent module address 0
PAR_1=1
PAR_2=1
'prevent channel number 0 (not
'allowed
PAR_3=32768
'read value
+
PAR_3*0.05'mean value
ADwin-Pro Hardware, Handbuch April 2015
ADwin