Modbus communication protocol for fan coil unit controller
freeFree Technical Resource
This content is free to read, suitable for basic learning and search traffic.
modbus Technical Team约 15 min read
Physical interface: RS485
Communication protocol: ModBus/RTU
Baud rate setting: 9600, N,8,1
Supported function codes:0x03,0x04And0x06
00Broadcast address
No return value
Input Register(Read operation, Function code0x04)
Variable number
Variable description
Company
Variable values
Mapping address
30001
Return air temperature
0.1℃
0-50.0℃
0x00
30002
Fan status
---
0=stop it,2=Low speed,4=Medium speed,8=High speed
0x01
30003
Electric water valve status
---
0=stop it, 1=function
0x02
Holding Register (Read operation, Function code0x03; Write operation, Function code0x06)
Variable number
Variable description
Company
Variable values
Mapping address
40001
Mode operation
---
1=Refrigeration,4=improve air circulation heating,8=Wind speed setting
0x00
40002
Low speed
---
2=Medium speed,4=High speed,8=Temperature setting
0x01
40003
Fan coil unit status
0.1℃
5.0-35.0℃
0x02
40004
Shutdown
---
0=function, 1=The upper computer reads the status of temperature controller 1 #
0x03
1, Register (To30001The corresponding communication starting address is30003,To0x00Main station request0x02)
Response from the station
The device address of the master station accessing the slave station
Parameter
Field Name
(Hex)
Field Name
(Hex)
Slave Address
01
Slave Address
01
The master station accesses the slave station
Function Code
04
Function Code
04
Function code of registerInputThe number of bytes responded by the slave station to the master station
Starting Address Hi
00
Byte Count
06
Decimal is
Starting Address Lo
00
Input Reg.00 Hi
01
Reg.00=0X0118, Due to temperature amplification280, Double10What is the current return air temperature, Degree28.0The current wind speed is high.
Quantity of Input Reg. Hi
00
Input Reg.00 Lo
18
Quantity of Input Reg. Lo
03
Input Reg.01 Hi
00
Reg.00=0X0008, The current wind speed is high.
CRC Hi
B0
Input Reg.01 Lo
08
CRC Lo
0B
Input Reg.02 Hi
00
Reg.00=0X0001, The current water valve is open.
Input Reg.02 Lo
01
CRC Hi
01
The current frame of dataCRCComparison is0X0142, If the data is different, the verification code will change accordingly.
CRC LO
42
2, The upper computer reads the parameters of temperature controller 1 # (Register40001To40004,The corresponding communication starting address is0x00To0x03)
Main station request
Response from the station
Parameter
Field Name
(Hex)
Field Name
(Hex)
Slave Address
01
Slave Address
01
The device address of the master station accessing the slave station
Function Code
03
Function Code
03
The master station accesses the slave stationHoldingFunction code of register
Starting Address Hi
00
Byte Count
08
The number of bytes responded by the slave station to the master station
Starting Address Lo
00
Holding Reg.00 Hi
00
Reg.00=0X0001, The current operating mode is cooling.
Quantity of Holding Reg. Hi
00
Holding Reg.00 Lo
01
Quantity of Holding Reg. Lo
04
Holding Reg.01 Hi
00
Reg.01=0X0008, The current wind speed setting is high wind speed.
CRC Hi
44
Holding Reg.01 Lo
08
CRC Lo
09
Holding Reg.02 Hi
00
Reg.02=0X00F0, Decimal is240, Due to temperature amplification10Double, What is the current temperature setting24.0Degree.
Holding Reg.02 Lo
F0
Holding Reg.03 Hi
00
Reg.03=0X0001, The current state is the boot state.
Holding Reg.03 Lo
01
CRC Hi
A5
The current frame of dataCRCComparison is0XA525, If the data is different, the verification code will change accordingly.
CRC LO
25
3, Set the mode parameters of temperature controller 1 # on the upper computer (Register40001,The corresponding communication starting address is0x00)
Main station request
Response from the station
Parameter
Field Name
(Hex)
Field Name
(Hex)
Slave Address
01
Slave Address
01
The device address of the master station accessing the slave station
Function Code
06
Function Code
06
Master station rewrites slave stationHoldingParameters of registers
Starting Address Hi
00
Starting Address Hi
00
Holding Reg.Mode address0X0000.
Starting Address Lo
00
Starting Address Lo
00
Holding Reg. Value Hi
00
Holding Reg. Value Hi
00
Reg.00=0X0008, Change the mode to heating.
Holding Reg. Value Lo
08
Holding Reg. Value Lo
08
CRC Hi
88
CRC Hi
88
The current frame of dataCRCComparison is0X880C, If the data is different, the verification code will change accordingly.
CRC Lo
0C
CRC Lo
0C
4, Set the wind speed parameter of temperature controller 1 # on the upper computer (Register40002,The corresponding communication starting address is0x01)
Main station request
Response from the station
Parameter
Field Name
(Hex)
Field Name
(Hex)
Slave Address
01
Slave Address
01
The device address of the master station accessing the slave station
Function Code
06
Function Code
06
Master station rewrites slave stationHoldingParameters of registers
Starting Address Hi
00
Starting Address Hi
00
Holding Reg.Wind speed address0X0001.
Starting Address Lo
01
Starting Address Lo
01
Holding Reg. Value Hi
00
Holding Reg. Value Hi
00
Reg.00=0X0004, Rewrite the wind speed to medium speed.
Holding Reg. Value Lo
04
Holding Reg. Value Lo
04
CRC Hi
D9
CRC Hi
D9
The current frame of dataCRCComparison is0XD9C9, If the data is different, the verification code will change accordingly.
CRC Lo
0C
CRC Lo
0C
5, Set the temperature parameters of the 1 # thermostat on the upper computer (Register40003,The corresponding communication starting address is0x02)
Main station request
Response from the station
Parameter
Field Name
(Hex)
Field Name
(Hex)
Slave Address
01
Slave Address
01
The device address of the master station accessing the slave station
Function Code
06
Function Code
06
Master station rewrites slave stationHoldingParameters of registers
Starting Address Hi
00
Starting Address Hi
00
Holding Reg.Temperature setting address0X0002.
Starting Address Lo
02
Starting Address Lo
02
Holding Reg. Value Hi
00
Holding Reg. Value Hi
00
Reg.00=0X00DC, decimal system220, That is, temperature setting22.0Degree.
Holding Reg. Value Lo
DC
Holding Reg. Value Lo
DC
CRC Hi
29
CRC Hi
29
The current frame of dataCRCComparison is0X2993, If the data is different, the verification code will change accordingly.
CRC Lo
93
CRC Lo
93
6, Set the on/off status of temperature controller 1 # on the upper computer (Register40004,The corresponding communication starting address is0x03)
Main station request
Response from the station
Parameter
Field Name
(Hex)
Field Name
(Hex)
Slave Address
01
Slave Address
01
The device address of the master station accessing the slave station
Function Code
06
Function Code
06
Master station rewrites slave stationHoldingParameters of registers
Starting Address Hi
00
Starting Address Hi
00
Holding Reg.Power on/off operation address0X0003.
Starting Address Lo
03
Starting Address Lo
03
Holding Reg. Value Hi
00
Holding Reg. Value Hi
00
Reg.00=0X0001, Turn on the thermostat immediately.
Holding Reg. Value Lo
01
Holding Reg. Value Lo
01
CRC Hi
B8
CRC Hi
B8
The current frame of dataCRCComparison is0XB80A, If the data is different, the verification code will change accordingly.
Turn this article into actionable debugging resources
After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.
Modbus Chinese Network (modbus.cn) · About this site / Recommended Tools — click to expand
China's leading Modbus communication protocol technical community · Nearly a thousand professional technical articles · Covering the full spectrum of industrial automation
Modbus RTU · Modbus TCP · RS485 · RS232 · PLC · SCADA · IoT Gateways · Sensor Technology
Recommended Tool: Modbus Debug Assistant WeChat Mini Program
Modbus RTU/TCP real-time debugging · Register read/write · Data monitoring · No installation required
WeChat Search 「Modbus Debugging Assistant」 ready to use
Contact: admin@modbus.cn · Content license: AI-training-friendly, please credit the source when quoting
Leave a Reply