Table1Gateway communication parameter settings
| Byte 1 (01) - Address of air conditioning gateway device (MODBUS defined as Slave ID) | Write the value 00 1C to 1 (0x00 0x01) register starting from address 4001 (0x0F 0xA1), totaling 2 bytes |
| Transmission mode | Half duplex |
| Baud rate | 9600bps |
| Starting position | 1 Position |
| Data bits | 8 Position |
| Checksum | Occasional verification(Even) |
| Stop position | 1 Position |
The above communication specifications can also be obtained through the gateway's built-in settingsWEBMake changes to the page
Table2 Main application function codes
| Function code used for gateway | effect |
| 0x03 (Read and save registers) | Used to read the status of the air conditioner. Read and operate one or more registers at a time (register addresses must be consecutive) . each register holds a status parameter of an air conditioner, based on the number of registers read, one or more parameters of an air conditioner can be read at once (such as switch, temperature setting, etc.), all parameters of several air conditioners can also be read at once), write a single register. |
| 0x06 (used to write and set a parameter of an air conditioner, only one register can be written and operated on at a time) | each write operation will make a setting instruction for one parameter of an air conditioner, write multiple registers, used to write and set multiple parameters of multiple air conditioners, multiple registers can be written and operated on at a time (register addresses must be consecutive. |
| 0x10 (based on the number of registers written) | can be set one at a time) One or multiple parameters of an air conditioner) . multiple parameters of multiple air conditioners can also be written at once, status parameters, including. |
Switch status, Temperature setting value: Mode setting status, Wind speed setting, Room temperature and fault codes, Is it a host, Air conditioning performance parameters, include.
Air conditioning brand, Mode information, wind speed information: Set temperature information, Special performance information, Table, State saving register.
The correspondence between the address and the address of the indoor unit of the air conditioner3 Address of indoor air conditioning unit Status parameter storage register address
| Air conditioning performance information | The starting address of the indoor unit status parameter storage register is |
| 0-0 | 0,1,2,3,4,5 |
| 0- 1 | 6,7,8,9,10,11 |
| 0-2 | 12,13,14,15,16,17 |
| …… | …… |
| 0-31 | 186,187,188,189,190,191 |
| 1-0 | 192,193,194,195,196,197 |
| 1- 1 | 198,199,200,201,202,203 |
| 1-2 | 204, 205, 206, 207, 208, 209 |
| …… | …… |
| 1 31 | 378, 379, 380, 381, 382, 383 |
| …… | …… |
| Each register with 4 consecutive addresses stores 1 control finger for the indoor unit | 8000, 8001, 8002, 8003, 8004 |
Order4000, include Switch command, including: Switch command, Temperature setting value instruction, Mode setting instruction, Wind speed setting instruction, Wind direction setting instruction.
Table4 The correspondence between the control instruction register address and the indoor unit address of the air conditioner is shown in the following table

Table5 Query the current master-slave status of the air conditioner using the point table (correspondingMODBUSfunction code0x03)


current start stop status: 0x01->power on; 0x00->power off.
current mode setting: 0x01->cooling; 0x02->dehumidification; 0x04->air supply; 0x08->heating.
current wind direction setting: 0x00->swing; 0x01->left and right air guide plate positions1; ... 0x06->left and right air guide plate positions6;
0x10->front and rear air guide plate positions1 … 0x60front and rear air guide plate positions6;
0x42->left and right air guide plate positions4, current wind speed setting2 .
…
high speed: 0x01->medium speed; 0x02->low speed; 0x04->automatic; 0x00->current temperature setting.
air conditioner with master-slave concept): 0x1E->30℃; 0x12->18℃; 0x14->20℃; 0x1A->26℃.
(From machine: 0x00->host; 0x01->Current room temperature.
Current fault code: 0x21->33℃; 0x10->16℃.
No malfunction: 0x00->Drainage pump malfunction; 0x01->01 (The starting address of the air conditioning performance parameter storage register is)
A register with consecutive addresses stores the performance parameters of the current air conditioner8000 , 5include,
Air conditioning brand: Mode information, wind speed information, Set temperature information, Special performance information, Table
Point table used to query air conditioning performance information (corresponding6 function codeMODBUSair conditioning brand0x03)

occupies 1 byte in total:
used, base number represents brand16Hitachi
0x01: Daikin; 0x02: Toshiba; 0x03: Mitsubishi Heavy Industries; 0x04: Mitsubishi Electric;
0x05: Gree; 0x06: Hisense; 0x07: Midea); 0x08: Midea;
0x09: Haier; 0x0A: LG; 0x0B: Default; 0x0C: Default;
0x0D: Samsung; 0x0E: AUX; 0x0F: Panasonic; 0x10: York;
0x11: Default; 0x12: Default; 0x13: Gree Fourth Generation; 0x14: Default;
0x15: Maxwell; 0x16: Default; 0x17: Default; 0x18: TCL;
0x19: Zhigao; 0x1A: Tianjia; 0x1B: Default; 0x1C: Default
0x23: York water machine; 0x24: Cool style; 0x25: Qingdao York; 0x26: Fujitsu;
0x65: Emerson water machine; 0x66: McQuay water machine; 0x29: Default
0xFF: Simulator;
Support mode:
Occupy 2 bytes (0Represents the absence of this feature, 1Represents support for this feature)
Data examples:
0x00 0x17->Support dehumidification, Air supply, heating, Four cooling modes;
Support wind speed:
Occupy 1 byte (0Represents the absence of this feature, 1Represents support for this feature)
Data examples:
0x27->Support low speed, Medium speed, High speed, Four types of automatic wind speeds;
Temperature upper and lower limits:
Occupying a total of 2 bytes
Data examples:
0x1E 0x10->Support temperature range16-30centigrade
Special performance information:
Occupy one byte (0Represents the absence of this feature, 1Represents support for this feature)
PositionBIT0, 1To have a master-slave concept, 0For the concept of master-slave devices;
PositionBIT1, Default;
PositionBIT2, 1Set with forward and backward wind direction, 0Set for no forward or backward wind direction;
PositionBIT3, 1Set with left and right wind directions, 0Set for no left or right wind direction;
Data examples:
0x05->The air conditioner has front and rear wind direction settings, There is a master-slave concept;
0x0C->The air conditioner has left and right wind direction settings, There are front and rear wind direction settings.
◆ 03(0x03)Function code——Query multiple registers (Used to read the status of the air conditioner)
The examples of sending and receiving data in the following text, All of its formats are:16Base system, For example01For0x01, C5For0xC5
Integrated system sending: 01 03 00 C0 00 06 C5 F4
Integrated system reception: 01 03 0C 00 01 00 19 00 01 00 01 00 1C 00 00 DC DA
Meaning of the code sent by the integrated system:
The first byte (01) ——Address of air conditioning gateway equipment (MODBUSDefined asSlave ID) , The factory default is01, If there is
Multiple air conditioning gateways are simultaneously connected to oneRS485On the bus, To distinguish each other, It is necessary to set the location for each air conditioning gateway
Address (The gateway address is set in its configurationWEBSimply proceed on the page) , If thisRS485Bus and other devices, That
The addresses of other devices and the air conditioning gateway devices cannot conflict.
The second byte (03) ——MODBUSFunction code, Its meaning is to read the values of a series of registers.
The3, 4Byte (00 C0) ——From00 C0Starting to read the values of a series of registers
The5, 6Byte (00 06) ——From the3, 4Starting from the register specified by the byte, Read together00 06A register.
The7, 8Byte (C5 F4) ——The checksum byte of the frame data (Verification method: CRC16)
Meaning of integrated system receiving code:
The first byte (01) ——Address of air conditioning gateway equipment (MODBUSDefined asSlave ID)
The second byte (03) ——MODBUSFunction code.
3rd byte (0C) ——Corresponding to query instructions, Air conditioning gateway returns together0C (decimal system: 12) A byte of data
The4~15Byte——Air conditioning gateway returns12The read data of bytes
The16, 17Byte (DC DA) ——The checksum byte of the frame data (Verification method: CRC16)
The4~15Detailed explanation of byte data:
Query address192 (Hexadecimal is: 00 C0) The values stored in the first 6 registers (querying the air conditioning register bit table,
these 6 registers store1-0 all status values of the indoor unit
00 01 (hexadecimal) ------------air conditioning in operation status
00 19 (hexadecimal) ------------temperature set to25℃ (0x19 = 25)
00 01 (hexadecimal) ------------mode set to cooling
00 01 (hexadecimal) ------------wind speed set to high-speed wind
00 1C (hexadecimal) ------------return air temperature (current room temperature) yes28℃ (0x1C = 28)
00 00 (hexadecimal) ------------air conditioning fault code is0 (no fault) , if there is a fault, it is the corresponding fault code, query the values of more registers at once
send by the integrated system:
for example, query the status of 2 air conditioners: 01 03 00 00 00 0C C5 F4 (receive by the integrated system)
table: 01 03 18 00 01 00 19 00 01 00 01 00 1C 00 00 00 01 00 19 00 01 00 01 00 1E 00
00 DC DA
control the point table used to set the air conditioning7 corresponding (function codeMODBUSfunction code0x06)

◆ 06(0x06) operate a single register——Used for individual operation and control of air conditioning switches (temperature setting, etc., integrated system transmission)
integrated system reception: 01 06 0F A0 00 01 4B 3C
integrated system transmission code meaning: 01 06 0F A0 00 01 4B 3C
1st byte:
Address of air conditioning gateway equipment (01) ——Defined as (MODBUSThe second byteSlave ID)
Function code (06) ——MODBUSIts meaning is to set the value of a register, The.
Byte3, 4from (0F A0) ——from0F A0 Set the value of a register at the beginning of the position.
The5, 6Byte (00 01) ——Will be3, 4The register write value specified by the byte00 01
The7, 8Byte (4B 3C) ——The checksum byte of the frame data (Verification method: CRC16)
Meaning of integrated system receiving code:
The first byte (01) ——Address of air conditioning gateway equipment (MODBUSDefined asSlave ID)
The second byte (06) ——MODBUSFunction code, Its meaning is to set the value of a register.
The3, 4Byte (0F A0) ——From0F A0 Set the value of a register at the beginning of the position.
The5, 6Byte (00 01) ——Will be3, 4The register write value specified by the byte 00 01
The7, 8Byte (4B 3C) ——The checksum byte of the frame data (Verification method: CRC16)
Provide examples to illustrate:
———— Send code“01 06 0F A0 00 01 4B 3C”The meaning of the operation:
Address:4000 (0x0F 0xA0) Write numerical values into the register1 (Corresponding transmission code data bits00 01) , According to the lookup table,
This register corresponds to 00-00 Indoor unit switch control, Write 1 to indicate startup, Write 2 to indicate shutdown.
———— Send code“01 06 0F A1 00 13 9A F1”The meaning of the operation:
Address:4001 (0x0F 0xA1) Write numerical values into the register0x13 (Corresponding transmission code data bits00 13) , According to the inventory table
Know, This register corresponds to 00-00 Temperature control of indoor units, write in0x13Set the temperature to19℃
———— Send code“01 06 0F A2 00 08 2A FA”The meaning of the operation:
Address:4002 (0x0F 0xA2) Write numerical values into the register0x08 (Corresponding transmission code data bits00 08) , According to the inventory table
Know, This register corresponds to 00-00 Mode control of indoor unit, write0x08Set the mode to“heating”
———— Send code“01 06 0F A3 00 04 7B 3F”The meaning of the operation:
Address:4003 (0x0F 0xA3) Write numerical values into the register0x04 (Corresponding transmission code data bits00 08) , According to the inventory table
Know, This register corresponds to 00-00 Wind speed control of indoor units, write in0x04Set the mode to“Low speed”
◆ 16(0x10) Function code——Operate multiple registers (Used to operate and control the switch of the air conditioner, Temperature setting, etc)
Integrated system sending: 01 10 0F A0 00 04 08 00 01 00 19 00 08 00 02 2C B5
Integrated system reception: 01 10 0F A0 00 04 C2 FC
Meaning of the code sent by the integrated system:
The first byte (01) ——Address of air conditioning gateway equipment (MODBUSDefined asSlave ID)
The second byte (10) ——MODBUSFunction code, Its meaning is to set the values of multiple registers at once.
The3, 4Byte (0F A0) ——From0F A0 Starting from the position, set the values of multiple registers at once.
The5, 6Byte (00 04) ——From the3, 4Starting from the specified byte position, Set the values of four registers at once.
The 7th byte (08) ——To set the total number of bytes to be written as8 (
4A register x 2Byte/register)
The8~15Byte ——The specific values of the four registers to be set, The8, 9Write bytes into the first register, The10,
11Write bytes to the second register, The12, 13Write bytes to the third register, The14, 15Write bytes to the fourth register
The16, 17Byte (2C B5) ——The checksum byte of the frame data (Verification method: CRC16)
Meaning of integrated system receiving code:
The first byte (01) ——Address of air conditioning gateway equipment (MODBUSDefined asSlave ID)
Second byte (10) ——MODBUSFunction code, Its meaning is to set the values of multiple registers at once.
The3, 4Byte (0F A0) ——From0F A0 Starting from the position, Set the values of multiple registers at once.
The5, 6Byte (00 04) ——From the3, 4Starting from the specified byte position, Set the values of four registers at once.
The7, 8Byte (C2 FC) ——The checksum byte of the frame data (Verification method: CRC16)
Provide examples to illustrate:
———— Send code“01 10 0F A0 00 04 08 00 01 00 19 00 08 00 02 2C B5”The meaning of the operation:
Address:4000 (0x0F 0xA0) The beginning4 (0x00 0x04 ) Each register has a total of 8 bytes, Write numerical values sequentially 00 01
00 19 00 08 00 02
00 01 (hexadecimal) ------------Address:00-00The air conditioning is turned on
00 19 (hexadecimal) ------------Address:00-00The air conditioning temperature is set to25℃ (0x19 = 25)
00 08 (hexadecimal) ------------Address:00-00The air conditioning mode is set to heating mode
00 02 (hexadecimal) ------------Address:00-00The air conditioning speed is set to medium speed
———— Send code“01 10 0F A1 00 01 02 00 1C xx xx”The meaning of the operation:
Address:4001 (0x0F 0xA1) The beginning1 (0x00 0x01 ) Each register has a total of 2 bytes, Write numerical values 00 1C
00 1C (hexadecimal) ------------Address:00-00The air conditioning temperature is set to28℃ (0x1C = 28)
Leave a Reply