Changes for page Water Quality Sensors

Last modified by Karry Zhuang on 2025/07/25 09:38

From version 69.4
edited by Karry Zhuang
on 2025/07/15 19:07
Change comment: There is no comment for this version
To version 69.11
edited by Karry Zhuang
on 2025/07/15 19:11
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1015,16 +1015,27 @@
1015 1015  Example 1: Read the current residual chlorine concentration of the device with address 01
1016 1016  
1017 1017  (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:534.333px" %)
1018 -|=(% style="width: 42px;background-color:#4F81BD;color:white" %)Address|=(% style="width: 53px;background-color:#4F81BD;color:white" %)Function code|=(% style="width: 53px;background-color:#4F81BD;color:white" %)Register Address|=(% style="width: 53px;background-color:#4F81BD;color:white" %)Register length|=(% style="width: 53px;background-color:#4F81BD;color:white" %)Data length|=(% style="width: 53px; background-color: rgb(79, 129, 189); color: white;" %)CRC16 low|=(% style="width: 60px; background-color: rgb(79, 129, 189); color: white;" %)CRC16 high
1019 -|(% style="width:99px" %)0X01|(% style="width:112px" %)0X03|(% style="width:135px" %)0X00 0X00|(% style="width:126px" %)0X00 0X01|(% style="width:85px" %)0X06|(% style="width:1px" %)(((
1018 +|=(% style="width: 42px;background-color:#4F81BD;color:white" %)Address|=(% style="width: 53px;background-color:#4F81BD;color:white" %)Function code|=(% style="width: 74px; background-color: rgb(79, 129, 189); color: white;" %)Register Address|=(% style="width: 94px; background-color: rgb(79, 129, 189); color: white;" %)Register length|=(% style="width: 72px; background-color: rgb(79, 129, 189); color: white;" %)CRC16 low|=(% style="width: 77px; background-color: rgb(79, 129, 189); color: white;" %)CRC16 high
1019 +|(% style="width:99px" %)0X01|(% style="width:112px" %)0X03|(% style="width:74px" %)0X00 0X00|(% style="width:94px" %)0X00 0X01|(% style="width:72px" %)(((
1020 1020  0X84
1021 -)))|(% style="width:60px" %)0X0a
1021 +)))|(% style="width:77px" %)0X0A
1022 1022  
1023 +**response:**
1023 1023  
1025 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:534.333px" %)
1026 +|=(% style="width: 42px;background-color:#4F81BD;color:white" %)Address|=(% style="width: 83px; background-color: rgb(79, 129, 189); color: white;" %)Function code|=(% style="width: 110px; background-color: rgb(79, 129, 189); color: white;" %)Valid Bytes|=(% style="width: 94px; background-color: rgb(79, 129, 189); color: white;" %)Register contents|=(% style="width: 72px; background-color: rgb(79, 129, 189); color: white;" %)CRC16 low|=(% style="width: 77px; background-color: rgb(79, 129, 189); color: white;" %)CRC16 high
1027 +|(% style="width:99px" %)0X01|(% style="width:83px" %)0X03|(% style="width:110px" %)0X02|(% style="width:94px" %)0X03 0X16|(% style="width:72px" %)(((
1028 +0X39
1029 +)))|(% style="width:77px" %)0X7A
1024 1024  
1031 +Calculation of residual chlorine concentration: 316H (hexadecimal) = 790 => residual chlorine = 7.90
1025 1025  
1026 1026  
1034 +Example 2: Set the deviation value for the current residual chlorine value of the device with address 01 to correct the value and send the frame: (If the current residual gas value output by the device is 7.90, the value needs to be corrected to 8.00, the difference is 8.00-7.90-0.100.1*100=10=>41200000 (floating point number), write 41200000 to the contents of the two registers)
1027 1027  
1036 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:518px" %)
1037 +|=(% style="width: 80.75px;background-color:#4F81BD;color:white" %)Original address|=(% style="width: 64.75px;background-color:#4F81BD;color:white" %)Function code|=(% style="width: 64.75px;background-color:#4F81BD;color:white" %)Register address|=(% style="width: 64.75px;background-color:#4F81BD;color:white" %)Register number|=(% style="width: 64.75px;background-color:#4F81BD;color:white" %)Byte number|=(% style="width: 64.75px; background-color: rgb(79, 129, 189); color: white;" %)Quantity low|=(% style="width: 54.75px;background-color:#4F81BD;color:white" %)CRC16 low|=(% style="width: 58.75px;background-color:#4F81BD;color:white" %)CRC16 high
1038 +|(% style="width:99px" %)0X01|(% style="width:112px" %)0X06|(% style="width:135px" %)0X00|(% style="width:126px" %)0X50|(% style="width:85px" %)0X00|(% style="width:1px" %)0X02|(% style="width:1px" %)0X08|(% style="width:1px" %)0X1A
1028 1028  
1029 1029  
1030 1030  
... ... @@ -1038,6 +1038,8 @@
1038 1038  
1039 1039  
1040 1040  
1052 +
1053 +
1041 1041  = 7.  Water Quality Sensor Datasheet =
1042 1042  
1043 1043  * **[[Water Quality Sensor Transmitter Datasheet>>https://www.dropbox.com/scl/fi/9tofocmgapkbddshznumn/Datasheet_WQS-xB-WQS-xS_Water-Quality-Sensor-Transmitter.pdf?rlkey=wxua12ur9swk30rkqnh2boo9z&st=axga6epf&dl=0]]**