Call Phone +8618073152920 Hotline: +8618073152920
Call Phone +8618073152920
English
CONTACT US/ CONTACT US
Consumer hotline +8618073152920
Changsha Zoko Link Technology Co., Ltd.

Email:Arvin@niubol.com

WhatsApp:+8615367865107

Address:Room 102, District D, Houhu Industrial Park, Yuelu District, Changsha City, Hunan Province, China

Position:Home >> Blogs >> Product knowledge

Product knowledge

CL Sensor Modbus RTU Integration: Decode Chlorine and Temperature Correctly

Time:2026-05-17 09:51:12 Popularity:560

Quick Answer

CL sensor Modbus RTU integration requires four measurement registers to be decoded as integer values and decimal-place fields, not one floating-point block. For the NiuBoL basic CL example, the chlorine words 0x0167 and 0x0003 mean 0.359 mg/L. Verify temperature, data freshness and the HClO measurement label before the PLC uses the result for an alarm or control function.

Pool circulation water as one chlorine-monitoring application

Start with a read-only connection to one sensor

The basic CL communication configuration uses RS485 Modbus RTU, with a default of 9600 baud, 8 data bits, no parity and one stop bit. The documented example uses device address 10, shown as 0A in hexadecimal. Confirm the delivered settings rather than assigning them to every pictured chlorine model.

Connect one device before adding a shared bus. Verify supply and conductor identification against the supplied connection information. The basic CL wiring identifies red as positive power, black as GND, blue as RS485 A, white as RS485 B and a bare shield conductor. Other versions may use different arrangements.

Begin with measurement reads. Do not test communications by sending calibration or reset commands: a valid write can change the instrument even when the operator only intended to check wiring.

Read the measurement block with the right address convention

The four-register measurement block begins at protocol address 0x0000, also shown as holding-register reference 40001. Some master software expects the protocol offset; other software asks for a register reference. Check its convention instead of entering 40001 into an offset field.

The documented read request is 0A 03 00 00 00 04 45 72. It addresses device 10, uses function 03 and requests four registers from offset zero. This is a read example for that configuration, not an instruction to overwrite another device's settings.

NiuBoL basic CL constant-voltage chlorine probe

Decode the values before building the display

The example response is 0A 03 08 01 67 00 03 01 6F 00 01 D3 DB. The byte count is eight: four two-byte fields. The first pair contains chlorine value and decimal places; the second contains temperature value and decimal places.

FieldExample register wordInterpretation
Chlorine integer0x0167 = 359Raw chlorine magnitude
Chlorine decimal places0x0003 = 3359 / 10^3 = 0.359 mg/L
Temperature integer0x016F = 367Raw temperature magnitude
Temperature decimal places0x0001 = 1367 / 10^1 = 36.7 degrees C

Compare the decoded values at three points: direct sensor read, PLC or RTU tag and the final data logger or supervisory display. Keep the four fields identifiable while commissioning. Combining two words into an IEEE floating-point value would interpret a different data format.

For a delivered configuration with different field definitions, use its applicable map. Confirm fault responses, signed-value handling and any status registers for that model before implementing the receiver. The positive-value example does not establish those additional behaviors.

NiuBoL PH-4 probe for separate water pH monitoring

Label HClO correctly and keep pH separate

The NiuBoL basic CL is specified for a 0-2.000 mg/L HClO measurement. A successful read does not convert it into a total chlorine analyzer. Preserve the quantity in the tag description and the operator display.

A separate pH channel can provide important chemical context, but Pt1000 temperature compensation is not automatic pH compensation. Any proposed derived chlorine result needs a defined calculation and suitable reference comparison. Do not relabel the measured register simply to match an existing screen heading.

Check the sample before blaming the bus

Basic CL itemSpecificationCommissioning check
Principle and rangeConstant voltage; 0-2.000 mg/L HClORequired quantity and concentration fit this channel
Resolution and accuracy0.001 mg/L; +/-5% or +/-0.05 mg/LConfirm percentage basis and required comparison tolerance
Sample conditions5-50 degrees C; pH 4-9; pressure below 0.1 MPaCheck conditions at the flow cell, not just in the main
Flow and responseMatching flow cell at 30-60 L/h; response below 30 sAdd sample travel and receiver timing to the observed delay
Supply and interface12-24 V DC +/-10%; 0.2 W at 12 V; RS485 Modbus RTUVerify voltage at the device and actual serial settings
Construction and cablePOM/PTFE; IP68; standard 5 m cableCheck fittings, cable jacket compatibility and external joints

A stable digital result can come from stale sample water. Inspect flow, bubbles and sample renewal when an online value fails to follow a process change. Conversely, a communication timeout is not evidence that chlorine concentration is zero.

NiuBoL CL series stainless steel probe assembly

Test failure handling without changing calibration

Disconnect communications under controlled commissioning conditions and verify what the receiving system displays. A last-held value needs a visible age or invalid status; it must not silently remain available as a fresh dosing input. Test recovery and confirm that new replies update the timestamp.

Evaluate low-flow handling separately. If the sensor does not provide a documented flow-status field, the software cannot infer actual flow from a successful response. Use suitable independent flow supervision where the process requires it, or define an explicit operator check.

Test any proposed automatic action against the site's approved control and safety arrangements. Do not perform dosing trials merely by forcing a concentration tag on a live plant. Keep simulated receiver tests separate from controlled process verification.

NiuBoL chlorine electrode sensing element detail

Record a reproducible integration result

Retain the sensor model, address, serial settings, register convention, raw response and decoded values. Include the screen label, update interval and communication-loss behavior. Record sample conditions and a compatible reference comparison separately from the electrical test.

For a configuration review, send NiuBoL the receiving PLC, RTU or data logger requirements, intended chlorine quantity, required range and sample arrangement. If an existing system needs 4-20 mA, ask for a documented suitable configuration or conversion arrangement; do not assume that every basic CL unit has an analog output.

Project Decision FAQ

Q1. Why is the PLC value 359 instead of 0.359?

The integer may be displayed without its decimal-place field. In the documented example, divide 359 by 10^3. Check the actual fields before changing a fixed scale factor.

Q2. Should the master read offset 0 or reference 40001?

They identify the documented start under different address conventions. Use the convention required by the master software; entering the wrong form can request a different address.

Q3. Can four words be read as two floating-point values?

Not for this example. The words hold a chlorine integer, its decimal places, a temperature integer and its decimal places. Decode them according to those definitions.

Q4. Does a valid Modbus reply establish a valid sample?

No. Verify flow and sample conditions separately. Communication can continue while the flow cell contains old water.

Q5. Should a timeout write zero to the chlorine tag?

Not as a measured concentration. Preserve the distinction between no valid data and a valid low reading, and implement the project's approved invalid-data response.

NiuBoL polymer-housing CL probe

Summary

CL sensor Modbus RTU integration is complete when the raw fields, displayed quantity and failure behavior agree with the supplied instrument. Decode the integer and decimal-place pairs, preserve the HClO basis and verify the sample separately. This gives the receiving system a traceable NiuBoL measurement instead of only a successful serial connection.

PDF downloadNBL-WQ-CL Water Quality Sensor Online Residual Chlorine Sensor.pdf

PDF downloadNBL-WQ-CL-4A Industrial-grade Online Residual Chlorine Sensor.pdf

PDF downloadNBL-WQ-CL-4S Series Online Water quality Residual Chlorine Sensor.pdf

Related recommendations

Sensors & Weather Stations Catalog

Agriculture Sensors and Weather Stations Catalog-NiuBoL.pdf

Weather Stations Catalog-NiuBoL.pdf

Agriculture Sensors Catalog-NiuBoL.pdf

Water Quality Sensor Catalog-NiuBoL.pdf

Related products

Tell us your requirements, Let's discuss more about your project.we can do more.

Name*

Tel*

Email*

Company*

Country*

Message


online
Contacts
Email
Top
XCL Sensor Modbus RTU Integration: Decode Chlorine and Temperature Correctly-Product knowledge-Automatic Weather Stations_Industrial, Agricultural, Water & Environmental IoT Monitoring Solutions—NiuBoL

Screenshot, WhatsApp to identify the QR code

WhatsApp number:+8615367865107

(Click on WhatsApp to copy and add friends)

Open WhatsApp

The WhatsApp ID has been copied, please open WhatsApp to add consultation details!
WhatsApp