background image

SDM-CD16D 16 Channel Digital Control Port Expansion Module 

a data bit on C1 (LSB first) on the falling edge of the C2 clock. The SDM-
CD16D shifts in the C1 data bit on the rising edge of the C2 clock. 

The first eight bits clocked out represent the SDM-CD16D address. If the 
address matches the SDM-CD16D’s address, the SDM-CD16D is enabled. If 
enabled, the next 16 bits are shifted into the SDM-CD16D, each bit controlling 
one port, the first of which controls output 1. 

When the 16 control bits are clocked in, C2 is held high while C3 is pulsed low 
then high to latch the control bits. The datalogger then lowers both C3 and C2 
to complete the cycle. 

8.  Program Examples 

8.1  CRBasic Example 

In the following CR1000 program example, a counter is used to fill an array 
called Src( ) that will control two SDM-CD16Ds.  

'Dimension Variables 

Public src(32) 
Dim i, count, mask(16) 
 

'Program 

BeginProg 
for i=1 to 16 
 

mask(i) = 2^(i-1) 

 next 

 Scan(20,msec,2,0) 
 

 

count = count + 1 

 

 

for i=1 to 32 

 

 

 

src(i) = count AND mask(((i-1) MOD 16) +1) 

  next 

  SDMCD16AC(src(),2,1) 
 NextScan 
EndProg  

 

8.2  Edlog Example 

The example is written for the CR10(X) Measurement and Control Module. 
The program concepts presented are the same for the CR23X, 21X and CR7 
dataloggers with minor changes in the program code. 

In this example, the SDM-CD16D is used to control the temperature between 
23°C and 28°C in each of five greenhouses. In each greenhouse the SDM-
CD16D controls a heating unit, a refrigerating unit and an air mixing fan 
according to the following conditions: 

Heating unit: 

Activate when temperature <23.5°C. 
Deactivate when temperature >25.5°C. 

Summary of Contents for SDM-CD16D

Page 1: ...SDM CD16D 16 Channel Digital Control Port Expansion Module Revision 8 07 C o p y r i g h t 2 0 0 0 2 0 0 7 C a m p b e l l S c i e n t i f i c I n c...

Page 2: ...in lieu of all other warranties expressed or implied including warranties of merchantability or fitness for a particular purpose CAMPBELL SCIENTIFIC INC is not liable for special indirect incidental o...

Page 3: ...Considerations 3 4 Installation 4 4 1 Controlled Device Connections 4 5 Address Selection Switches 5 6 Datalogger Instructions 7 6 1 CRBasic 7 6 2 Edlog 7 7 Theory of Operation 8 8 Program Examples 8...

Page 4: ...This is a blank page...

Page 5: ...ct control of low voltage valves relays etc The SDM CD16D is a synchronously addressed datalogger peripheral Three ports on the datalogger are used to address the SDM CD16D then clock out the desired...

Page 6: ...t Source Current Output will source 36 mA 3 V 115 mA short circuited to ground Max Output Current 400 mA at 50 C and 12 V supply see NOTE below total all outputs The maximum current should be derated...

Page 7: ...Alkaline batteries are not recommended for long term applications Connection with External Supply Connection with Datalogger Supply GND EXTERNAL 9 TO 18V DC SDM CD16D DATALOGGER 12V C1 C2 C3 SDM C1 o...

Page 8: ...corner of the 700X control module NOTE Multiple SDM CD16Ds may be wired in parallel by connecting the datalogger side of one SDM CD16D to the next The transient protection of the SDM CD16D relies on...

Page 9: ...han one solid core wire into one terminal connector unless the wires are soldered or clamped together When inserting more than one stranded wire twist the bare ends together before insertion NOTE Use...

Page 10: ...rt Expansion Module TABLE 2 Switch Position and Addresses Switch Setting Base 4 Address 0 00 1 01 2 02 3 03 4 10 5 11 6 12 7 13 8 20 9 21 A 22 B 23 C 30 D 31 E 32 F 33 Use a screwdriver to select addr...

Page 11: ...imes the number of Repetitions the number of SDM CD16D devices to be controlled As an example with the array CDCtrl 32 the value held in CDCtrl 1 will be sent to port 1 the value held in CDCtrl 2 will...

Page 12: ...pecified in parameter 3 parameter 5 for Instruction 29 Any non zero value stored in an input location activates sets HI 5 V the associated SDM CD16D port A value of zero 0 de activates the port sets L...

Page 13: ...following CR1000 program example a counter is used to fill an array called Src that will control two SDM CD16Ds Dimension Variables Public src 32 Dim i count mask 16 Program BeginProg for i 1 to 16 m...

Page 14: ...atalogger manual Input location assignments are as follows Input Input Location Location Label Description 1 5 Temp 1 5 Avg temp greenhouse 1 5 10 14 Heat 1 5 Heater control greenhouse 1 5 SDM CD16D P...

Page 15: ...location 3 10 Z Loc Heat_1 8 End P95 end then do 9 Else P94 else if the heater is off 10 Z F P30 enter a 0 into heater 1 0 F control location 2 0 Exponent of 10 3 10 Z Loc Heat_1 11 End P95 end then...

Page 16: ...0 Exponent of 10 3 15 Z Loc Cool_1 21 End P95 end then do else End cooler control logic Start fan control logic based on heater cooler 22 If X F P89 if heater is on 1 10 X Loc Heat_1 2 2 3 0 F 4 11 S...

Page 17: ...High 2 30 Then Do then 33 Beginning of Loop P87 start fan loop 1 0 Delay 2 5 Loop Count 34 Z F P30 put a 1 into fan control 1 1 F location 2 0 Exponent of 10 3 20 Z Loc Fan_1 35 End P95 end fan loop...

Page 18: ...0 7 _________ 0 0 0 8 _________ 0 0 0 9 _________ 0 0 0 10 Heat_1 7 3 3 11 Heat_2 11 1 0 12 Heat_3 11 1 0 13 Heat_4 11 1 0 14 Heat_5 19 1 0 15 Cool_1 7 3 3 16 Cool_2 11 1 0 17 Cool_3 11 1 0 18 Cool_4...

Page 19: ...This is a blank page...

Page 20: ...L www campbellsci com br suporte campbellsci com br Campbell Scientific Canada Corp CSC 11564 149th Street NW Edmonton Alberta T5M 1W7 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Sci...

Reviews: