Appendix A. CRBasic Programming Instructions
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 CR1000.
Syntax
RoutersNeighbors(DestArray(MaxRouters, MaxNeighbors+1))
Routes
Returns a list of known dynamic routes for a PakBus datalogger that has been
configured as a router in a PakBus network.
Syntax
Routes(Dest)
SendData
Sends the most recent record from a data table to a remote PakBus device.
Syntax
SendData(ComPort, RouterAddr, PakBusAddr, DataTable)
SendFile
Sends a file to another PakBus datalogger.
Syntax
SendFile(ResultCode, ComPort, NeighborAddr, PakBusAddr,
Security, TimeOut, "LocalFile", "RemoteFile")
SendGetVariables
Sends an array of values to the host PakBus datalogger, and retrieves an array of
data from the host datalogger.
587