Campbell Scientific COM310 Voice Communications Modem User Manual

Page 24

Advertising
background image

COM310 Voice Communications Modem

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)
Sample (1,DialSuccess,FP2)
Sample (1,Result,FP2)
EndTable

DialSequence (4094)
DialSuccess = DialModem (Com310, 9600,"1112223333","") 'Phone number to call
EndDialSequence (DialSuccess)


BeginProg
Scan (30,Sec,0,0)

PanelTemp

(PTemp,250)

Battery

(Batt_volt)

dummy = 0

TCDiff (TCvalue_F,1,mV2_5C,7,TypeT,PTemp,True ,0,250,1.8,32)

If TCvalue_F > 85 then

SendVariables (Result,Com310,4094,4094,0000,2500,"Public","Callback",dummy,1)

Delay (1,15,Sec)

‘Prevents too soon callback

Endif

CallTable TestA
CallTable TestB

NextScan
EndProg

In the above data callback program, the phone number is dialed in the
DialSequence/EndDialSequence using the DialModem instruction. Any
needed re-dials are handled by EndDialSequence (DialSuccess).

LoggerNet recognizes the incoming call as a data callback by the arrival of the
“Public” and “Callback” strings sent by the SendVariables instruction in the
Table and Field parameters (visible in low-level log for ComPort). Callback
must be enabled in both the station and the ComPort screens.

The 25 second SendVariables timeout (2500 hundredths of a sec) allows the
slow phone connection time to build.

The program should be available for download from our website under
Support/Downloads/Program Examples.

18

Advertising