EasyManua.ls Logo

Campbell CR6 - Communications Protocols

Campbell CR6
285 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7. Communications protocols
Data loggers communicate with data logger support software, other Campbell Scientific data
loggers, and other hardware and software using a number of protocols including PakBus,
Modbus, DNP3, CPI, SPI, and TCP/IP. Several industry-specific protocols are also supported.
CAN-bus is supported when using the Campbell Scientific SDM-CAN communications module.
See also Communications specifications (p. 224).
7.1 General serial communications 91
7.2 Modbus communications 92
7.3 Internet communications 101
7.4 DNP3 communications 102
7.5 Serial peripheral interface (SPI) and I2C 103
7.6 PakBus communications 103
7.7 SDI-12 communications 104
Some communications services, such as satellite networks, can be expensive to send and receive
information. Best practices for reducing expense include:
l Declare Public only those variables that need to be public. Other variables should be
declared as Dim.
l Be conservative with use of string variables and string variable sizes. Make string variables
as big as they need to be and no more. The default size, if not specified, is 24 bytes, but the
minimum is 4 bytes. Declare string variables Public and sample string variables into data
tables only as needed.
l When using GetVariables() / SendVariables() to send values between data
loggers, put the data in an array and use one command to get the multiple values. Using
one command to get 10 values from an array and swath of 10 is more efficient (requires
only 1 transaction) than using 10 commands to get 10 single values (requires 10
transactions). See the CRBasic Editor help for detailed instruction information and program
examples: https://help.campbellsci.com/crbasic/cr6/.
7. Communications protocols 90

Table of Contents

Related product manuals