Campbell Hausfeld COM220 Manual Do Utilizador

Página de 36
Appendix A.  Changing COM220 Settings 
Do not put Instruction 97 inside a loop or conditional 
statement; it must be executed each time the table is run. 
IMPORTANT 
In the example below, the program does two minute data callbacks via the 
COM220 phone modem.  Edit instruction 13 with your PC’s (LoggerNet’s) 
phone number.  Remember to set COM220 DIP switch 5 to “closed”, switch 1 
open for Modem Enable mode, and switches 3 and 4 open for 9600 baud.  The 
callback ID in this example is 222. The callback ID is a user-specified number 
and must also be entered in LoggerNet Setup for callbacks to work. 
*Table 1 Program 
 01: 5 
 Execution 
Interval 
(seconds) 
 
; Prevent callback when program Compiled 
1:  If Flag/Port (P91) 
  1:  28 
  Do if Flag 8 is Low 
 2:  30 
 Then 
Do 
 
 
2:  Do (P86) 
 
 1:  15 
 Set 
Flag 
High 
 
 
3:  Do (P86) 
 
 1:  18 
 Set 
Flag 
High 
 
4:  End (P95) 
 
5:  Batt Voltage (P10) 
  1:  1 
  Loc [ BatVolt   ]  
;measure battery voltage 
 
6:  Internal Temperature (P17) 
 1:  2 
 Loc 
TEMP_PANL 
 
;measure panel temperature 
 
7:  If time is (P92)    
;final storage every 10 seconds 
  1:  0 
--  Minutes (Seconds --) into a 
  2:  10 
  Interval (same units as above) 
  3:  10 
  Set Output Flag High (Flag 0) 
 
8:  Real Time (P77) 
  1:  111 
  Day,Hour/Minute,Seconds (midnight = 0000)   ;place a  time stamp 
 
9:  Sample (P70) 
 1:  1 
 Reps 
  2:  1 
  Loc [ BatVolt   ] 
;sample battery voltage 
 
10: Sample (P70)  
  1:   1  
  Reps 
 2:  2 
 Loc 
Temp_PANL] 
;sample panel temperature 
 
11:  If time is (P92) 
  1:  0 
  Minutes (Seconds --) into a 
  2:  2 
  Interval (same units as above) 
 3:  25 
 Set 
Flag 
Low 
 
A-10