Campbell SDM-IO16 User Manual page 31

16 channel input/output expansion module
Table of Contents

Advertisement

1: 11
Do if Flag 1 is High
2: 30
Then Do
30: Z=F (P30)
1: 1
F
2: 0
Exponent of 10
3: 20
-- Z Loc [ Fan_1
31: Else (P94)
32: Z=F (P30)
1: 0
F
2: 0
Exponent of 10
3: 20
-- Z Loc [ Fan_1
33: End (P95)
34: Do (P86)
1: 21
Set Flag 1 Low
35: End (P95)
;End fan control logic based on heater/cooler
;Start fan control logic based on time
36: If time is (P92)
1: 10
Minutes (Seconds --) into a
2: 15
Interval (same units as above)
3: 12
Set Flag 2 High
37: If Flag/Port (P91)
1: 12
Do if Flag 2 is High
2: 30
Then Do
38: Beginning of Loop (P87)
1: 0
Delay
2: 5
Loop Count
39: Z=F (P30)
1: 1
F
2: 0
Exponent of 10
3: 20
-- Z Loc [ Fan_1
40: End (P95)
41: End (P95)
42: If time is (P92)
1: 0
Minutes (Seconds --) into a
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
;then
;put a '1' into fan control
;location
]
;else, if flag 1 is reset
;put a '0' into fan control
;location
]
;end 'then do/else'
;reset flag 1
;end master loop
;if 5 minutes remain
;out of 15 minute
;interval
;set flag 2
;if flag 2 is set
;then
;start fan loop
;put a '1' into fan control
;location
]
;end fan loop
;end 'then do'
;reset flag 2 at the
;end of the 15 minutes
Appendix A. Program Examples
A-5

Advertisement

Table of Contents
loading

Table of Contents