Herunterladen Inhalt Inhalt Diese Seite drucken

JÄGER ADwin-Pro II Systembeschreibung Seite 306

Programmierung in adbasic
Vorschau ausblenden Andere Handbücher für ADwin-Pro II:
Inhaltsverzeichnis

Werbung

Pro II: Temperaturmess-Module
P2_RTD_Start
302
Beispiel
#Include
ADwinPro_All.inc
#Define
module
2
Dim
values24[8]
As Long
Dim
channel
As Long
Dim
i
As Long
Dim
run_state
As Long
Dim
status
As Long
Init:
P2_RTD_Config(module, 0, 0)
Rem use channels 1...6
For
i
=
1
To
6
Rem do channel settings: 4 wire, PT100, 50 Hz filter
P2_RTD_Channel_Config(module, i, 1, 1, 0, 7, 156)
Next
Processdelay=50000000
run_state
=
0
Event:
SelectCase
run_state
Case
0
Rem start measurement cycle
P2_RTD_start(Shift_Left(1, module-1))
run_state
=
1
Case
1
Rem check for end of measurement cycle
status
= P2_RTD_status(module)
If
(status
= 0)
Case
2
Rem read measured values and prepare start of next cycle
P2_RTD_read8(module, values24, 1)
For
i
=
1
To
Rem convert measurement values
fpar[i] = P2_RTD_convert(values24[i], 0, 1)
Next
run_state
=
0
EndSelect
'single shot mode
Then
run_state
=
6
ADwin-Pro II Software, Handbuch Apr. 2021
ADwin
2
'messwerte
lesen

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis