Specifications

SDM-CD16AC 16 Channel AC/DC Controller
8
For each Rep, the 16 ports of the addressed SDM-CD16AC are set according
to 16 sequential Input Locations starting at the Input Location specified in
parameter 3 (Instruction 29 parameter 5). Any non-zero value stored in an
input location activates the associated SDM-CD16AC port. A value of zero (0)
deactivates the port For example, assuming 2 Reps and a starting Input
Location of 33, OUTPUT 1 through 16 of the first SDM-CD16AC are set
according to Input Locations 33 through 48, and OUTPUT 1 through 16 of the
second SDM-CD16AC are set according to Input Locations 49 through 64.
For Instruction 29, the Device (parameter 2) specifies what type of
synchronously addressed peripheral is to be addressed. The Device code for an
SDM-CD16AC is 2.
For Instruction 29 only (CR7), the Card 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
The SDM-CD16AC 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-CD16AC shifts in the C1 data bit on the rising edge of the
C2 clock.
The first 8 bits clocked out represent the SDM-CD16AC address. If the
address matches the SDM-CD16AC's address, the SDM-CD16AC is enabled.
If enabled, the next 16 bits are shifted into the SDM-CD16AC, each bit
controlling one port, the first of which controls OUTPUT1.
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 Measurement and Control Module. The
program concepts presented are the same for the 21X and CR7 dataloggers
with minor program code changes.
In this example, the SDM-CD16AC is used to control the temperature between
23° and 28°C in each of 5 greenhouses. In each green house the SDM-
CD16AC 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