A.5 example 5: call-back – Campbell Scientific RF450 Spread Spectrum Radio User Manual

Page 36

Advertising
background image

Appendix A. Installation Scenarios

A.5 Example 5: Call-back

Call-back is the ability of a remote site to initiate a call to LoggerNet and have
LoggerNet call back to collect data. Call-back is supported in networks
consisting of RF450s as the single communications device as in Examples 1, 2,
and 3. Example configurations where call-back is supported:

LN-RF450 Master ~~~~~RF450 Slave -DL

LN-RF450 Master ~~~~~~RF450 Slave/Repeater-DL~~~~~~RF450 Slave-DL

LN-RF450 Master ~~~~~~~~RF450 Repeater ~~~~~~~~RF450 Slave -DL

LN-Phone Modem -----COM220-DL-RF450 Master ~~~~~~RF450 Slave -DL

NOTE: LN=LoggerNet; DL=Datalogger

In a mixed-communication devices network, e.g. phone to RF450, the base site
makes the transition between communication types. Call-back is NOT
supported when the base RF450's Active Interface is configured as Modem
Enable (ME) Master. The RF450's Active Interface is configured as ME
Master when the CS I/O port is used for direct connection to a ME device
(COM200, COM210, COM220, MD485, etc). The connection is done by
using an A100. Example configurations where call-back is NOT supported:

LN-Phone Modem -----COM220-CSI null modem-RF450 Master~~~~~RF450
Slave -DL(1)

LN--Ethernet--RavenXT-rs232nullmodem-RF450 Master~~RF450 Slave -DL

NOTE: LN=LoggerNet; DL=Datalogger

In this example the RF450s are set-up as described in Example 1. In the
following program the datalogger will send a variable named Callback to
LoggerNet (PakBus address 4094) when the CallBackFlag variable is “true”.
After LoggerNet receives the variable "Callback" it will begin collecting data
from the datalogger and store it into a file based on the data collection settings
in LoggerNet's Setup window. Note that the PakBus Port setting in
LoggerNet's Setup window must be set to Always Open.

'CR1000 Series Datalogger
'Declare Public Variables
Public counter, Result
Public CallBackFlag As Boolean
Dim scratch

'this variable is a place-holder it is not used


'Define Data Tables
DataTable (Test,true,-1)
DataInterval

(0,15,Sec,10)

Sample

(1,counter,FP2)

EndTable

A-8

Advertising