background image

User Guide

7

For older CR7s with Instruction 29, the Device (parameter 2) specifies what type
of synchronously addressed peripheral is to be addressed. The Device code for an
SDM-CD16D  is 2.

For Instruction 29 only (older CR7s), the Card parameter (parameter 4) specifies
which 725 Excitation Card is being used for the control port signals. The Reps
parameter does not advance beyond the specified Card, requiring another
Instruction 29 for each 725 Excitation Card used.

7.  Theory of Operation

On power-up, all SDM-CD16D outputs are off /LO.

The SDM-CD16D is a synchronously addressed peripheral. C2 and C3, driven
high by the datalogger, initiate a cycle. While holding C3 high, the datalogger
drives C2 as a clock line and C1 as a serial data line. The datalogger shifts out 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 Example

The example is written for the CR10/10X 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.

Cooling unit:

Activate when temperature >27.5°C.
Deactivate when temperature <24.5°C.

Mixing fan:

Activate whenever the heating or cooling units are activated.
Activate for 5 minutes out of every 15 minutes.

The program assumes that the temperature measurements have been made, and
that the average temperature for each greenhouse is computed and stored in input
locations 1 to 5. For further information on loops and input location indexing,
please refer to your datalogger manual.

Input location assignments are as follows:

Input

Input

Location

Location Label

Description

1..5

Temp #1..#5

Avg. temp. greenhouse 1..5

Summary of Contents for SDM-CD16D

Page 1: ...SDM CD16D 16 Channel Digital Control Port Expansion Module User Guide Issued 15 6 99 Copyright 1999 Campbell Scientific Ltd...

Page 2: ......

Page 3: ...in lieu of all other guarantees expressed or implied including those of suitability and fitness for a particular purpose Campbell Scientific is not liable for consequential damage Please inform us bef...

Page 4: ......

Page 5: ...ddress Selection Switches 5 6 Datalogger Instructions 104 CR10 10X CR23X 21X newer CR7s and 29 older CR7s 6 7 Theory of Operation 7 8 Program Example 7 Figures 1 SDM CD16D 1 2 Equivalent Output Driver...

Page 6: ......

Page 7: ...nchronously addressed datalogger peripheral Datalogger control ports 1 2 and 3 are used to address the SDM CD16D then clock out the desired state of each of the 16 control ports Up to sixteen SDM CD16...

Page 8: ...d EN50082 1 1998 If more detailed output characteristics are required experienced users should consult the equivalent circuit diagrams shown in Figure 2 below Figure 2 Equivalent Output Driver Circuit...

Page 9: ...ls This limitation reduces the number of available analogue input channels and may make an external supply for the SDM CD16D essential 4 Installation For correct operation the SDM CD16D must be instal...

Page 10: ...ng SDM CD16Ds to SDM CD16Ds and the datalogger should not exceed 6m Total cable lengths in excess of 6m will adversely affect communication performance For CR7 dataloggers the total cable length can b...

Page 11: ...nding address Figures 1 and 5 shows the position of the switch Note that you will have to remove the mounting bracket to gain access to this switch Table 2 Switch Position and Addresses Switch Setting...

Page 12: ...tarting Address base 4 00 33 4 2 Card Excitation card No 5 4 Starting Input Location Execution Time 150ms to 190ms per Rep The number of SDM CD16Ds to be addressed is defined by the Reps repetitions p...

Page 13: ...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 P...

Page 14: ...hreshold 2 4 3 23 5 F 4 30 Then Do then 3 Z F P30 put a 1 into heater control 1 1 F location 2 0 Exponent of 10 3 10 Z Loc Heat_1 4 End P95 end then do 5 If X F P89 if the heater is on heater 1 10 X L...

Page 15: ...hen Do 17 Z F P30 if cooler should be turned off 1 0 F put a 0 into cooler control 2 0 Exponent of 1 location 3 15 Z Loc Cool_1 18 End P95 end then do 19 Else P94 else if cooler is off 20 Z F P30 put...

Page 16: ...flag 2 is set 1 12 Do if Flag 2 is 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...

Page 17: ...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 11 1 0 19 Cool_5 19 1 0 20 Fan_1 7 1 3 21 Fan_2 11 1 0 22 Fan_3 11 1...

Reviews: