101 sdm-int8, 102 sdm-sw8a – Campbell Scientific CR23X Micrologger User Manual
Page 154

SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-20
*** 101 SDM-INT8 ***
FUNCTION
The 8 channel Interval Timer (INT8) is a
measurement module which provides processed
timing information to the datalogger. Each of the 8
input channels may be independently configured to
detect either rising or falling edges of either a low
level AC signal or a 5 V logic signal. Each channel
may be independently programmed. See the
SDM-INT8 manual for detailed instructions and
examples.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Address, Base 4
(00..33)
02:
4
*Input config; channels
8,7,6,5
03:
4
*Input config; channels
4,3,2,1
04:
4
**Function; channels
8,7,6,5
05:
4
**Function; channels
4,3,2,1
06:
4
***Averaging option
07:
4
Loc
08:
FP
Mult
09:
FP
Offset
Execution Time:
2.3 ms + 1.65 ms/value +
averaging interval if used
Intermediate locations required: 1
Input locations altered: 1 per function
* Input configurations:
0 =
5V logic level, rising edge
1 =
5V logic level, falling edge
2 =
low level ac, rising edge
3 =
low level ac, falling edge
** Function:
0 =
none
1 =
period in ms
2 =
frequency in kHz
3 =
time since previous channel's
edge in ms
4 =
time since channel 1 in ms
5 =
counts on channel 2 since
channel 1, linear interpolation
6 =
frequency in kHz (low resolution)
7 =
counts
8 =
counts on Channel 2 since
Channel 1, no interpolation
*** Averaging option:
0
Average over execution interval
0--
Continuous averaging
XXXX
Averaging interval in ms,
XXXX>0
XXXX-
Capture all events until XXXX
edges of channel 1 (0
9999-
Test memory
*** 102 SDM-SW8A ***
FUNCTION
The 8 channel SDM-SW8A Switch Closure
Input Module is a peripheral for measuring up to
8 channels of switch closure or voltage pulse
inputs. Each channel may be configured to
read single-pole double-throw (SPDT) switch
closure, single-pole single-throw (SPST) switch
closure, or voltage pulse. Output options
include counts, duty cycle, or state.
The SW8A is addressed by the datalogger,
allowing multiple SW8A's to be connected to
one datalogger. 16 addresses are available,
but for most applications Campbell Scientific
recommends no more than 4 SW8A's be
connected to one datalogger.
If more channels are requested than exist in
one module, the datalogger automatically
increments the address and continues to the
next SW8A. The address settings for multiple
SW8A's must sequentially increase. For
example, assume 2 SW8A's with an address of
22 and 23 are connected, and 12 Reps are
requested. Eight channels from the first SW8A
and the first 4 channels from the second SW8A
will be read.
Only one Function Option (Parameter 3) may be
specified per P102 Instruction. If all 4 functions
are desired, 4 P102 Instructions are required.
Function Option 0 provides the state of the
signal at the time P102 is executed. A 1 or 0
corresponds to high or low states, respectively.
Function Option 1 provides signal duty cycle.
The result is the percentage of time the signal is
high during the sample interval.
Function Option 2 provides a count of the
number of positive transitions of the signal.
Function Option 3 provides the signature of the
SW8A PROM. A positive number (signature)
indicates the PROM and RAM are good, a zero
(0) indicates bad PROM, and a negative number