Herunterladen Inhalt Inhalt Diese Seite drucken

JÄGER ADwin-Pro I System- Und Hardware-Beschreibung Seite 202

Inhaltsverzeichnis

Werbung

Kalibrierung
Programme zur Kalibrierung
198
Pro AIn F-4/16 und 8/16 (ADC) , Pro AIn F-4/12 und 8/12 (ADC)
REM Process for the ADwin-Pro in order to read a voltage
REM with an AIN-F module.
REM A 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=ADCF(PAR_1,PAR_2)
FPAR_1=FPAR_1*0.95
(1 to 255)
(1 to 8)
(0 to 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

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis