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

SDM-IO16 16 Channel Input/Output Expansion Module
28
;Set the output flag to force immediate storage of data
3: Do (P86)
1: 10
Set Output Flag High (Flag 0)
;Fix the array ID at 2000
4: Set Active Storage Area (P80)
1: 1
Final Storage Area 1
2: 200
Array
ID
;Store the time now
5: Real Time (P77)
1: 1111
Year,Day,Hour/Minute,Seconds (midnight = 0000)
;Switch to high resolution to ensure we can store the maximum value with
;full resolution, i.e. 5 digits for 65536
6: Resolution (P78)
1: 1
High
Resolution
;Sample the port status as a single binary value
7: Sample (P70)
1: 1
Reps
2: 2
Loc [ Portstat_ ]
8: End (P95)
End Program