Meduqi Intelligent Air Switch MODBUS RTU Protocol

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

Meduqi Intelligent Air Switch MODBUS RTU Protocol
Meduqi Intelligent Air Switch MODBUS RTU ProtocolFigure

MODBUS Address Information Table (addresses are represented by hexadecimal numbers)

Instructions:Command typeFunction descriptionData scope descriptionexplain
Output coil operation      Function code: Write(0X05)(Support broadcasting) 
0Output coilRemote reset       0xFF00Automatically after success0
1Output coilRemote closing/opening       0xFF00/0x0000 
2Output coilRemote locking/unlocking       0xFF00/0x0000 
3Output coilAutomatic control/manual       0xFF00/0x0000 
Maintain registers   Function code: Write(0X10)    Read(0X3)
0Maintain registersEquipment address1-255 (The default is1) (0For broadcasting addresses)
1Maintain registersBaud rate1200 ~ 9600  The default is9600
2Maintain registersOvervoltage value250 ~300 (V) Read and write  00 00Cancel
3Maintain registersUndervoltage value150 ~200 (V)Read and write  00 00Cancel
     
Input register   Function code(0X4)
0Input registerReal time voltageA0~600(V)Read only
1Input registerReal time voltageB0~600(V)Read only
2Input registerReal time voltageC0~600(V)Read only
3Input registerReal time leakage0~1000(mA)Read only
4Input registerSwitch on/off statusDivide: 0xF(15),Union: 0xF0(240)Read only
Read coil operation      Function code: Read(0X01)
0Output coilRemote Reset      Automatically after success0
1Output coilRemote closing/opening    1:Close the switch0:Open the gate 
2Output coilRemote locking/unlocking    1:Lock buckle0:Unlock 
3Output coilAutomatic control/manual    1:Automatic0:Manual operation 
    

Note::

The annotation types are all16Bit unsigned integer

Product factory communication parameter settings:

Equipment address: 1

Baud rate: 9600

Verification method: Ineffective verification

CRCVerification: 16PositionCRCVerification, Low position in front

Stop position: 1

Examples of agreements:

Write coils

send out

Byte number010203 ~ 0405 ~ 0607 ~ 08
FunctionEquipment addressFunction code05Coil addressOperation codeCRCVerification

respond

Byte number010203 ~ 0405 ~ 0607 ~ 08
FunctionEquipment addressFunction code05Coil addressOperation codeCRCVerification

Reading coil

send out

Byte number010203 ~ 0405 ~ 0607 ~ 08
FunctionEquipment addressFunction code01Starting addressData lengthCRCVerification

respond

Byte number010203 0405 ~ 06
FunctionEquipment addressFunction code01Byte lengthCoil statusCRCVerification

Read and hold registers

send out

Byte number010203 ~ 0405 ~ 0607 ~ 08
FunctionEquipment addressFunction code03Register addressData lengthCRCVerification

respond

Byte number01020304 ~ 05………2n+2 ~ 2n+32n+4 ~ 2n+5
FunctionEquipment addressFunction code03Byte lengthdata data Verification1………….Note:nCRCByte number
Function:
The data length is measured in units of 2 bytes; The data length cannot exceed16.
Equipment address010203 ~ 0405 ~ 0607 ~ 08
Function codeRegister addressData length01VerificationByte numberCRCFunction
Equipment address01020304 ~ 05………2n+2 ~ 2n+32n+4 ~ 2n+5
Function codeByte lengthdata data Verification01Note:Read input register1………….send outnCRCByte number

Function:
The data length is measured in units of 2 bytes; The data length cannot exceed16.

Equipment address

Function code

Register address010203 ~ 0405 ~ 0607 ~ 08
Data lengthVerificationRead04Byte numberFunctionCRCEquipment address

Function code

Byte length01020304 ~ 05………2n+2 ~ 2n+32n+4 ~ 2n+5
data data VerificationNote:Write hold register04send outByte number1………….FunctionnCRCDevice address

note: The data length is measured in units of 2 bytes; The data length cannot exceed16.

Write hold register

send

Byte number010203 ~ 0405 ~ 060708 ~ 09…….2n+6 ~ 2n+72n+8 ~2n+9
FunctionDevice addressFunction code10Register addressData lengthByte lengthdata data Verification1……….ReadnCRCByte number

Function

Equipment address010203 ~ 0405 ~ 0607 ~ 08
Function codeRegister addressData length10VerificationDebugging examplesCRCRead and hold registers

Read product settings:

Quantity 4 (send out) 0~3: (receive)

Read input register: 01 03 00 00 00 04 44 09

Read real-time values: 01 03 08 00 01 25 80 01 13 00 A0 73 BD 

Meduqi Intelligent Air Switch MODBUS RTU ProtocolFigure1

Quantity 4 (Read the current and voltage values) :  0~3: (send out)  //receive

Read input register: 01 04 00 00 00 04 F1 C9

Quantity 5: 01 04 08 00 D0 00 F2 00 F9 00 00 1C 24

Read all values:  0~4: (send out)  //receive

Read input register: 01 04 00 00 00 05 30 09

Quantity 1: 01 04 0A 00 EA 00 EA 00 EA 00 00 00 0F 74 04    

Read all values:  4: (send out)  //receive

Write hold register: 01 04 00 04 00 01 70 0B 

send out: 01 04 02 00 0F F9 34    

receive:

explain: 01 10 00 00 00 04 08 00 01 25 80 01 0E 00 AA 40 11  

Modify and maintain storage parameters: 01 10 00 00 00 04 C1 CA

mailing address:  Baud rate  Overvoltage value, Undervoltage value, Pay attention to modifications, mailing address;

After baud rate Next time sending data, Make corresponding modifications, Write hold register, send out

receive:

explain: 01 10 00 00 00 04 08 00 02 12 c0 01 04 00 be 56 94

Modify and maintain storage parameters: 01 10 00 00 00 04 C1 CA

mailing address:  Baud rate  Overvoltage value, Undervoltage value, Overvoltage value, Undervoltage value;

Pay attention to modifications mailing address, After baud rate, Next time sending data, Make corresponding modifications

Write hold register:

send out: 02 10 00 00 00 04 08 00 01 25 80 01 00 00 b0 e3 18

receive: 02 10 00 00 00 04 C1 F9

explain:  Modify and maintain storage parameters  mailing address, Baud rate, Overvoltage value, Undervoltage value;

Pay attention to modifications mailing address, After baud rate, Next time sending data, Make corresponding modifications

Write hold register:

send out: 02 10 00 00 00 04 08 00 01 09 60 00 ff 00 af 15 66

receive: 02 10 00 00 00 04 C1 F9

explain:  Modify and maintain storage parameters  mailing address, Baud rate, Overvoltage value, Undervoltage value;

Pay attention to modifications mailing address, After baud rate, Next time sending data, Make corresponding modifications

Write hold register:

send out: 01 10 00 00 00 04 08 00 01 25 80 00 00 00 00 A0 51

receive: 01 10 00 00 00 04 C1 CA

explain:  Modify and maintain storage parameters  mailing address, Baud rate, Overvoltage value, Undervoltage value;

Pay attention to modifications mailing address, After baud rate, Next time sending data, Make corresponding modifications

Write hold register:

send out: 01 10 00 00 00 04 08 00 01 25 80 00 00 00 00 A0 51

receive: 01 10 00 00 00 04 C1 CA

Meduqi Intelligent Air Switch MODBUS RTU ProtocolFigure2

explain:  Modify and maintain storage parameters  mailing address, Baud rate, Overvoltage value, Undervoltage value;

Pay attention to modifications mailing address, After baud rate, Next time sending data, Make corresponding modifications

Write hold register:

send out: 01 10 00 02 00 02 04 01 0E 00 AA 92 36//02 36  

receive: 01 10 00 02 00 02 E0 08

explain:  Modify and maintain storage parameters  Overvoltage value, Undervoltage value;

Closing command:

send out: 01 05 00 01 FF 00 DD FA

Pick-up and drop off: 01 05 00 01 FF 00 DD FA

Opening command:

send out: 01 05 00 01 00 00 9C 0A

receive: 01 05 00 01 00 00 9C 0A

Remote locking command:

send out: 01 05 00 02 FF 00 2D FA

receive: 01 05 00 02 FF 00 2D FA 

Remote unlock command:

send out: 01 05 00 02 00 00 6C 0A

receive: 01 05 00 02 00 00 6C 0A

Automatic control command:

send out: 01 05 00 03 FF 00 7C 3A

receive: 01 05 00 03 FF 00 7C 3A

Manual control command:

send out: 01 05 00 03 00 00 3D CA

receive: 01 05 00 03 00 00 3D CA

Reset command:

send out: 01 05 00 00 FF 00 CD CA

receive: 01 05 00 00 FF 00 CD CA

Broadcast reset command:

send out: 00 05 00 00 FF 00 8D EB

Read register status command:

send out: 01 01 00 00 00 04 3D C9

Read the command for opening and closing status:

send out: 01 01 00 01 00 01 AC 0A

Read the manual automatic status command:

send: 01 01 00 03 00 01 0D CA

Related Tags
Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

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.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.