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 />

IPNetPower<br />

Controls power state of individual Ethernet devices.<br />

Syntax<br />

IPNetPower( IPInterface, State)<br />

IPRoute<br />

Sets the interface to be used (Ethernet or PPP) when the datalogger sends an<br />

outgoing packet and both interfaces are active.<br />

Syntax<br />

IPRoute(IPAddr, IPInterface)<br />

IPTrace<br />

Writes IP debug messages to a string variable.<br />

Syntax<br />

IPTrace(Dest)<br />

NetworkTimeProtocol<br />

Synchronizes the datalogger clock with an Internet time server.<br />

Syntax<br />

variable = NetworkTimeProtocol(NTPServer, NTPOffset,<br />

NTPMaxMSec)<br />

PingIP<br />

Pings IP address.<br />

Syntax<br />

variable = PingIP(IPAddress, Timeout)<br />

PPPOpen<br />

Establishes a PPP connection with a server.<br />

Syntax<br />

variable = PPPOpen<br />

PPPClose<br />

Closes an opened PPP connection with a server.<br />

Syntax<br />

variable = PPPClose<br />

TCPClose<br />

Closes a TCP/IP socket that has been set up for communication.<br />

Syntax<br />

TCPClose(TCPSocket)<br />

TCPOpen<br />

Sets up a TCP/IP socket for communication.<br />

Syntax<br />

TCPOpen(IPAddr, TCPPort, TCPBuffer)<br />

UDPDataGram<br />

Sends packets of information via the UDP communications protocol.<br />

Syntax<br />

UDPDataGram(IPAddr, UDPPort, SendVariable, SendLength,<br />

RcvVariable, Timeout)<br />

520

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

Saved successfully!

Ooh no, something went wrong!