103 sdm-ao4, 104 sdm-cd16ac – Campbell Scientific CR23X Micrologger User Manual
Page 155

SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-21
indicates bad RAM. Function Option 3 is not
used routinely, but is helpful in "debugging".
Only one Rep is required for Option 3.
Parameter 4 specifies the first SW8A channel to
be read (1..8). One or more sequential
channels are read depending on the Reps. To
optimize program efficiency, the sensors should
be wired sequentially.
Data are stored in sequential input locations,
starting at the location specified in Parameter 5.
The number of input locations consumed is
equal to the number of Reps.
The scaling multiplier and offset (Parameters 6
and 7) are applied to all readings. If a multiplier
is not entered, all readings are set to 0.
If the SW8A does not respond, -99999 will be
loaded into input locations. Modules which do
not respond when addressed by the datalogger
are possibly wired or addressed incorrectly.
Verify the address specified in Parameter 2
corresponds to the jumper setting and all
connections are correct and secure. See the
SDM-SW8 Manual for examples.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Reps (# of channels)
02:
2
Starting Address, Base 4
(00..33)
03:
2
Function Option
(0=State, 1=Duty,
2=Counts, 3=Signature)
04:
2
SDM-SW8A Starting
Channel (1..8)
05:
4
Starting input location
06:
FP
Mult
07:
FP
Offset
Input locations altered: 1 per channel
*** 103 SDM-AO4 ***
FUNCTION
Instruction 103 is used to activate a SDM-AO4
connected to ports C1, C2, and C3.
There are 4 analog voltage outputs per SDM-
AO4. The output voltages in millivolts must be
stored in 4 adjacent input locations starting with
the location entered in parameter 3. Four reps
are required for each SDM-A04. Every 4 reps
another device at the next higher address is
selected.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01
2
Reps (# of outputs)
02
2
Starting Address, Base 4
(00..33)
03
4
Starting input location
C1 is Data line
C2 is Clk/Hand Shake line
C3 is SDE (Enable) line
Input locations reads: 1 per repetitions
*** 104 SDM-CD16AC ***
FUNCTION
Instruction 104 is used to control the SDM-
CD16AC or the SDM-CD16. The SDM-
CD16AC Control Port Expansion Module has 16
digital control ports with drivers. Each port can
be controlled by a datalogger or controlled
manually with an override toggle switch. Each
port can be thought of as a switch to ground;
closed when active, open when inactive. The
primary function is to activate AC powered
external relays, solenoids, or resistive loads
under datalogger control.
The SDM-CD16AC is a synchronously
addressed datalogger peripheral. Datalogger
control ports 1, 2 and 3 are used to address the
SDM-CD16AC then clock out the desired state
of each of the 16 control ports. Up to 16 SDM-
CD16AC's may be addressed, making it
possible to control a maximum of 256 ports
from the first three datalogger control ports.
For each Rep, the 16 ports of the addressed
SDM-CD16AC are sent according to 16
sequential input locations starting at the input
location specified in parameter 3. Any non-zero
value stored in an input location activates
(connects to ground) the associated SDM-
CD16AC port. A value of zero (0) deactivates
the port (open circuit). 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. See the SDM-CD16AC
manual for detailed instructions and examples.