Appendix A. Changing COM220 Settings

IMPORTANT

 

Do not put Instruction 97 inside a loop or conditional

 

 

statement; it must be executed each time the table is run.

 

 

 

 

 

 

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 5 High

 

3: Do (P86)

 

 

1:

18

Set Flag 8 High

4:End (P95)

5:Batt Voltage (P10)

1:

1

 

Loc [ BatVolt ]

;measure battery voltage

6: Internal Temperature (P17)

;measure panel temperature

1:

2

 

Loc [ TEMP_PANL ]

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)

Day,Hour/Minute,Seconds (midnight = 0000) ;place a time stamp

1:

111

 

9: Sample (P70)

 

 

1:

1

 

Reps

;sample battery voltage

2:

1

 

Loc [ BatVolt ]

10: Sample (P70)

 

 

1:

1

 

Reps

;sample panel temperature

2:

2

 

Loc [ Temp_PANL]

11: If time is (P92)

 

 

1:

0

 

Minutes (Seconds --) into a

 

2:

2

 

Interval (same units as above)

 

3:

25

 

Set Flag 5 Low

 

A-10