Ports 17 18 19; Ports 21; Ports; Ports 44 - Campbell SDM-IO16 User Manual

16 channel input/output expansion module
Table of Contents

Advertisement

6: 2222

Ports 4-1

7: 1
Return Code Loc [ ErrCount ]
8: 2
First Loc [ Windspd_1 ]
9: 1.0
Mult
10: 0.0
Offset
;Set flag 1 high to indicate we have run the setup code
3: Do (P86)
1: 11
Set Flag 1 High
4: End (P95)
;Measure the four frequencies and write to four input locations
;applying a scaling to m/s
5: SDM-IO16 (P188)
1: 00
SDM Address
2: 40
Command Code Option
3: 0
Ports 16-13
4: 0
Ports 12-9
5: 0
Ports 8-5
6: 0
Ports 4-1
7: 1
Return Code Loc [ ErrCount ]
8: 2
First Loc [ Windspd_1 ]
9: .05148
Mult
10: 0.0
Offset
;Measure the four pulses counts and write to four locations
;as equivalent rainfall in mm
6: SDM-IO16 (P188)
1: 00
SDM Address
2: 18
Command Code Option
3: 0
Ports 16-13
4: 0
Ports 12-9
5: 0
Ports 8-5
6: 0
Ports 4-1
7: 1
Return Code Loc [ ErrCount ]
8: 6
First Loc [ Rain_1 ]
9: 0.2
Mult
10: 0.0
Offset
;Example of output instructions
;Every hour
7: If time is (P92)
1: 0
Minutes (Seconds --) into a
2: 60
Interval (same units as above)
3: 10
Set Output Flag High (Flag 0)
;Fix the array ID to 100
8: Set Active Storage Area (P80)
1: 1
Final Storage Area 1
2: 100
Array ID
;Store a time stamp first
9: Real Time (P77)
1: 1110
Year,Day,Hour/Minute (midnight = 0000)
;Store average windspeeds
10: Average (P71)
1: 4
Reps
2: 2
Loc [ Windspd_1 ]
Appendix A. Program Examples
;Set ports 1..4 as normal inputs
; of IF block
;read the freq of the signals on ports 1..4
;port settings not used for 40
;for return code
;for first windspeed data
;Calibration to give m/s for A100L2
;Count the pulses on ports 5..8
;port settings not used for 18
;for return code
;for rain values
;Typical calib for mm per tip
A-7

Advertisement

Table of Contents
loading

Table of Contents