Herunterladen Inhalt Inhalt Diese Seite drucken

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

Inhaltsverzeichnis

Werbung

ADwin
Pro AIn 8/12 (ADC), -Pro AIn 32/12 (ADC)
REM Process for the ADwin Pro in order to read a voltage
REM with an AIN-8/12 or AIN-32/12 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=ADC(PAR_1,PAR_2)
FPAR_1=FPAR_1*0.95
ADwin-Pro Hardware, Handbuch April 2015
(1 to 255)
(1 to 32)
(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
Kalibrierung
Programme zur Kalibrierung
197

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis