ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า

MODBUS  protocol

The product uses the function code:

0x03: Read Holding Registers.

0x04: Read Input Registers. 

0x06: Single Relay Holding Register

0x10: Write multiple Hold Registers.

register type

register address

content information

number of bytes

 

input register

0x0001

temperature value

2

0x0002

moisture value

2

 

 

catch registration

0x0101

device address

1 ~ 247 (Chinese) )

2

0x0102

Baud Rate

0:9600

1:14400

2:19200

2

0x0103

Temperature correction (/10)

-10.0-10.0

2

0x0104

Humidity Corrected Value (/10)

-10.0-10.0

2

 

 

Modbus communication format : 

The host sends the frame data:

address slave

code function

register address

High Byte

register address

low bytes

Number of Registers

High Byte

Number of Registers

low bytes

CRC

High Byte

CRC

low bytes

 

 

 

 

 

 

 

 

Slave response data frame:

address slave

In Response to function code

number of bytes

Register information

High Byte

Register information

low bytes

Register data

High Byte

Register data

low bytes

CRC

High Byte

CRC

low bytes

 

 

 

 

 

 

 

 

 

 The MODBUS the Command frame

HOST Read Temperature Command Frame (0x04) :

address slave

code function

register address

High Byte

register address

low bytes

Number of Registers

High Byte

Number of Registers

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x04

0x00

0x01

0x00

0x01

0x60

0x0a

Slave response data frame:

address slave

code function

number of bytes

temperature

High Byte

temperature

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x04

0x02

0x01

0x31

0x79

0x74

 

Temperature value = 0x131, TO decimal conversion 305, the actual temperature value = 305/10 = 30.5 ℃. 

Note: temperature marked 16 decimal, temperature value = 0 xFF33, to decimal conversion -205, the actual temperature = -20.5 ℃; 

 

HOST Read Humidity Command Frame (0x04) :

address slave

code function

register address

High Byte

register address

low bytes

Number of Registers

High Byte

Number of Registers

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x04

0x00

0x02

0x00

0x01

0xC1

0xCA

Slave response data frame:

address slave

code function

number of bytes

moisture

High Byte

moisture

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x04

0x02

0x02

0x22

0xD1

0xBA

humidity value = 0x222, TO decimal conversion 546, actual humidity value = 546 / 10 = 54.6% ;

 

Continuously read temperature and humidity Command Frame (0x04) :

address slave

code function

register address

High Byte

register address

low bytes

Number of Registers

High Byte

Number of Registers

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x04

0x00

0x01

0x00

0x02

0x20

0x0B

Slave response data frame:

address slave

code function

number of bytes

temperature

High Byte

temperature

low bytes

moisture

High Byte

moisture

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x04

0x04

0x01

0x31

0x02

0x22

0x2A

0xCE

 

Read the contents of the Maintenance register (0x03) :

Use to read the slave address AS, for example:

address slave

code function

register address

High Byte

register address

low bytes

Number of Registers

High Byte

Number of Registers

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x03

0x01

0x01

0x00

0x01

0xD4

0x0F

Slave response frame:

address slave

code function

number of bytes

address slave

High Byte

address slave

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x03

0x02

0x00

0x01

0x30

0x18

 

Modify registration maintenance content (0x06) :

Use the slave address modifier AS, for example:

address slave

code function

register address

High Byte

register address

low bytes

The Register Value

High Byte

The Register Value

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x06

0x01

0x01

0x00

0x08

0xD4

0x0F

Modify Slave Address : 0x08 = 8

 

The slave responds to the framework and sends the same :

address slave

code function

register address

High Byte

register address

low bytes

The Register Value

High Byte

The Register Value

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x06

0x01

0x01

0x00

0x08

0xD4

0x0F

 

Continuously Modify Holding Register (0x10) :

address slave

code function

start address

High Byte

start address

low bytes

Number of Registers

High Byte

Number of Registers

low bytes

number of bytes

Register High Byte

Register low byte

Register High Byte

Register low bytes

CRC

High Byte

CRC

low bytes

0x01

0x06

0x01

0x01

0x00

0x02

0x04

0x00

0x20

0x25

0x80

0x25

0x09

Modify Slave Address : 0x20 = 32

Baud Rate : 0x2580 = 9600

Slave response frame:

address slave

code function

register address

High Byte

register address

low bytes

Number of Registers

High Byte

Number of Registers

low bytes

CRC

High Byte

CRC

low bytes

0x01

0x06

0x00

0x11

0x00

0x04

0xD4

0x0F

 

 

                   Conventional protocol version

Baud rate default 9600 (user can set by themselves), bit, bit, authentication

RS485Communication

 

Serial command

nature

read

Trigger temperature and humidity report

(27.4 ℃ 67.7%  temperature 27.4 ℃ humidity 67.7%)

automatic

Auto start report temperature and humidity function

Ditto )

stop

Auto stop temperature and humidity reporting function

BR:XXXX

Set Baud Rate

from 9600 to 19200

(BR:9600  Baud Rate 9600)

TC:X XX

set temperature correction

(-10.0 ~ 10.0)

(TC:02.0 temperature correction 2.0 ℃ )

HC:X XX

Calibration humidity setting

(-10.0 ~ 10.0)

(HC:-05.1  humidity correction value -5.1 %)

HZ:XXX

Set temperature and humidity report rate

(0.5,1,2,5,10)

(HZ:2  does not only automatically report Rate 2) 

PARAM

Read current system settings

 

 

PARAM Recommendations :

TC:0.0,HC:0.0,BR:9600 HZ:1 -> Temperature Correction 0.0 Humidity Correction Value 0.0 Baud Rate 9600 Report Rate 1Hz 

SLAVE_ADD:1  -> MODBUS slave address 0x01

เงื่อนไขอื่นๆ
Tags

วิธีการสั่งซื้อสินค้า

วิธีการชำระเงิน

ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาสุขาภิบาล3 สะสมทรัพย์
ธนาคารไทยพาณิชย์ จำกัด (มหาชน) สาขาสุขาภิบาล3 ออมทรัพย์
บมจ. ธนาคารกรุงไทย สาขาเดอะมอลล์บางกะปิ2 ออมทรัพย์

นโยบายการเปลี่ยนหรือคืนสินค้า

การเปลี่ยนสินค้า กรณีที่สินค้าที่ได้ซื้อ มีปัญหาจากตัวสินค้าชำรุดเสียหายเนื่องจากการผลิต สามารถเปลี่ยนสินค้าใหม่ได้ ภายใน 7 วัน นับจากวันที่ซื้อสินค้า หากพ้นกำหนดนี้ บริษัทฯ จะรับเคลมสินค้าตามขั้นตอนปกติ งดคืนสินค้าทุกกรณี
รายการสั่งซื้อของฉัน
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านสมาร์ทฟาร์มดีไอวาย
สมาร์ทฟาร์มดีไอวาย
บริษัท สมาร์ทเอไอโซลูชั่น จำกัด รับก่อสร้างฟาร์ม โรงเรือนระบบปิด ระบบเปิด ขนาดเล็ก กลาง ใหญ่ plant factory โรงเรือนอัจฉริยะ ฟาร์มระบบอัตโนมัติและรับติดตั้งระบบควบคุมสมองกลอิเล็กทรอนิกส์ ทั้ง Industrial และ Non Industrial, Smart Farm ฟาร์มพืช ฟาร์มสัตว์ สำหรับเกษตรยุคใหม่ นอกจากนี้ยังจำหน่ายอุปกรณ์ ให้คำปรึกษา ออกแบบ แผนผังระบบฟาร์ม โรงเรือน งานจัดสวน งานออกโชว์ งานโมเดล ต่างๆ ที่เกี่ยวข้อง และจำหน่ายอุปกรณ์สินค้าทางการเกษตร อุปกรณ์เทคโนโลยีในงานเกษตร ต่างๆ สมาร์ทฟาร์มดีไอวาย เลขที่ประจำตัวผู้เสียภาษี : 0105560177872 LINE ID: @smartfarmdiy LINE ID: @smartfarmin
เบอร์โทร : 020779707
อีเมล : contact@smartfarmdiy.com
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม