
Appendix A. CRBasic Programming Instructions
515
DialSequence/EndDialSequence
DefinesthecodenecessarytoroutepacketstoaPakBusdevice.
Syntax
DialSequence(PakBusAddr)
DialSuccess = DialModem(ComPort, DialString, ResponseString)
EndDialSequence(DialSuccess)
GetDataRecord
RetrievesthemostrecentrecordfromadatatableinaremotePakBus
dataloggerandstorestherecordintheCR3000.
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)
Route
Returnstheneighboraddressof(ortherouteto)aPakBusdatalogger.
Syntax
variable = Route(PakBusAddr)
RoutersNeighbors
ReturnsalistofallPakBusroutersandtheirneighborsknowntothedatalogger.
Syntax
RoutersNeighbors( DestArray(MaxRouters, MaxNeighbors+1))
Comentarios a estos manuales