Sdmcd16ac (source, reps, sdmaddress), Sdmcvo4 (source, reps, sdmaddress, mode) – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 250

Section 7. Measurement Instructions
7-26
SDMCD16AC (Source, Reps, SDMAddress)
The SDMCD16AC instruction is used to control an SDM-CD16AC, SDM-
CD16, or SDM-CD16D 16 channel relay/control port device.
A port on an SDM-CD16xx is enabled/disabled (turned on or off) by sending a
value to it using the SDMCD16AC instruction. A non-zero value will turn the
port on; a zero value will turn it off. The values to be sent to the SDM-CD16xx
are held in the Source array.
This instruction cannot be used in a SubScan.
Parameter
& Data Type
Enter
SDMCD16AC PARAMETERS
Source
Array
An array, dimensioned as Float, Long, or Boolean, which holds the values
that is sent to the SDM-CD16AC to enable/disable its ports. An SDM-
CD16AC has 16 ports. Normally, 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 CDCtrl(32) would be sent to port 16 on the
second SDM-CD16AC.
If the Source parameter is defined as a Long variable that is dimensioned
less than 16 * Reps, then the Source will act as a binary control for the
instruction whose bits 0..15 will specify control ports 1..16, respectively. In
this instance, Source(1) will be used for the first rep, Source(2) will be used
for the second, etc.
Reps
Constant
The Reps parameter is the number of SDM-CD16AC devices to be
controlled with this instruction.
SDMAddress
Constant
The address of the first SDM-CD16AC that will be controlled with this
instruction. Valid SDM addresses are 0 through 15. If the SDMTrigger
instruction is used in the program, address 15 should not be used. If the
Reps parameter is greater than 1, the datalogger will increment the SDM
address for each subsequent device that it communicates with.
SDMCVO4 (Source, Reps, SDMAddress, Mode)
The SDMCVO4 instruction controls the SDM-CVO4, which outputs a voltage
or a current. Internal jumpers are used to set the mode for the device, but the
jumpers can be overridden with the Mode parameter in this instruction.
This instruction cannot be used in a SubScan.
NOTE
NOTE