background image

SDM-CD16D 16 Channel Digital Control Port Expansion Module 

6.  Datalogger Instructions 

6.1  CRBasic 

The SDMCD16AC instruction in CRBasic is used by our CR800, CR850, 
CR1000, CR3000, and CR5000 dataloggers.  With this instruction, a port on 
an SDM-CD16D is enabled/disabled (turned on or off) by sending a value to it.  
A non-zero value will enable the port; a zero value disables it.  The values to 
be sent to the SDM-CD16D are held in the Source array. 

Syntax 

SDMCD16AC (

Source Reps SDMAddress

Remarks 

The SDMCD16AC instruction has the following parameters: 

Source  

The Source parameter is an array which holds the values that 
will be sent to the SDM-CD16D to enable/disable its ports. An 
SDM-CD16D has 16 ports; therefore, the source array must be 
dimensioned to 16 times 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 be sent to port 2, etc. The value held in CDCtrl(32) would 
be sent to port 16 on the second SDM-CD16D. 

Reps 

The Reps parameter is the number of SDM-CD16D devices 
that will be controlled with this instruction.  

SDMAddress  The SDMAddress parameter is used to define the address of 

the SDM-CD16D that will be controlled with this instruction.  
Valid SDM addresses are 0 through 14. Address 15 is reserved 
for the SDMTrigger instruction. If the Reps parameter is 
greater than 1, the datalogger will increment the SDM address 
for each subsequent device that it communicates with. 

6.2  Edlog 

Instruction 104 is used by the CR10/10X, CR23X, CR7 and 21X to control the 
SDM-CD16D, and Instruction 29 is used by older CR7s. The Instruction 
descriptions are shown below. 

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: