
AM16/32B Relay Analog Multiplexer
‘Main Program
BeginProg
Scan (5,Sec,0,0) ‘scan instructions every 5 sec
Battery (Batt_volt)
PanelTemp (Panel_temp,250)
‘
‘Set flag 1 High every 30 min (Note: User can manually set flag 1 high/low)
If IfTime (0,30,min)Then flag (1)=high ‘++++++++++++++++++++++++
If Flag(1)=high Then
‘measure 48ea CS616 probes on AM16/32B in (4x16) mode
PortSet (4,1) ‘Set Mux Reset line High
‘
I=1 ‘set sub scan loop counter
SubScan (0,mSec,16)
PulsePort (5,10000) ‘Clock Mux
CS616 (Period(I),3,1,6,3,1.0,0) ‘measure 3ea CS616 probes
I=I+3
NextSubScan
‘
For I=1 to 48 ‘convert CS616 period to Volumetric Water Content
VWC(I)=a0 + a1*Period(I) + a2*Period(I)^2
Next
‘
PortSet (4,0) ‘Set Mux Reset line Low
flag(1)= low
EndIf ‘+++++++++++++++++++++++++++
‘
CallTable Dat30min ‘Call Output Tables
NextScan
EndProg
5.1.2 CR5000 and CR3000 Programming
Although the following example is a CR5000 program, a similar program can
be used for the CR3000. This CR5000 program uses the AM16/32B to
measure 16 100 ohm Platinum Resistance Thermometers connected in the
4x16 configuration. The program also measures 6 copper constantan
thermocouples.
CR5000 AM16/32B PRT(4 Wires)
Control/Common Sensor Terminals
C1 Reset Odd H Excitation
C2 Clock Odd L Excitation Return
IX1 COM Odd H Even H Sense wire excitation side
IXR COM Odd L Even L Sense wire return side
7H COM Even H
7L COM Even L
16
Komentáře k této Příručce