beautypg.com

Datalogger instructions – Campbell Scientific SDM-CD16S 16-Channel Solid State DC Relay Controller Module User Manual

Page 11

background image

SDM-CD16S 16 Channel Solid State DC Control Module

TABLE 2. Switch Position and Addresses

Switch

Setting

Base 10 Address

CRBasic Dataloggers

Base 4 Address

Edlog Dataloggers

0 0 00
1 1 01
2 2 02
3 3 03
4 4 10
5 5 11
6 6 12
7 7 13
8 8 20
9 9 21

A 10 22

B 11 23
C 12 30

D 13 31

E 14 32
F 15 33

6. Datalogger Instructions

6.1 CRBasic Dataloggers (CR800, CR850, CR1000, CR3000,

CR5000, CR9000(X))

The SDMCD16AC instruction is used to control all versions of the SDM-
CD16.

SDMCD16AC (Source, Reps, SDMAddress)

Remarks

A port on an SDM-CD16AC is enabled/disabled (turned on or off) by sending
a value to it using the SDMCD16AC instruction. A non-zero value will enable
the port; a zero value disables it. The values to be sent to the SDM-CD16AC
are held in the Source array.

The SDMCD16AC instruction has the following parameters:

Source

The Source parameter is an array (dimensioned as Float,
Long, or Boolean) which holds the values that will be sent to
the SDM-CD16AC to enable/disable its ports. An SDM-
CD16AC has 16 ports; therefore, in most instances the
source array should be dimensioned to 16 times the number
of Repetitions (the number of SDM-CD16AC 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

7