beautypg.com

2 cr1000 example program 2 – Campbell Scientific AM25T 25-Channel Solid State Multiplexer User Manual

Page 16

background image

AM25T Solid State Multiplexer

‘Main Program
BeginProg
Scan

(1,Sec,0,0)

AM25T

(TC(),25,mV2_5C,1,1,TypeT,Tref,5,4,Vx1,True,0,250,1.0,0)

CallTable

Dat15sec

CallTable

Dat5min

NextScan
EndProg

6.1.1.2 CR1000 Example Program 2

In this example, one AM25T instruction is used to measure the on-board PRT,
and another AM25T instruction is used to measure ten type T thermocouples.
Table 6-2 provides the wiring for the example.

TABLE 6-2. Wiring for CR1000 Example 2

Function AM25T

CR1000

+12 Power

12 V

12 V

Power and Shield Ground

Gnd

Gnd

Clock CLK

2

Reset RES

1

RTD Excitation

EX

EX1

Common High

HI

1H

Common Low

LO

1L

Example 2. CR1000 Program that Uses Separate AM25T Instructions to Measure the PRT
and Thermocouples

'Declare Variables and Units
Public Batt_Volt
Public RTemp_C
Public Temp_C(10)

Units Batt_Volt=Volts
Units RTemp_C=Deg C
Units Temp_C=Deg C

'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,60,Min,0)
Sample(10,Temp_C(),FP2)
EndTable

'Main Program
BeginProg
Scan(30,Sec,1,0)

'Default Datalogger Battery Voltage measurement Batt_Volt:

Battery(Batt_Volt)

12