![Campbell CR23X Скачать руководство пользователя страница 271](http://html1.mh-extra.com/html/campbell/cr23x/cr23x_operators-manual_489029271.webp)
APPENDIX C. BINARY TELECOMMUNICATIONS
C-3
The Flags byte expresses datalogger user flag
status. The most significant bit represents Flag
8, and so on to the least significant bit which
represents Flag 1. If a bit is set, the user flag is
set in the datalogger.
The optional ports byte (currently on return if
requested by a CR23X J command) expresses
the datalogger port status. The most significant
bit represents Port 8, and so on to the least
significant bit which represents Port 1.
For each input location requested by the J
command, four bytes of data are returned. The
bytes are coded in Campbell Scientific, Inc.
Floating Point Format. The format is decoded
to the following:
Sign(Mantissa*2
(Exponent)
)
Data byte 1 contains the Sign and the
Exponent. The most significant bit represents
the Sign; if zero, the Sign is positive, if one, the
Sign is negative. The signed exponent is
obtained by subtracting 40 HEX (or 64 decimal)
from the 7 remaining least significant bits.
Data bytes 2 to 4 are a binary representation of
the mantissa with byte 2 the most significant and
4 the least. The mantissa ranges in value from
80 00 00 hex (0.5 decimal) to FF FF FF HEX
(1-2
-24
decimal). The one exception is for zero
which is 00 00 00 00 HEX.
The Mantissa is calculated by converting Data
bytes 2 to 4 into binary. Each bit represents
some fractional value which is summed for all
24 bits. The bits are arranged from MSB to
LSB with the most significant as bit
23
and least
significant as bit
0
. The value that each bit
represents = 2
n-24
; where n=bit location. For
example, if there was a 1 at bit
20
, it’s value
would be 2
(20-24)
or 2
-4
.
A simple method for programming this is as
follows:
Set Mantissa = 0.
Set Bit Value = 0.5.
For loop count = 1 to 24 do the following:
If the MSB is one, then add Bit Value to the
Mantissa.
Shift the 24 bit binary value obtained from
Data bytes 2 to 4 one bit to the left.
Multiply Bit Value by 0.5.
End of loop.
Another method that can be used as an
estimate is to convert Data bytes 2 to 4 from a
long integer to floating point and dividing this
value by 16777216.
As an example of a negative value, the
datalogger returns BF 82 0C 49 HEX.
Data byte 1 = BF HEX.
Data byte 2 to 4 = 82 0C 49 HEX (or 8522825
decimal).
Data byte 1 is converted to binary to find the
Sign. BF HEX = 10111111 BINARY.
The most significant bit is 1 so the Sign is
NEGATIVE.
The exponent is found by subtracting 40 HEX
from the remaining least significant bits.
Converting the binary to hexadecimal, 111111
BINARY = 3F HEX (or 63 decimal).
3F - 40 HEX = FF FF FF FF FF HEX. Or in
decimal: 63 - 64 = -1.
Exponent is -1 decimal.
The binary representation of Data bytes 2 to 4
is: 10000010 00001100 01001001.
Summing all the fractional values: 2
-1
+ 2
-7
+
2
-13
+ 2
-14
+ 2
-18
+ 2
-21
+ 2
-24
= 0.50800.
Using the estimate method to find the Mantissa =
82 0C 49 HEX / 1 00 00 00 HEX (or 8522825 /
16777216) which is 0.50800 decimal.
The value is then (-)0.508*2
-1
which equals
-0.254.
Содержание CR23X
Страница 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
Страница 12: ...CR23X MICROLOGGER OVERVIEW OV 2 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE OV1 1 CR23X Micrologger ...
Страница 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Страница 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Страница 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Страница 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Страница 103: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 15 CR23X AVW1 FIGURE 7 15 2 Well Monitoring Example ...
Страница 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Страница 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Страница 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Страница 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Страница 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Страница 229: ...14 3 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE 14 3 1 CR23X Battery Pack and Panel ...
Страница 239: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 13 S A N Y O FIGURE 14 11 6 Removal of band clamp and battery ...
Страница 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Страница 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Страница 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Страница 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Страница 278: ...This is a blank page ...
Страница 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Страница 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Страница 300: ...This is a blank page ...
Страница 302: ...This is a blank page ...
Страница 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Страница 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Страница 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Страница 342: ...This is a blank page ...
Страница 373: ...This is a blank page ...