Appendix A. Changing COM220 Settings
FIGURE
A.4 Program Examples
A.4.1 ModemCallback Example (for CR1000)
The ModemCallBack instruction is available in the CR1000 with operating system std.12 or greater, in the CR3000 with operating system std.05 or greater and CR800 or CR850 with operating system std.03 or greater. The following program uses the ModemCallBack instruction to call LoggerNet every 2 minutes. The ModemCallBack instruction assumes that LoggerNet resides at the phone number and that callback is enabled in LoggerNet Setup, both for the comport and for the datalogger.
Public PTemp, batt_volt, Count, Result as Long
Const Abort = 0 ' False
DataTable
DataInterval (0,0,Sec,10)
Sample (1,batt_volt,FP2)
Minimum (1,batt_volt,FP2,0,False)
Maximum (1,batt_volt,FP2,False,False)
Sample (1,PTemp,FP2)
Minimum (1,PTemp,FP2,0,False)
Maximum (1,PTemp,FP2,False,False)
Sample (1,Count,FP2)
EndTable
BeginProg
Scan (2,Min,3,0)
Count = Count + 1
PanelTemp (PTemp,250)
Battery (Batt_volt)