beautypg.com

Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 498

background image

Appendix A. CRBasic Programming Instructions

498 

 

 

IPNetPower 
Controls power state of individual Ethernet devices. 

Syntax 

IPNetPower( IPInterface, State)

IPRoute 
Sets the interface to be used (Ethernet or PPP) when the datalogger sends an 
outgoing packet and both interfaces are active. 

Syntax 

IPRoute(IPAddr, IPInterface)

IPTrace 
Writes IP debug messages to a string variable. 

Syntax 

IPTrace(Dest)

NetworkTimeProtocol 
Synchronizes the datalogger clock with an Internet time server. 

Syntax 

variable = NetworkTimeProtocol(NTPServer, NTPOffset,

NTPMaxMSec)

PingIP 
Pings IP address. 

Syntax 

variable = PingIP(IPAddress, Timeout)

PPPOpen 
Establishes a PPP connection with a server. 

Syntax 

variable = PPPOpen

PPPClose 
Closes an opened PPP connection with a server. 

Syntax 

variable = PPPClose

TCPClose 
Closes a TCP/IP socket that has been set up for communication. 

Syntax 

TCPClose(TCPSocket)

TCPOpen 
Sets up a TCP/IP socket for communication. 

Syntax 

TCPOpen(IPAddr, TCPPort, TCPBuffer)

UDPDataGram 
Sends packets of information via the UDP communications protocol. 

Syntax 

UDPDataGram(IPAddr, UDPPort, SendVariable, SendLength,

RcvVariable, Timeout)