beautypg.com

Campbell Scientific CR23X Micrologger User Manual

Page 289

background image

APPENDIX G. CALLBACK (CR23X INITIATED TELECOMMUNICATIONS)

G-7

G.3.4 PAGER APPLICATION

Following is an example program that causes a
CR23X to call a pager in response to an alarm
condition. No data are transferred.

The first program segment (instructions 1
through 5) presets the P97 interrupt disable flag
on the first program execution only.

Input location [3] is used as a master control
register. If Flag 4 is low, then input location [3]
increments by 1. If input location [3] is <> 0, no
further callbacks will be attempted. This way the

number of attempts / pages from one alarm
event can be controlled. Location [3] must
manually be cleared to reset the pager alarm.

CR23X to pager communications are strictly
one-way, so the CR23X will not retry based on
the success or failure of the page. Commas
create a delay between the number being dialed
and page numbers being transmitted. Each
comma causes a 2-second delay. Specific
applications require the number of retries and
the delay to be determined by trial and error.
Four or five successful tests before deployment
are recommended.

*Table 1 Program

01:

10.0

Execution Interval (seconds)

;
;****************************************
;Interrupt disable flag is set high to prevent callback.
;Error location cleared.
;Flag transition states are preset.
;****************************************
;
1: If Flag/Port (P91)

1:

21

Do if Flag 1 is Low

2:

30

Then Do

2: Do (P86)

1:

11

Set Flag 1 High

3: Do (P86)

1:

14

Set Flag 4 High

4: Z=F (P30)

1:

0

F

2:

0

Exponent of 10

3:

4

Z Loc [ ErrorLoc ]

5: Z=F (P30)

1:

1

F

2:

0

Exponent of 10

3:

5

Z Loc [ new_flag ]

6: Z=F (P30)

1:

1

F

2:

0

Exponent of 10

3:

6

Z Loc [ old_flag ]

7: End (P95)

8: Panel Temperature (P17)

1:

1

Loc [ RefTemp ]