Turtle Tough 6000 Series User manual

TURTLE
TOUGH
®
1
TURTLE
TOUGH
®
turtletoughsensors.com
MANUAL
6000 SERIES DIGITAL SMART ANALYSERS
Conducvity TDS Resisvity/Salinity

TURTLE
TOUGH
®
2
Introduction
Congratulaons on purchasing a Turtle Tough 6000 Series Digital Smart Analyser. This analyser has been
specically developed to achieve opmum performance from your Turtle Tough Sensor.
This instrucon manual provides informaon for the correct installaon and use of a Turtle Tough 6000 Series
Digital Smart Analyser, to ensure you get the maximum life and performance from your sensor. Any use other
than the one described here compromises the safety of persons and the enre measuring system and is, there-
fore, not permied. The manufacturer is not liable for damage caused by improper or non-designated use.

TURTLE
TOUGH
®
3
Installation
As with all instrumentaon, the installaon and commissioning of this instrument are crucial to its
safe and eecve operaon. This instrument must only be used for its purpose as outlined in this
manual. It must be installed and commissioned by this manual and by trained, qualied personnel.
Site Selecon
Please choose a suitable locaon for the installaon of the electronics. The choice of installaon
point on any site is a compromise and is best undertaken by an experienced installaon engineer.
The following is a list of the factors that need to be taken into consideraon.
• Ensure that the mounng allows access to all serviceable parts.
• Try to mount the electronics in a posion where they are not habitually hosed down in a
cleaning process.
• The electronics enclosure should be mounted away from sources of heat or direct sunlight.
• Consider the length of wiring runs when mounng the instrument.
• Try to keep the electronics away from substaons, motors or other large EMI emiers.
• Consider whether the sample will be representave and well mixed.
• Consider sample line run mes.
• Consider sample return points.
• In a plasc run, with a low conducvity liquid sample, consider earthing the sample.
• If the instrument is controlling a dosing pump, size the pump appropriately.
Note: This list is not intended as a checklist neither is it implied that the list is complete.
Unpacking
• Please have a copy of your order with you when you unpack your instrument.
All orders are checked when they leave the factory.
• Please check that you have all the parts that were ordered as soon as you open the box.
• If anything is missing or damaged, please contact your sales outlet immediately.
• If the instrument needs to be returned for any reason please follow the return instrucons given
in this manual.
• Please dispose of the packing in an environmentally responsible manner and in compliance with
local regulaons.
Danger
Electric
Shock
Hazard
Important
Important

TURTLE
TOUGH
®
4
Specifications
Product Name 6000 Series Samrt Digital Analyser
Conducvity 0~500mS/cm
Resoluon 0.1us/cm;0.01ms/cm
Intrinsic Error ±0.5%F.S
Resisvity 0~18.25MΩ/cm
Resoluon 0.01KΩ/cm;0.01MΩ/cm
TDS 0~250g/L
Resoluon 0.01mg/L;0.01g/L
Salinity 0~700ppt
Resoluon 0.01ppm;0.01ppt
Temperature -10 to 150 °C
Resoluon ±0.3 °C
Temperature Compensaon Automac or manual
Power Supply 2 Rd 4~20mA
Oponal Power Supply 85~265VAC,9~36VDC, Power: ≤3W
Communicaon Output Modbus RTU RS485
Other Funcon Data recording, curve display, data uploading
Relay Control Contact 3 Groups: 5A 240VAC,5A 28VDC or 120VAC
Environmental Temperature -10~60 °C
Relave Humidity No more than 90%
Protecon Grade IP65
Weight 1.5kg
Dimensions 144*144*118 mm
Mounng Hole Dimensions 138*138mm
Installaon Embedded, wall - mounted, pipe type

TURTLE
TOUGH
®
5
Back fixed hole size Embedded mounting Cut-out size
138 mm +0.5 mm
138 mm +0.5 mm
M4x4
45x45 mm
144 mm
136 mm
144 mm
26 mm
118 mm
Installation
Dimensions

TURTLE
TOUGH
®
6
Installation completion diagram
Installation completion diagram
Install fixing bracket for instrument
Insert into the cut-out hole
a. Install fixing bracket for instrument
b. Wall screw fixing
D+ D-
B2 LN
RELAY A
RELAY B
RELAY C
Install fixed bracket top view,
pay attention to
6x15 mm
150.3 mm
58.1 mm
Installation
Embedded Installaon
Wall Mounted Installaon

TURTLE
TOUGH
®
7
Wiring Connection
V+,V-,A1,B1 Digital Input Channel 1 REF1 PH/Ion reference 1
V+,V-,A2,B2 Digital Input Channel 2 INPUT1 PH/Ion measure 1
I 1,G,I 2 Output current TEMP1 Temperature 1
A3,B3 RS485 communicaon output SEN-,SEN+ Membrane dissoluon of oxygen/FCL
G,TX,RX RS232 communicaon output
P+,P- VDC power supply REF2 PH/Ion reference2
INPUT 2 PH/Ion measure 2
T2+,T2- Temperature wiring TEMP2 Temperature 2
EC1,EC2,EC3,EC4 Conducvity/Resisvity wiring GND Grounding (for tesng)
RLY3, RLY2, RLY1 Group 3 relays CE,RE,WE Constant voltage for FCL/CLO2/O3
L,N, L re wire, N neutral wire, geodesic
Connecon Between Equipment And Sensor
The power supply of relay, output signal, alarm contact and connecon between sensor and instrument are all
inside the instrument. Wiring is done according to Figure 3. The lead length of the cable xed by the electrode
is generally 5-10 meters. Insert the line with corresponding label or color on the sensor into the corresponding
wiring terminal inside the instrument and ghten it.
5

TURTLE
TOUGH
®
8
Navigation
Keypad Operaon
Short Press: Release the key immediately aer pressing. ((Default to short presses if not indicated below)
Long Press: Press the buon for 3 seconds and then release it.
Press & Hold: Press the buon and accelerate aer a certain me unl the data is adjusted to the required
value before releasing the buon.
Enter menu setting mode
Return measurements
Two modes switching
Enter standard solution calibration mode
Calibrated: check the calibration status
Re-calibration: press “ENT” again
Return to
previous menu
Confirmation
options
Menu setting mode:
press this key to loop
down the menu options
Menu setting mode:
press this key to
rotate menu options
Press the key in
measurement mode to
display the trend chart

TURTLE
TOUGH
®
9
Display
Before using please check all pipes and electrical connecons. Aer power supply, the analyser is shown as:
Measurement Mode
Calibraon Mode
Seng Mode
Trend Chart Display

TURTLE
TOUGH
®
10
Menu Structure
Seng
Electrode Set
Electrode Type Seng
EC
TDS
Salinity
Resisvity
Unit Setup
us/cm, ms/cm
KΩ/cm, MΩ/cm
mg/L, g/L
ppm, ppt
%
Electrode Constant 1.0 (Default, can be modied)
Temperature Coecient 2.0 (Default, can be modied)
Temperature
Temperature Sensor
NTC2.252 kΩ
NTC10 kΩ
Pt100
Pt1000
Temperature Oset 0.0000
Temperature Input Automac
Manual
Temperature Unit °C
°F
Calibraon
Standard Soluon
Calibraon
Calibraon Number 1 0.01us/cm (Default, can be modied)
Calibraon Number 2 84us/cm (Default, can be modied)
Calibraon Number 3 1413us/cm (Default, can be modied)
Calibraon Number 4 12.88ms/cm (Default, can be modied)
Calibraon Number 5 111ms/cm (Default, can be modied)
Calibraon Correcon
Voltage 1
Voltage 2
Voltage 3
Voltage 4
Voltage 5
Field Calibraon
Field Calibraon
Oset Adjustment
Slope Adjustment
Alarm Set
Relay 1
On-O state ON
OFF
Specify the type
High Alarm
Low Alarm
Clean
Relay 2
On-O State ON
OFF
Specify the type
High Alarm
Low Alarm
Clean
Limit seng
(open me - cleaning state) Connuous opening me
Lag
(o me- in cleaning state)
(The interval between the last opening and
closing and the next opening)
Relay 3
On-O State ON
OFF
Specify the type
High Alarm
Low Alarm
Clean
Limit seng
(open me - cleaning state) Connuous opening me
Lag
(o me- in cleaning state)
(The interval between the last opening and
closing and the next opening)

TURTLE
TOUGH
®
11
Output
Current 1
Channel Main
Temperature
Output Opon
4-20 mA
0-20 mA
20-4 mA
Upper Limit
Lower Limit
Current 2
Channel Main
Temperature
Output Opon
4-20 mA
0-20 mA
20-4 mA
Upper Limit
Lower Limit
RS485
Baud Rate
4800 BPS
9600 BPS
19200 BPS
Parity Check
None
Odd
Even
Stop Bit 1 Bit
2 Bit
Network Node 001 +
Data Log
Graphic Trend Chart
Interval/point
Display according to interval sengs
480 points/screen
1h/point
12h/point
24h/point
Data Query Query by Number of Data Year/Month/Day,Time:Minu:Secs Value Unit
Record Interval
7.5s
90s
180s
Memory Informaon 101600 point
Data Output
System
Language English
Date/Time Year-Month-Day
Hour-Minute-Second
Display
Display Speed
Low
Standard
Medium
High
Backlight Saving
Bright
Range Set
1
2
3
Automac
So Version
So Version 19-1.0
Password Sengs 0000
Serial Number
Factory Default No
Yes
Terminal Current Tuning
Current 1 4 mA (The posive and negave ends of the
ammeter are connected to the current 1 or
current 2 output terminals. Press [] key to
adjust the current to 4 mA or 20 mA ,press
[ENT]key to conrm.)
Current 1 20 mA
Current 2 4 mA
Current 2 20 mA
Relay Test
Relay 1 (Select 3 groups of relays and hear the
sound of two switches, the relay is normal.)
Relay 2
Relay 3

TURTLE
TOUGH
®
12
Calibration
Press [MENU] to enter the seng mode and select the calibraon.
Calibraon
Standard Soluon Calibraon
Calibraon Point 1 Enter given standard liquid value (Example:0.01)
Calibraon Point 2 Enter given standard liquid value (Example:84us/cm)
Calibraon Point 3 Enter given standard liquid value (Example:1413us/cm)
Calibraon Point 4 Enter given standard liquid value (Example:84ms/cm)
Calibraon Point 5 Enter given standard liquid value (Example:111ms/cm)
Field Calibraon
Oset Adjustment
Linear Adjustment
Standard Soluon Calibraon
This funcon is used to calibrate the ve calibraon points of the sensor. It has been calibrated before delivery
and users can use it directly. If calibraon is required, prepare 5 suitable standard liquids with known value, press
[MENU] to enter the seng mode and select the calibraon point.Modify or enter the corresponding calibraon
value. Aer seng the calibraon value, press [MENU] key returns to the measurement screen, and press [CAL]
key to enter the standard soluon calibraon mode. Standard soluon calibraon has ve points, and can be
calibrated at any point (at least one point). If the instrument has been calibrated, press the [CAL] key to check
the calibraon state, press the [] key to switch the calibraon state of the calibraon point, and if the point
shall be re-calibrated, in this state, press [ENT] key to enter re-calibraon. If the monitor prompts you to enter
the calibraon safety password, press [] or [] key to set the calibraon safety password, then press [ENT] to
conrm the calibraon safety password.
Point 1 calibraon: Aer entering the calibraon mode, the instru-
ment displays as shown in the gure at the le. The main value of the
instrument displays the known standard liquid value of point 1. Place
the electrode into the standard soluon of the corresponding value,
and the corresponding voltage mV value and calibraon state will be
displayed on the le side of the screen. Aer compleon of calibraon,
[Done] will be displayed on the right side of the screen.If the next point
is calibrated, press [] to switch the calibraon point. If only one point
calibraon is needed, aer the calibraon is completed, press [MENU]
to exit. During the calibraon process, when the standard soluon is
wrong, the screen will show Error.
Field Calibraon
Select eld calibraon mode: [eld calibraon], [Oset adjustment], [linear adjustment].
[Field calibraon]
[Oset adjustment]
Compare the data from laboratory or portable instrument
with the measured data. If there is any error, the error
data can be modied by this funcon.
[Linear adjustment]
The linear value aer "eld calibraon" will be saved
in this item and the factory data is 1.00.

TURTLE
TOUGH
®
13
Graphic Trend(Trend Chart)
Press [MENU] to enter the seng mode and set the record interval. The analyser will save the data according
to the selected record interval.
Data Log
Curve Query (Trend Chart)
Interval/Point 400 points per screen, Displays most recent data trend
1h/Point 400 points per screen. Data trend chart display of the last 16 days
12h/Point 400 points per screen. Data trend chart display of the last 200 days
24h/Point 400 points per screen. Data trend chart display of the last 400 days
Data Query year/month/day Year/month/day me: minute:second value unit
Interval
7.5s Store data every 7.5 seconds
90s Store data every 90 seconds
180s Store data every 180 seconds
Press the [MENU] key, back to the measurement screen, and press the [/TREND] buon in the measurement
mode to directly view the TREND chart of the saved data, 400 sets of data records per screen.
Under the current mode, press [ENT] key to display the le and right displacement data line (red), and long press
[ENT] key to accelerate the displacement.
When the boom icon is in green, it is the movement direcon of the [ENT] key.
Press [/TREND] to switch the displacement direcon, and press [/INFO] to switch the display range (enlarge/
shrink).

TURTLE
TOUGH
®
14
Modbus RTU General Information
The hardware version number of this document is V2.0; the soware version number is V5.9 and above. This
document describes the Modbus RTU interface in details and the target object is a soware programmer.
Modbus Command Structure
Data format descripon in this document;
Binary display, sux B, for example: 10001B
- decimal display, without any prex or sux, for example: 256
Hexadecimal display, prex 0x, for example: 0x2A
ASCII character or ASCII string display, for example: "YL0114010022"
Command Structure
The Modbus applicaon protocol denes the Simple Protocol Data Unit (PDU), which is independent of the
underlying communicaon layer.
Figure 1: Modbus Protocol Data Unit
Modbus protocol mapping on a specic bus or network introduces addional elds of protocol data units. The
client that iniates the Modbus exchange creates the Modbus PDU, and then adds the domain to establish the
correct communicaon PDU.
Figure 2: Modbus architecture for serial communicaon
On the Modbus serial line, the address domain contains only the slave instrument address. Tips: The device
address range is 1...247
Set the device address of the slave in the address eld of the request frame sent by the host. When the slave in-
strument responds, it places its instrument address in the address area of the response frame so that the master
staon knows which slave is responding.
Funcon codes indicate the type of operaon performed by the server.
CRC domain is the result of the “ redundancy check” calculaon, which is executed according to the informaon
content.

TURTLE
TOUGH
®
15
Modbus RTU Transmission Mode
When the instrument uses RTU (Remote Terminal Unit) mode for Modbus serial communicaon, each 8-bit
byte of informaon contains two 4-bit hexadecimal characters. The main advantages of this mode are greater
character density and beer data throughput than the ASCII mode with the same baud rate. Each message
must be transmied as a connuous string.
The format of each byte in RTU mode (11 bits)
• Coding system: 8-bit binary
• Each 8-bit byte in a message contains two 4-bit hexadecimal characters (0-9, A-F)
• Bits in each byte: 1 starng bit
• 8 data bits, the rst minimum valid bits without parity check bits
• 2 stop bits
• Baud rate: 9600 BPS
How characters are transmied serially
Each character or byte is sent in this order (from le to right) the least signicant bit (LSB)...
Maximum Signicant Bit (MSB)
Start Bit 12345 6 7 8 Stop Bit Stop Bit
Figure 3: RTU paern bit sequence
Check Domain Structure: Cyclic Redundancy Check (CRC16)
Structure descripon:
Slave Instrument Address Data CRC
1 Byte 1 Byte 0...252 Byte 2 Byte
CRC Low Byte CRC High Byte
Figure 4: RTU informaon structure
The maximum frame size of Modbus is 256 bytes
Modbus RTU Informaon Frame
In Modbus RTU mode, message frames are disnguished by idle intervals of at least 3.5 character mes, which
are called t3.5 in subsequent secons.
Start Address Funcon Code Data CRC Stop
>3.5 Bytes 8 8 Nx8 16 >3.5 Bytes
Figure 5: RTU message frame
The enre message frame must be sent in a connuous character stream.
When the pause me interval between two characters exceeds 1.5 characters, the informaon frame is con-
sidered incomplete and the receiver does not receive the informaon frame.
Figure 6: Frame data transmission

TURTLE
TOUGH
®
16
Modbus RTU CRC Check
The RTU mode contains an error-detecon domain based on a cyclic redundancy check (CRC) algorithm that
performs on all message contents. The CRC domain checks the contents of the enre message and performs this
check regardless of whether the message has a random parity check. The CRC domain contains a 16-bit value
consisng of two 8-bit bytes. CRC16 check is adopted..Low bytes precede, high bytes precede.
Implementaon of Modbus RTU in Instrument
According to the ocial Modbus denion, the command starts with a 3.5 character interval triggering com-
mand, and the end of the command is also represented by a 3.5 character interval. The device address and
Modbus funcon code have 8 bits. The data string contains n*8 bits, and the data string contains the starng
address of the register and the number of read/write registers. CRC check is 16 bits.
Value Start Device Address Funcon Code Data Summary Check End
No Signal Bytes
During 3.5
Characters
1-247
1
Funcon codes
conforming to
Modbus
specicaon
Data conforming
to Modbus
specicaon
CRCL
No Signal Bytes
During 3.5
Characters
Byte 3.5 1 N 1 1 3.5
Figure 7: Modbus denion of data transmission
Instrument Modbus RTU Funcon Code
The instrument only uses two Modbus funcon codes:
• 0x03: Read-and-hold register
• 0x10: Write mulple registers
Modbus Funcon Code 0x03: Read-and-hold Register
This funcon code is used to read the connuous block content of the holding register of the remote device.
Request the PDU to specify the start register address and the number of registers. Address registers from zero.
Therefore, the addressing register 1-16 is 0-15. The register data in the response informaon is packaged in two
bytes per register. For each register, the rst byte contains high bits and the second byte contains low bits.
Request
Funcon Code 1 Byte 0x03
Start Address 2 Bytes 0x0000….0xf
Read Register Number 2 Bytes 1...125
Figure 8: Read-and-hold register request frame
Response
Funcon Code 1 Byte 0x03
Start Address 2 Bytes 0x0000….0xf
Read Register Number 2 Bytes 1...125
N = Register number
Figure 9: Read-and-hold register response frame

TURTLE
TOUGH
®
17
The following illustrates the request frame and response frame with the read and hold register 108-110 as an
example. (The contents of register 108 are read-only, with two byte values of 0X022B, and the contents of
register 109-110 are 0X0000 and 0X0064)
Request Frame Response Frame
Number Systems (Hexadecimal) Funcon Code (Hexadecimal)
Funcon Code 0x03 Byte Count 0x03
Start Address (High Byte) 0x00 Register Value (High Bytes) (108) 0x06
Start Address (Low Byte) 0x6b Register Value (Low Bytes) (108) 0x02
Number Of Read Registers (High Bytes) 0x00 Register Value (High Bytes) (109) 0x02b
Number Of Read Registers (Low Bytes) 0x00 Register Value (Low Bytes) (109) 0x00
Register Value (High Bytes) (110) 0x00
Register Value (Low Bytes) (110) 0x00
Funcon Code 0x64
Figure 10: Examples of read and hold register request and response frames
Modbus Funcon Code 0x10: Write Mulple Registers
This funcon code is used to write connuous registers to remote devices (1... 123 registers) block that spec-
ies the value of the registers wrien in the request data frame. Data is packaged in two bytes per register.
Response frame return funcon code, start address and number of registers wrien.
Request
Funcon Code 1 Byte 0x10
Start Address 2 Bytes 0x0000….0xf
Number Of Input Registers 2 Bytes 0x0001....0x0078
Number Of Bytes 1 Byte N×2
Register Values N×2 bytes Value
N = Register number
Figure11:Write mulple register request frames
Response
Funcon Code 1 Byte 0x10
Start Address 2 Bytes 0x0000….0xf
Read Register Number 2 Bytes 1…123(0x7B)
N = Register number
Figure 12: write mulple register response frames
The request frame and response frame are illustrated below in two registers that write the values 0x000A and
0x0102 to the start address of 2.
Request Frame (Hexadecimal) Response Frame (Hexadecimal)
Number Systems 0x10 Number Systems 0x10
Funcon Code 0x00 Funcon Code 0x00
Start Address (High Byte) 0x01 Start Address (High Byte) 0x01
Start Address (Low Byte) 0x00 Start Address (Low Byte) 0x00
Input Register Number (Low Bytes) 0x02 Input Register Number (Low Bytes) 0x02
Input Register Number (Low Bytes) 0x04 Input Register Number (Low Bytes)
Number Of Bytes 0x00
Register Value (High Byte) 0x0a
Register Value (High Byte) 0x01
Register Value (High Byte) 0x02
Register Value (High Byte)
Figure 13: Examples of wring mulple register request and response frames

TURTLE
TOUGH
®
18
Data Format In Instrument
Floang Point
Denion: Floang point, conforming to IEEE 754 (single precision)
Descripon Symbol Index Manssa SUM
Bit 31 30...23 22...0 22...0
Index Deviaon
Figure 14: Floang point single-precision denion (4 bytes, 2 Modbus registers)
Example: Compile Decimal 17.625 to Binary
• Step 1: Converng 17.625 in decimal form to a oang-point number in binary form, rst nding the binary
representaon of the integer part
17decimal= 16 + 1 = 1×2⁴ + 0 × 2³+0×2²+0×2¹+1×2⁰
The binary representaon of integer part 17 is 10001B
then the binary representaon of decimal part is obtained
0.625= 0.5 + 0.125 = 1×2⁻²+ 0×2⁻¹ + 1×2⁻³
The binary representaon of decimal part 0.625 is 0.101B.
So the binary oang point number of 17.625 in decimal form is 10001.101B
• Step 2: Shi to nd the exponent.
Move 10001.101B to the le unl there is only one decimal point, resulng in 1.0001101B, and
10001.101B = 1.0001101 B× 24 . So the exponenal part is 4, plus 127, it becomes 131, and its binary
representaon is 10000011B.
• Step 3: Calculate the tail number
Aer removing 1 before the decimal point of 1.0001101B, the nal number is 0001101B (because before
the decimal point must be 1, so IEEE spulates that only the decimal point behind can be recorded). For the
important explanaon of 23-bit manssa, the rst (i.e. hidden bit) is not compiled.
Hidden bits are bits on the le side of the separator, which are usually set to 1 and suppressed.
• Step 4: Symbol bit denion
The sign bit of posive number is 0, and the sign bit of negave number is 1, so the sign bit of 17.625 is 0.
• Step 5: Convert to oang point number
1 bit symbol + 8 bit index + 23-bit manssa
0 10000011 00011010000000000000000B (the hexadecimal system is shown as
0 x418d0000 )
Reference Code
1. If the compiler used by the user has a library funcon that implements this funcon, the library funcon can
be called directly, for example, using C language, then you can directly call the C library funcon memcpy to
obtain an integer representaon of the oang-point storage format in memory. For example: oat oatdata;
// converted oang point number void* outdata;
memcpy(outdata,&oatdata,4);
Suppose oatdata = 17.625
If it is a small-end storage mode, aer execung the above statement, the data stored in the address unit
outdata is 0x00.
address unit (outdata + 1) stores data as 0x00
address unit (outdata + 2) stores data as 0x8D
address unit (outdata + 3) stores data as 0x41

TURTLE
TOUGH
®
19
If it is large-end storage mode, aer execung the above statement,
the data stored in outdata of address unit is 0x41
address unit (outdata + 1) stores data as 0x8D
address unit (outdata + 2) stores data as 0x00
address unit (outdata + 3) stores data as 0x00
2. If the compiler used by the user does not implement the library funcon of this funcon, the following func-
ons can be used to achieve this funcon:
void memcpy(void *dest,void *src,int n)
{
char *pd = (char *)dest; char *ps = (char *)src;
for(int i=0;i<n;i++) *pd++ = *ps++;
}
And then make a call to the above memcpy(outdata,&oatdata,4);
Example: Compile binary oang-point number 0100 0010 0111 1011 0110 0110 0110 0110B to decimal number
• Step 1: Divide the binary oang-point number 0100 0010 0111 1011 0110 0110 0110 0110B into sym-
bol, bit, exponenal bit and manssa bit.
0 10000100 11110110110011001100110B
1-bit sign + 8-bit index + 23-bit tail sign bit S: 0 denotes posive number
Index posion E:10000100B =1×2⁷+0×2⁶+0×2⁵+0×2⁴ + 0 × 2³+1×2²+0×2¹+0×2⁰
=128+0+0+0+0+4+0+0=132
Manssa bits M:11110110110011001100110B=8087142
• Step 2: Calculate the decimal number
D = (−1)×(1.0 + M/223)×2E−127
= (−1)0×(1.0 + 8087142/223)×2132−127
= 1×1.964062452316284×32
= 62.85
Reference Code
oat oatTOdecimal(long int byte0, long int byte1, long int byte2, long int byte3)
{
long int realbyte0,realbyte1,realbyte2,realbyte3; char S;
long int E,M;
oat D;realbyte0 = byte3; realbyte1 = byte2; realbyte2 = byte1; realbyte3 = byte0;
if((realbyte0&0x80)==0)
{
S = 0;//posive number
}
else
{
S = 1;//negave number
}
E = ((realbyte0<<1)|(realbyte1&0x80)>>7)-127;
M = ((realbyte1&0x7f) << 16) | (realbyte2<< 8)| realbyte3; D = pow(-1,S)*(1.0 + M/pow(2,23))* pow(2,E);
return D;

TURTLE
TOUGH
®
20
Funcon descripon: parameters byte0, byte1, byte2, byte3 represent 4 bytes of binary oang point number (
the return value Converted the decimal number
For example, the user sends the command to get the temperature value and dissolved oxygen value to the probe.
The 4 bytes represenng the temperature value in the received response frame are 0x00, 0x00, 0x8d and
0x41. Then the user can get the decimal number of the corresponding temperature value through the following
statement.
Temperature = 17.625.
oat temperature = oatTOdecimal( 0x00, 0x00, 0x8d, 0x41)
Read Instrucon Mode
The communicaon protocol adopts Modbus RTU protocol. The content and address of the communicaon can
be changed according to the needs of customers.
The default conguraon is network address 01, baud rate 9600, even check, one stop bit, users can set their
own changes;
Funcon code 0x04: This funcon enables the host to obtain real-me measurements from slaves, which are
specied as single-precision oang-point type (i.e. occupying two consecuve register addresses), and to mark
the corresponding parameters with dierent register addresses. Communicaon address is as follows:
• 0000-0001: Main Measured Value
• 0002-0003: Temperature value
• 0004-0005: Main Voltage Value
• 0006-0007: Temperature and Voltage Value
Communicaon Examples
Examples of funcon code 04 instrucons:
Communicaon Address = 1, Main Value = 20.0, Temperature = 10.0, Main Voltage=100.0,
Temperature Voltage= 200.0
Host Send: 01 04 00 00 08 F1 CC
Slave Response: 01 04 10 00 00 41 A0 00 00 41 20 00 00 42 C8 00 00 43 48 81 E8
Note:
• [01] Represents the instrument communicaon address;
• [04] Represents funcon code 04;
• [10] represents 10H (16) byte data;
• [00 00 00 41 A0] = 20.0; / Main Measured Value
• [00 00 4120]= 10.0; // Temperature value
• [00 00 42 C8] = 100.0; / / Main measured voltage value
• [00 00 43 48] = 200.0; / / Temperature and Voltage Value
• [81 E8] represents CRC16 check code;
Table of contents
Other Turtle Tough Measuring Instrument manuals