Appendix A.  CRBasic Programming Instructions 
 
490
ClockReport
SendsthedataloggerclockvaluetoaremotedataloggerinthePakBusnetwork.
Syntax
ClockReport(ComPort, RouterAddr, PakBusAddr) 
DataGram
InitializesaSerialServer/DataGram/PakBusapplicationinthedataloggerwhen
aprogramiscompiled.
Syntax
DataGram(ComPort, BaudRate, PakBusAddr, DestAppID, SrcAppID) 
DialSequence/EndDialSequence
DefinesthecodenecessarytoroutepacketstoaPakBusdevice.
Syntax
DialSequence(PakBusAddr) 
  DialSuccess = DialModem(ComPort, DialString, ResponseString) 
EndDialSequence(DialSuccess) 
 
GetDataRecord
RetrievesthemostrecentrecordfromadatatableinaremotePakBus
dataloggerandstorestherecordintheCR800.
Syntax
GetDataRecord(ResultCode, ComPort, NeighborAddr, PakBusAddr, 
Security, Timeout, Tries, TableNo, DestTableName) 
Note  CR200, CR510PB, CR10XPB, and CR23XPB dataloggers do not respond 
to a GetDataRecord request from other PakBus dataloggers. 
GetFile
GetsafilefromanotherPakBusdatalogger.
Syntax
GetFile(ResultCode, ComPort, NeighborAddr, PakBusAddr, 
Security, TimeOut, "LocalFile", "RemoteFile") 
GetVariables
RetrievesvaluesfromavariableorvariablearrayinadatatableofaPakBus
datalogger.
Syntax
GetVariables(ResultCode, ComPort, NeighborAddr, PakBusAddr, 
Security, TimeOut, "TableName", "FieldName", Variable, 
Swath) 
Network
InconjunctionwithSendGetVariables,configuresdestinationdataloggersina
PakBusnetworktosendandreceivedatafromthehost.
Syntax
Network(ResultCode, Reps, BeginAddr, TimeIntoInterval, 
Interval, Gap, GetSwath, GetVariable, SendSwath, 
SendVariable) 
PakBusClock
SetsthedataloggerclocktotheclockofthespecifiedPakBusdevice.
Syntax
PakBusClock(PakBusAddr)