background image

Appendix B.  Example Programs 

B-3 

    '3 repetitions, writing to SEVolt(7), SEVolt(8) and SEVolt(9) 
    '3 repetitions, measuring 5H, 5L, 6H on mux 

    

VoltSe

(SEVolt(7),3,mv2500,1,True,0,60,1,0) 

    'Turn AM16/32B Multiplexer Off 

    

PortSet

(C2,0) 

    'Call Data Tables and Store Data 

    

CallTable

 Hourly 

    

CallTable

 Daily 

  

NextScan

 

EndProg

 

 

The following example is a CR1000X program. With minor adjustments, this 

program can be used with the CR6 series, CR800 series, CR1000, or CR3000. 

The AM16/32B must be in 4x16 mode. 

CRBasic Example B-2.  Single-Ended Voltage Measurements 

'Declare Variables and Units 

Public

 BattV 

Public

 Ptemp_C 

Public

 LCount 

Public

 SEVolt(48) 

 

Units

 BattV=Volts 

Units

 Ptemp_C=Deg C 

Units

 SEVolt=mV 

 

'Define Data Tables 

DataTable

 (Hourly,True,-1) 

  

DataInterval

(0,60,Min,10) 

  

Sample

(48,SEVolt(),FP2) 

EndTable

 

 

DataTable

(Daily,True,-1) 

  

DataInterval

(0,1440,Min,10) 

  

Average

 (48,SEVolt(),FP2,False) 

  

Minimum

(1,BattV,FP2,False,False) 

EndTable

 

 

'Main Program' 

BeginProg

 

  'Main Scan 

  

Scan

(30,Sec,1,0) 

    'Default CR1000X Datalogger Battery Voltage measurement 'BattV' 

    

Battery

(BattV) 

    'Default CR1000X Datalogger Wiring Panel Temperature measurement 'PTemp_C' 

    

PanelTemp

(Ptemp_C,_60Hz) 

    'Turn AM16/32B Multiplexer On 

    

PortSet

(C2,1) 

    

Delay

(0,150,mSec) 

    LCount=1 
    

SubScan

(0,uSec,16) 

      'Switch to next AM16/32B Multiplexer channel 

      

PulsePort

(C1,10000) 

      'Generic Single Ended Voltage measurements 'SEVolt() on AM16/32B Multiplexer 

      

VoltSe

(SEVolt(LCount),3,mv5000,1,True,0,_60Hz,1,0) 

      LCount=3 
    

NextSubScan

 

    'Turn AM16/32B Multiplexer Off 

    

PortSet

(C2,0) 

    'Call Data Tables and Store Data 

    

CallTable

 Hourly 

    

CallTable

 Daily 

  

NextScan

 

EndProg

 

Summary of Contents for AM16B

Page 1: ...AM16 32B Relay Multiplexer Revision 7 18 Copyright 1987 2018 Campbell Scientific Inc...

Page 2: ...ucts to CSI CSI will return such Products by surface carrier prepaid within the continental United States of America To all other locations CSI will return such Products best way CIP port of entry per...

Page 3: ...ing address is CAMPBELL SCIENTIFIC INC RMA _____ 815 West 1800 North Logan Utah 84321 1784 For all returns the customer must fill out a Statement of Product Cleanliness and Decontamination form and co...

Page 4: ...beginning work Wear a hardhat and eye protection and take other appropriate safety precautions while working on or around tripods and towers Do not climb tripods or towers at any time and prohibit cl...

Page 5: ...3 Measurement Terminals 13 7 2 Grounding 13 7 3 Power Supply 14 7 4 Installation in Enclosure 14 8 Operation 14 8 1 Programming 15 8 1 1 Short Cut Programs 15 8 1 2 Using CRBasic MuxSelect Instruction...

Page 6: ...rmocouple measurement with reference junction at the AM16 32B using 107 L thermistor C 2 C 3 AM16 32B aluminum cover plate C 3 Tables 7 1 Control Terminal Function and Datalogger Connection 12 B 1 Wir...

Page 7: ...rs and AM16 32Bs with serial numbers greater than 5056 For Edlog datalogger support or for specifications for AM16 32Bs with serial numbers less than 5056 see an older version of this manual at www ca...

Page 8: ...panel sensor or multiplexer and which would not be covered under warranty 3 Initial Inspection The AM16 32B ships with o 4 grommets o 4 screws Upon receipt of the AM16 32B inspect the packaging and c...

Page 9: ...ck on the Short Cut icon Select Create New Program NOTE The first time Short Cut is run a prompt will appear asking for a choice of first notch frequency Select 60 Hz Noise Rejection for the United St...

Page 10: ...Scientific Inc US is probably the best fit if you are outside Europe To change the first notch frequency or sensor support option for future programs use the Program menu Select your datalogger model...

Page 11: ...program being created It is also used to jump directly to any step in the programming process The next window displays Available Sensors and Devices Expand a folder by clicking on the symbol Expand t...

Page 12: ...6 32 tab selected select the Sensors Temperature subfolder Double click on 107 Temperature Probe 4 wire In the resulting window enter the number of 107 temperature probes to measure on this AM16 32B m...

Page 13: ...seconds or longer Enter 30 and select Seconds Click Next After adding the measurements click Wiring Diagram to see how the sensors are to be wired to the AM16 32B and how the AM16 32B is to be wired...

Page 14: ...gress list to return to the sensor selection screen Select any other sensors you have in the Sensors section Add sensors to the datalogger by selecting the datalogger tab CR6 in this example Add senso...

Page 15: ...pairs or groups to datalogger terminals This effectively expands the number of terminals available on a datalogger FIGURE 5 1 shows the wiring panel of the AM16 32B multiplexer The group of four term...

Page 16: ...gger a channel advance A signal voltage 0 9 Vdc deactivates the AM16 32B clock pulse will not trigger a channel advance AM16 32B is also reset Clock1 On the transition from 1 5 V to 3 3 V a channel ad...

Page 17: ...t Capacitance 0 5 pF Typical Low current 30 mA Life 5 x 107 operations Maximum Contact Voltage Rating 70 V Relay Switching Thermal emf 0 3 V typical 0 5 V maximum Operate Time 10 ms over temperature a...

Page 18: ...ips may be purchased from Campbell Scientific 7 1 1 Control Terminals TABLE 7 1 depicts control connections to Campbell Scientific dataloggers TABLE 7 1 Control Terminal Function and Datalogger Connec...

Page 19: ...1 for examples 7 2 Grounding The AM16 32B has a ground lug that should be connected to earth ground via an 8 AWG wire This connection should be as short as possible The ground lug provides a path to d...

Page 20: ...B by applying 3 3 to 8 Vdc When this line drops lower than 0 9 Vdc the multiplexer enters a quiescent low current drain state In the quiescent state the common COM terminals are electrically disconnec...

Page 21: ...SETs are labeled beginning with 1H 1L and ending with 32H 32L In 2x32 mode when the AM16 32B selects a given channel the H terminal is relay connected to both COM H terminals and the L sensor termina...

Page 22: ...The repetitions parameter is the number of sensors per instruction that will be measured See the examples below Example 1 Example 1 LCount 1 SubScan 0 uSec 7 PulsePort C1 10000 VoltDiff Dest LCount 1...

Page 23: ...rogram In general longer delay times are necessary when sensors and datalogger are separated by longer lead lengths Consult the datalogger or sensor manual for additional information on these topics 8...

Page 24: ...itation in excess of 30 mA has been multiplexed that channel s relay contacts have been rendered unsuitable for further low voltage measurement To prevent undue degradation it is advisable to reserve...

Page 25: ...program On the Advanced tab click the CRBasic Editor button The program opens in CRBasic with the name noname CR_ Now save the program with your desired name in any folder Once the file is edited wit...

Page 26: ...nts Most of the following examples do not depict datalogger to AM16 32B control connections Section 7 1 1 Control Terminals p 12 but their presence is implied and required B 1 Single Ended Voltage Mea...

Page 27: ...ode CRBasic Example B 1 Single Ended Voltage Measurements Using MuxSelect Multiplexer in 4X16 Mode Declare Variables and Units Public SEVolt 9 Units SEVolt mV Define Data Tables DataTable Hourly True...

Page 28: ...V Define Data Tables DataTable Hourly True 1 DataInterval 0 60 Min 10 Sample 48 SEVolt FP2 EndTable DataTable Daily True 1 DataInterval 0 1440 Min 10 Average 48 SEVolt FP2 False Minimum 1 BattV FP2 Fa...

Page 29: ...offsets This allows you to adjust multipliers and offsets for each sensor individually For example in this program the third multiplier 8 and the third offset 9 would be applied to the third measureme...

Page 30: ...etition writing to DiffV 2 1 repetitions measuring 2 H L on mux VoltDiff DiffV 2 1 mv34 1 True 0 _60Hz Mult 2 Offs 2 Set 3 PulsePort C1 10000 move to Set 3 1 repetition writing to DiffV 3 1 repetition...

Page 31: ...Offs LCount LCount LCount 1 NextSubScan Turn AM16 32B Multiplexer Off PortSet C2 0 Call Data Tables and Store Data CallTable Hourly NextScan EndProg B 3 Half Bridge Measurement FIGURE B 3 shows a typi...

Page 32: ...G U1 CLK U2 RES CRBasic Example B 5 Campbell Scientific 107 Temperature Sensors Declare Variables and Units Dim LCount Public BattV Public PTemp_C Public T107_C 48 Units BattV Volts Units PTemp_C Deg...

Page 33: ...this configuration is that the resistance of the lead wire and multiplexer relays can cause a voltage drop reducing the excitation at the bridge The following section describes a configuration that co...

Page 34: ...ps Public ZMode Public CIndex Public CAvg Public LCount Public LoadCell 16 Public COff 16 Public Mult 16 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Public Offs 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Units BattV Volt...

Page 35: ...a Tables and Store Data CallTable TenSecond CallTable CalHist NextScan EndProg The following example is a CR1000 program With minor adjustments this program can be used with the CR300 series CR6 serie...

Page 36: ...asurement BattV Battery BattV Default CR1000X Datalogger Wiring Panel Temperature measurement PTemp_C PanelTemp PTemp_C _60Hz If TimeIntoInterval 0 60 Min Then Turn AM16 32B Multiplexer On PortSet C3...

Page 37: ...in the 4x16 configuration The program also measures 6 copper constantan thermocouples The Thermocouples are connected to differential channels 1 6 Declare Variables Public TRef TCTemp 6 PRTResist 16...

Page 38: ...red input for the PRT temperature calculation instruction NextSubScan Portset 1 0 Set C1 Low to disable Multiplexer Calculate the Temperature from R Ro PRT PRTTemp 1 16 PRTResist 1 1 0 0 CallTable Avg...

Page 39: ...TC wire polarity The CR300 CR6 CR1000 CR800 CR850 CR3000 and CR5000 have built in temperature references The measurement from the CR6 and CR300 PanelTemp instruction does not accurately reflect the t...

Page 40: ...32B Second some thermocouple wires have a greater resistance than copper which adds resistance to the non thermocouple sensor circuit For example constantan is approximately 26 times more resistive t...

Page 41: ...talling the aluminum cover plate FIGURE C 3 helps to minimize gradients For best results the AM16 32B should be shielded and insulated from all radiant and conducted thermal sources When an enclosure...

Page 42: ...Asia Location Bangkok Thailand Email info campbellsci asia Website www campbellsci asia China Location Beijing P R China Email info campbellsci com cn Website www campbellsci com cn Spain Location Ba...

Reviews: