beautypg.com

H.4 remote datalogger programming – Campbell Scientific CR10X Measurement and Control System User Manual

Page 275

background image

APPENDIX H. CALL ANOTHER DATALOGGER VIA PHONE OR RF

H-3

3: Extended Parameters (P63)

1:

5

Phone # = 539

2:

3

3:

9

4:

68

“D” to call datalogger

5:

3

# of Locs to collect

6:

1

1

st

Loc to collect

7:

1

Flag to toggle in Remote
Datalogger

8:

0

Delay

4: Extended Parameters (P63)

1:

13

Terminate character

2:

00

3:

00

4:

00

5:

00

6:

00

7:

00

8:

00

Programming Example 2.2: Calling CR10X

using RF modems

Program: This program fragment calls a
datalogger every 2 minutes at using the RF
Path of “4 10F” (that is from the calling CR10X
to RF ID# 4 to RF ID# 10 at the remote site).
The CR10X toggles Flag 1 in the remote
datalogger to trigger measuring and data
collection. It collects 3 input locations beginning
at the remote datalogger’s location 1. These
values are stored in locations 2, 3, and 4.

Flag Usage: Flag 2 is used to control
Instruction 97 (when to make the call). The
program need only set the flag low; Instruction
97 will set it high after a successful transfer.

*Table 1 Program

01:

1.0

Execution Interval (seconds)

1: If time is (P92)

1:

0

Minutes (Seconds --) into a

2:

2

Interval (same units as above)

3:

22

Set low Flag 2

2: Initiate Telecommunications (P97)

1:

02

RF Modem/9600 Baud

2:

2

Disabled when User Flag 2
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:

1

Failures Loc [ Failures ]

8:

0000

Data Logger ID

3: Extended Parameters (P63)

1:

4

RF ID# of repeater site = 4

2:

32

Space

3:

1

RF ID# of 2

nd

site = 10

4:

0

5:

70

“F”

6:

68

“D” to call datalogger

7:

3

# of Locs to Collect

8:

1

1st Loc to Collect

4: Extended Parameters (P63)

1:

1

Flag to toggle in Remote
Datalogger

2:

0

Delay

3:

13

Terminate character

4:

0

5:

0

6:

0

7:

0

8:

0

H.4 REMOTE DATALOGGER

PROGRAMMING

The remote datalogger should be programmed
to detect when the specified flag is set high.
When the flag is set high, measurements and
processing are done; then the flag is set low.
Once the calling datalogger detects that the flag
is low, it collects the specified input locations.

Since the calling datalogger sets the flag by
toggling it, the remote datalogger should be
programmed so the flag is always low except
when the calling datalogger sets it. If the flag is
already high when the call occurs, the flag will
be toggled (setting it low), and the input
locations will be transferred immediately.

The calling datalogger may have to wait an entire
remote datalogger execution interval before the
flag set is detected. The execution interval in the
datalogger being called should be set to allow the
call to be completed within the time limit set in
Parameter 3 of Instruction 97 of the calling
datalogger.

Program example for a remote 21X

Program: Measures battery voltage, and
internal and external temperatures in response
to a call from the calling datalogger.

Flag Usage: Flag 1 will be set high by the
calling datalogger. The flag is lowered after the
measurements are made.