Campbell Scientific CR1000 Measurement and Control System User Manual
Page 512

Appendix A. CRBasic Programming Instructions
512
ClockReport
Sends the datalogger clock value to a remote datalogger in the PakBus network.
Syntax
ClockReport(ComPort, RouterAddr, PakBusAddr)
DataGram
Initializes a SerialServer / DataGram / PakBus application in the datalogger when
a program is compiled.
Syntax
DataGram(ComPort, BaudRate, PakBusAddr, DestAppID, SrcAppID)
DialSequence / EndDialSequence
Defines the code necessary to route packets to a PakBus device.
Syntax
DialSequence
(PakBusAddr)
DialSuccess =
DialModem
(ComPort, DialString, ResponseString)
EndDialSequence
(DialSuccess)
GetDataRecord
Retrieves the most recent record from a data table in a remote PakBus
datalogger and stores the record in the CR1000.
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
Gets a file from another PakBus datalogger.
Syntax
GetFile(ResultCode, ComPort, NeighborAddr, PakBusAddr,
Security, TimeOut, "LocalFile", "RemoteFile")
GetVariables
Retrieves values from a variable or variable array in a data table of a PakBus
datalogger.
Syntax
GetVariables(ResultCode, ComPort, NeighborAddr, PakBusAddr,
Security, TimeOut, "TableName", "FieldName", Variable,
Swath)
Network
In conjunction with SendGetVariables, configures destination dataloggers in a
PakBus network to send and receive data from the host.
Syntax
Network(ResultCode, Reps, BeginAddr, TimeIntoInterval,
Interval, Gap, GetSwath, GetVariable, SendSwath,
SendVariable)
PakBusClock
Sets the datalogger clock to the clock of the specified PakBus device.
Syntax
PakBusClock(PakBusAddr)