Campbell Scientific SDM-IO16 16-Channel Input/Output Expansion Module User Manual
Page 29
SDM-IO16 16 Channel Input/Output Expansion Module
36: If time is (P92)
;if 5 minutes remain
1: 10
Minutes (Seconds --) into a
;out of 15 minute
2: 15
Interval (same units as above) ;interval
3: 12
Set Flag 2 High
;set flag 2
37: If Flag/Port (P91)
;if flag 2 is set
1: 12
Do if Flag 2 is High
2: 30
Then
Do
;then
38: Beginning of Loop (P87)
;start fan loop
1: 0
Delay
2: 5
Loop
Count
39: Z=F (P30)
;put a '1' into fan control
1: 1
F
;location
2: 0
Exponent
of
10
3: 20
-- Z Loc [ Fan_1 ]
40: End (P95)
;end fan loop
41: End (P95)
;end 'then do'
42: If time is (P92)
;reset flag 2 at the
1: 0
Minutes (Seconds --) into a
;end of the 15 minutes
2: 15
Interval (same units as above)
3: 22
Set Flag 2 Low
;End fan control logic based on time
;Input locations 10 to 24 are now loaded
;with a '1' or '0' to set ports on the SDM-IO16
;Omit this instruction if using an older datalogger
;see below
43: SDM-IO16 (P188)
1: 00
SDM
Address
2: 94
Command
Code
Option
;set the ports from locations
3: 0000
Ports
16-13
;port settings not used for 94
4: 0000
Ports
12-9
5: 0000
Ports
8-5
6: 0000
Ports
4-1
7: 27
Return Code Loc [ ErrCount ] ;for return code
8: 10
First Loc [ Heat_1 ]
;for control values
9: 1.0
Mult
10: 0.0
Offset
;Alternatively for older dataloggers P104 could be used
;Remove the above and uncomment this instruction
;43: SDM-CD16 (P104)
;send instructions to the
;1: 1
Reps
;SDM-IO16 with address 00
;2: 00
Address
;3: 10
Loc [ Heat_1 ]
23