beautypg.com

8 voicephrases, 3 data callback, 1 example data callback program – Campbell Scientific COM320 Voice Communications Modem User Manual

Page 22

background image

COM320 Voice Communications Modem

5.2.8 VoicePhrases

The VoicePhrases instruction is used to provide a list of phrases for a
VoiceSpeak instruction. This instruction allows the VoiceSpeak instruction to
output a string from a list of several strings, depending upon some condition in
the program.

5.3 Data Callback

The COM320 can be put into data mode to accomplish data callback,
instructing LoggerNet to do a collection of datalogger data.

5.3.1 Example Data Callback Program

The following program (downloadable from CSI web site under
Support/Download/Program Examples) does data callbacks to the phone
number associated with the DialModem instruction whenever the TC
temperature exceeds 85°F. To complete the system, provide a PC running
LoggerNet with a phone modem connected to the phone line dialed.

' CR1000 Series Datalogger

' BASIC_DATA_CLBK_1.CR1

' Program description: Does a DATA CALLBACK via COM320 when DIFF 7 TC temp > 85F

' LoggerNet Map:
' ComPort
' PhoneBase
' PhoneRemote
' PakBusPort
' CR1000 (PakBus Address matches remote DL)

‘ Use Type T thermocouple or change TCDiff instruction accordingly

Public batt_volt, Result
Public PTemp, TCvalue_F, dummy
Dim DialSuccess

DataTable (TestA,1,1000)
DataInterval (0,0,Sec,10)
Sample (1,PTemp,FP2)
Sample (1,TCvalue_F,FP2)
Sample (1,batt_volt,FP2)
Sample (1,DialSuccess,FP2)
Sample (1,Result,FP2)
EndTable

DataTable (TestB,1,1000)
DataInterval (0,0,Sec,10)
Sample (1,PTemp,IEEE4)
Sample (1,TCvalue_F,IEEE4)
Average (1,TCvalue_F,IEEE4,False)
Sample (1,batt_volt,FP2)

16