beautypg.com

Campbell Scientific COM220 56k Phone Modem User Manual

Page 30

background image

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.

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 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)
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 5 Low


12: Initiate Telecommunications (P97)
1: 22

Phone Modem/9600 Baud ;set baud rate/modem

2: 5

Disabled when User Flag 5 is High

3: 45

Seconds Call Time Limit

4: 0

Seconds Before Fast Retry

5: 0

Fast Retries

6: 0

Minutes Before Slow Retry

7: 3

Failures Loc [ Failures ]

8: 222

Callback ID

;must also enter callback ID in LoggerNet Setup

IMPORTANT

A-10