2 data callback instructions – Campbell Scientific COM320 Voice Communications Modem User Manual
Page 23

COM320 Voice Communications Modem
Sample (1,DialSuccess,FP2)
Sample (1,Result,FP2)
EndTable
DialSequence (4094)
DialSuccess = DialModem (COM320, 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,COM320,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.
5.3.2 Data Callback Instructions
The following instructions are used to program a data callback.
DialSequence/EndDialSequence
The DialSequence/EndDialSequence instructions are used to define the code
necessary to route packets to a PakBus datalogger. Any time an instruction
(SendVariables) in the main program requires that communication be made
17