Campbell Scientific CR3000 Micrologger User Manual

Page 515

Advertising
background image

Appendix A. CRBasic Programming Instructions

515

 

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 CR3000. 

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)

Route 
Returns the neighbor address of (or the route to) a PakBus datalogger. 

Syntax 

variable = Route(PakBusAddr)

RoutersNeighbors 
Returns a list of all PakBus routers and their neighbors known to the datalogger. 

Syntax 

RoutersNeighbors( DestArray(MaxRouters, MaxNeighbors+1))

Advertising