Campbell Scientific SDM-IO16 16-Channel Input/Output Expansion Module User Manual
Page 32

SDM-IO16 16 Channel Input/Output Expansion Module
;Maximum windspeeds with time of maximum
11: Maximum (P73)
1: 4
Reps
2: 10
Value
with
Hr-Min
3: 2
Loc [ Windspd_1 ]
;Totalize the rainfall over the previous hour
12: Totalize (P72)
1: 4
Reps
2: 6
Loc [ Rain_1 ]
*Table 2 Program
02: 0.0000 Execution
Interval
(seconds)
*Table 3 Subroutines
End Program
7.4 A CR10X Program that uses the Interrupt Subroutine in the
Datalogger to Record the Time of Change of any one of
the Ports on an SDM-IO16
This program can also be used with a CR23X datalogger.
;{CR10X}
;An example that shows the use of the IO16 to detect the change
;of state of one of the 16 ports and indicate this to the
;datalogger using the I/O line (which should be connected to C8).
;The datalogger in turn reads the status and captures the
;current port status and writes this with a time stamp to memory
;
*Table 1 Program
01: 5
Execution
Interval
(seconds)
;First configure the IO16 if not already done
;If flag 1 is not set, i.e. the program has just
;been compiled or datalogger powered up.
;This code is needed to set the IO16 to pulse its I/O line
;if any port changes state.
1: If Flag/Port (P91)
1: 21
Do if Flag 1 is Low
2: 30
Then
Do
26