04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A. CRBasic Programming Instructions<br />

Route<br />

Returns the neighbor address of (or the route to) a PakBus datalogger.<br />

Syntax<br />

variable = Route(PakBusAddr)<br />

RoutersNeighbors<br />

Returns a list of all PakBus routers and their neighbors known to the datalogger.<br />

Syntax<br />

RoutersNeighbors( DestArray(MaxRouters, MaxNeighbors+1))<br />

Routes<br />

Returns a list of known dynamic routes for a PakBus datalogger that has been<br />

configured as a router in a PakBus network.<br />

Syntax<br />

Routes(Dest)<br />

SendData<br />

Sends the most recent record from a data table to a remote PakBus device.<br />

Syntax<br />

SendData(ComPort, RouterAddr, PakBusAddr, DataTable)<br />

SendFile<br />

Sends a file to another PakBus datalogger.<br />

Syntax<br />

SendFile(ResultCode, ComPort, NeighborAddr, PakBusAddr,<br />

Security, TimeOut, "LocalFile", "RemoteFile")<br />

SendGetVariables<br />

Sends an array of values to the host PakBus datalogger, and / or retrieve an array<br />

of data from the host datalogger.<br />

Syntax<br />

SendGetVariables(ResultCode, ComPort, RouterAddr, PakBusAddr,<br />

Security, TimeOut, SendVariable, SendSwath, GetVariable,<br />

GetSwath)<br />

SendTableDef<br />

Sends the table definitions from a data table to a remote PakBus device.<br />

Syntax<br />

SendTableDef(ComPort, RouterAddr, PakBusAddr, DataTable)<br />

SendVariables<br />

Sends value(s) from a variable or variable array to a data table in a remote<br />

datalogger.<br />

Syntax<br />

SendVariables(ResultCode, ComPort, RouterAddr, PakBusAddr,<br />

Security, TimeOut, "TableName", "FieldName", Variable,<br />

Swath)<br />

StaticRoute<br />

Defines a static route to a PakBus datalogger.<br />

Syntax<br />

StaticRoute(ComPort, NeighborAddr, PakBusAddr)<br />

513

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!