Appendix A. CRBasic Programming Instructions
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)
EncryptExempt
Defines one or more PakBus addresses to which the datalogger will not send
encrypted PakBus messages, even though PakBus encryption is enabled.
Syntax
EncryptExempt(BeginPakBusAddr, EndPakBusAddr)
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)
586