EasyManuals Logo

Campbell CR310 User Manual

Campbell CR310
321 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
Page #132 background imageLoading...
Page #132 background image
19.2.7 Modbus information storage
With the Modbus protocol, most of the data values you want to transmit or receive are stored in
registers. Information is stored in the server device in four different entities. Two store on/off
discrete values (coils) and two store numerical values (registers). The four entities include:
l
Coils 1-bit registers, used to control discrete outputs (including Boolean values),
read/write.
l
Discrete Input 1-bit registers, used as inputs, read only.
l
Input Registers 16-bit registers, used as inputs, read only.
l
Holding Registers 16-bit registers; used for inputs, output, configuration data, or any
requirement for “holding” data; read/write.
See the CRBasic Editor help for detailed instruction information and program examples:
https://help.campbellsci.com/crbasic/cr300/ .
19.2.7.1 Registers
In a 16-bit memory location, a 4-byte value takes up two registers. The Modbus protocol always
refers to data registers with a starting address number, and a length to indicate how many
registers to transfer.
Campbell Scientific uses 1-based numbering (a common convention for numbering registers in
equipment) in the ModbusClient() instruction. With 1-based numbering, the first data
location is referred to as register number 1. Some equipment uses 0-based numbering (check the
equipment documentation). With 0-based numbering, the first register is referred to as 0.
Reading register numbers can be complicated by the fact that register numbers are often written
with an offset added. Input registers are written with an offset of 30000. So, the first input register
is written as 30001, with 1-based numbering. Holding registers are numbered with an offset of
40000. You must remove the offset before writing the number as the Start parameter of
ModbusClient().
There are rare instances when equipment is designed with the registers mapped including the
offset. That means 40001 in the documentation is really register number 40001. Those are rare
instances, and the equipment is deviating from standards. If 1 or 2 don’t work for the Start
parameter, try 40001 and 40002.
19. Communications protocols116

Table of Contents

Other manuals for Campbell CR310

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Campbell CR310 and is the answer not in the manual?

Campbell CR310 Specifications

General IconGeneral
BrandCampbell
ModelCR310
CategoryData Loggers
LanguageEnglish

Related product manuals