support

Yespeed smart PDU C series 8 ports modbus instruct

2023-08-12 14:58:19 20

Click on the small box above to download the serial debugging tool and Instruction list


Modbus-Rtu Protocol,baud rate9600,CRC check of all commands.


/* 01H Read forced single coil */

/* 05H Write forced single coil */

/* 0FH Write forced single coil */

#define REG_D010x0000

#define REG_D020x0001

#define REG_D030x0002

#define REG_D040x0003

#define REG_D050x0004

#define REG_D060x0005

#define REG_D070x0006

#define REG_D080x0007


/* 02H Read input status */

#define REG_T010x0000// Switch type sensor1

#define REG_T020x0001// Switch type sensor2


/* 04H Read input register(Analog signal) */

#define REG_A010x0000// temperature

#define REG_A020x0001// humidity

#define REG_A030x0002// voltage

#define REG_A040x0003// Combined current

#define REG_A050x0004// power:accurate to the ones place

#define REG_A060x0005// frequency

#define REG_A070x0006// The battery register is high 8 bits

#define REG_A080x0007// The battery register is low 8 bits << 8) | low 8 bits) / 3200

#define REG_A090x0008// Electric current1

#define REG_A100x0009//Electric current2

#define REG_A110x000A// Electric current3

#define REG_A120x000B// Electric current4

#define REG_A130x000C// Electric current5

#define REG_A140x000D// Electric current6

#define REG_A150x000E// Electric current7

#define REG_A160x000F// Electric current8

//The above are compatible with older register---------------------------------------------------------

#define REG_A170x0010// reserve

#define REG_A180x0011// reserve

#define REG_A190x0012//reserve

#define REG_A200x0013// reserve

// The following is the starting address of the new register-----------------------------------------------------

#define REG_A210x0014// temperature - same as  REG_A01

#define REG_A220x0015// himidity - same as  REG_A02

#define REG_A230x0016//voltage- same as REG_A03

#define REG_A240x0017// Electric current - same as  REG_A04

#define REG_A250x0018// power - Accurate to one decimal place

#define REG_A260x0019// frequency

#define REG_A270x001A// total power factor

#define REG_A280x001B// the battery register is high 8 bits 

#define REG_A290x001C// the battery register is low 8 bits (高8位 << 8) | low 8 bits) / 10

#define REG_A300x001D// Electric current 1

#define REG_A310x001E//Electric current t2

#define REG_A320x001F//Electric current 3

#define REG_A330x0020//Electric current 4

#define REG_A340x0021//Electric current 5

#define REG_A350x0022//Electric current 6

#define REG_A360x0023//Electric current 7

#define REG_A370x0024//Electric current 8

#define REG_A380x0025// power 1

#define REG_A390x0026// power 2

#define REG_A400x0027// power 3

#define REG_A410x0028// power 4

#define REG_A420x0029// power 5

#define REG_A430x002A// power 6

#define REG_A440x002B// power 7

#define REG_A450x002C// power 8

#define REG_A460x002D//Power factor 1

#define REG_A470x002E//Power factor 2

#define REG_A480x002F//Power factor 3

#define REG_A490x0030//Power factor 4

#define REG_A500x0031//Power factor 5

#define REG_A510x0032//Power factor 6

#define REG_A520x0033//Power factor 7

#define REG_A530x0034//Power factor 8




This is explained at the address 0x01:

---------------------------------------------------------------------------------

Read socket output status,use function code0x01:

send:01 01 00 00 00 04 3D C9

receive:01 01 01 FF 11 C8        

 0xFF1 1 1 1 1 1 1 1

Socket serial number:8 7 6 5 4 3 2 1

 If  received the datas 0x01 that is, the first relay opens,Other close.


---------------------------------------------------------------------------------

Separate control of relay switches,use function code0x05:

send:01 05 00 00 FF 00 8C 3A open rela 1

receive:01 05 00 00 FF 00 8C 3A  open successfully

send:01 05 00 00 00 00 CD CA  close rela 1

receive:01 05 00 00 00 00 CD CA  close successfully


01 05 00 01 FF 00 DD FA

01 05 00 01 00 00 9C 0A


01 05 00 02 FF 00 2D FA

01 05 00 02 00 00 6C 0A


01 05 00 03 FF 00 7C 3A

01 05 00 03 00 00 3D CA


01 05 00 04 FF 00 CD FB

01 05 00 04 00 00 8C 0B


01 05 00 05 FF 00 9C 3B

01 05 00 05 00 00 DD CB


01 05 00 06 FF 00 6C 3B

01 05 00 06 00 00 2D CB


01 05 00 07 FF 00 3D FB

01 05 00 07 00 00 7C 0B

---------------------------------------------------------------------------------


Full on and full off relays,use function code0x0F:

send:01 0F 00 00 00 08 01 FF BE D5 open all

receive:01 0F 00 00 00 08 54 0D     open all successful

send:01 0F 00 00 00 08 01 00 FE 95  close all

receive:01 0F 00 00 00 08 54 0D     close all successful


---------------------------------------------------------------------------------


use function code0x04Read data:


// Compatible with older registers-------------------------------------------------------------

Read the  temperature:

send:01 04 00 00 00 01 31 CA

receive:01 04 02 00 CB F8 A7 

0x00 0xCB These are the high and low bytes of the received data

That is the temperature data received is 0x00CB,decimal is203,dividing by 10 is the temperature data 20.3℃。


Read the humidity

send:01 04 00 01 00 01 60 0A

receive:01 04 02 03 4D 79 F5 

0x03 0x4D These are the high and low bytes of the received data

That is the received humidity data is 0x034D,Decimal is845,Dividing by 10 is the humidity data 84.5%RH。


Read voltage

send:01 04 00 02 00 01 90 0A

receive:01 04 02 08 C0 BE A0

0x08 0xC0 These are the high and low bytes of the received data

That is the voltage data received is 0x08C0,Decimal is 2240,Dividing by 10 is the temperature data 224.0V。


Read the total current

Send:01 04 00 03 00 01 C1 CA

receive:01 04 02 00 31 78 E4  

0x00 0x31 These are the high and low bytes of the received data

That is the received current data is 0x0031,Decimal is 49,

Dividing by 10 is the current data 4.9A。


Read power

Send:01 04 00 04 00 01 70 0B

receive:01 04 02 04 49 7A 06

0x04 0x49 These are the high and low bytes of the received data

That is,the received power data is 0x0449,Decimal is 1097,It is the power data 1097W。


Reading frequency

Send:01 04 00 05 00 01 21 CB

receive:01 04 02 01 F4 B9 27   

0x01 0xF4 These are the high and low bytes of the received data

That is the received frequency data is 0x01F4,Decimal is 500,Dividing by 10 is the frequency data 50.0Hz。


Read electric energy

Send:01 04 00 06 00 02 91 CA

receive:01 04 04 00 06 2A C0 04 B5

0x00 0x06 0x2A 0xC0 The high word 2 and low 2 bytes of the received data

That is the electric energy data received is 0x00062AC0,Decimal is 404160,Dividing by 3200 is the electric energy data 126.3kWh。


Read current1:

Send:01 04 00 08 00 01 B0 08

receive:01 04 02 00 31 78 E4  

0x00 0x31 These are the high and low bytes of the received data

That is the received current data is 0x0031,Decimal is 49,Dividing by 10 is the current data 4.9A。


Read current2:01 04 00 09 00 01 E1 C8

Read current3:01 04 00 0A 00 01 11 C8

Read current4:01 04 00 0B 00 01 40 08

Read current5:01 04 00 0C 00 01 F1 C9

Read current6:01 04 00 0D 00 01 A0 09

Read current7:01 04 00 0E 00 01 50 09

Read current8:01 04 00 00 00 10 F1 C6


Read all the data at once

Send:01 04 00 00 00 10 F1 C6

receive:01 04 20 00 CB 03 4D 08 C0 00 31 04 49 01 F4 00 06 2A C0 

      00 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 43 85


Temperature:0x00CB,Decimal is203,Dividing by 10 is the temperature data 20.3℃。

Humidness:0x034D,Decimal is845,Dividing by 10 is the humidity data 84.5%RH。

Voltage:0x08C0,Decimal is2240,Dividing by 10 is the voltage data 224.0V。

Electric current:0x0031,Decimal is49,Dividing by 10 is the current data 4.9A。

Power:0x0449,Decimal is1097,It is the power data 1097W。

Frequency:0x01F4,Decimal is500,Dividing by 10 is the frequency data50.0Hz。

Electric energy:0x00062AC0,Decimal is404160,Dividing by 3200 is the electric energy data 126.3Kw/h。

current1:0x0031,Decimal is49,Dividing by 10 is the current data 4.9A。

current2,current3,current4,current5,current6,current7,current8The calculation method is the same as current 1



//The following are the new registers

-----------------------------------------------------------

Read temperature

Send:01 04 00 14 00 01 71 CE 

receive:01 04 02 00 CB F8 A7 

0x00 0xCB These are the high and low bytes of the received data

That is the temperature data received is 0x00CB,Decimal is203,Dividing by 10 is the temperature data20.3℃。


Read humidity:

Send:01 04 00 15 00 01 20 0E

receive:01 04 02 03 4D 79 F5 

0x03 0x4D These are the high and low bytes of the received data

That is the received humidity data is 0x034D,Decimal is845,Dividing by 10 is the temperature data 84.5%RH。


Read voltage:

Send:01 04 00 16 00 01 D0 0E

receive:01 04 02 08 C0 BE A0

0x08 0xC0 These are the high and low bytes of the received data

That is the voltage data received is 0x08C0,Decimal is2240,Dividing by 10 is the temperature data 224.0V。


Read the total current

Send:01 04 00 17 00 01 81 CE

receive:01 04 02 00 31 78 E4  

0x00 0x31 These are the high and low bytes of the received data

That is the received current data is

0x0031,Decimal is 49,Dividing by 10 is the current data 4.9A。


Read power

Send:01 04 00 18 00 01 B1 CD

receive:01 04 02 2A E0 A7 D8

0x2A 0xE0 These are the high and low bytes of the received data

That is the received power data is 0x2AE0,Decimal is10976,Dividing by 10 is the power data 1097.6W。


Reading frequency

Send:01 04 00 19 00 01 E0 0D

receive:01 04 02 01 F4 B9 27   

0x01 0xF4 These are the high and low bytes of the received data

That is the received frequency data is 0x01F4,Decimal is500,Dividing by 10 is the frequency data50.0Hz。


Read the total power factor:

Send:01 04 00 1A 00 01 10 0D

receive:01 04 02 03 E3 F8 49   

0x03 0xE3 These are the high and low bytes of the received data

This is the total power factor data received 0x03E3,Decimal is995,Dividing by 10 is the power factor data 99.5%。


Read electric energy

Send:01 04 00 1B 00 02 01 CC

receive:01 04 04 00 00 04 EF B8 C8   

0x00 0x00 0x04 0xEF The high word 2 and low 2 bytes of the received data

That is the electric energy data received is 0x000004EF,Decimal is1263,Dividing by 10 is the electric energy

data 126.3Kw/h。


Read current1:

Send:01 04 00 1D 00 01 A1 CC

receive:01 04 02 00 31 78 E4  

0x00 0x31These are the high and low bytes of the received data

That is the received current data is

0x0031,Decimal is 49,Dividing by 10 is the current data 4.9A。


Read current2:01 04 00 1E 00 01 51 CC

Read current3:01 04 00 1F 00 01 00 0C

Read current4:01 04 00 20 00 01 30 00

Read current5:01 04 00 21 00 01 61 C0

Read current6:01 04 00 22 00 01 91 C0

Read current7:01 04 00 23 00 01 C0 00

Read current8:01 04 00 24 00 01 71 C1


Read power1:

Send:01 04 00 25 00 01 20 01

receive:01 04 02 2A E0 A7 D8

0x2A 0xE0 These are the high and low bytes of the received data

That is,the received power data is 0x2AE0,Decimal is10976,Dividing by 10 is the power data 1097.6W。


Read power2:01 04 00 26 00 01 D0 01

Read power3:01 04 00 27 00 01 81 C1

Read power4:01 04 00 28 00 01 B1 C2

Read power5:01 04 00 29 00 01 E0 02

Read power6:01 04 00 2A 00 01 10 02

Read power7:01 04 00 2B 00 01 41 C2

Read power8:01 04 00 2C 00 01 F0 03


Read power factor1:

Send:01 04 00 2D 00 01 A1 C3

receive:01 04 02 03 E3 F8 49   

0x03 0xE3 These are the high and low bytes of the received data

That is,the received power data is 0x03E3,Decimal is995,Dividing by 10 is the power data 99.5%。


Read power factor2:01 04 00 2E 00 01 51 C3

Read power factor3:01 04 00 2F 00 01 00 03

Read power factor4:01 04 00 30 00 01 31 C5

Read power factor5:01 04 00 31 00 01 60 05

Read power factor6:01 04 00 32 00 01 90 05

Read power factor7:01 04 00 33 00 01 C1 C5

Read power factor8:01 04 00 34 00 01 70 04


Read all the data at once

Send:01 04 00 14 00 21 70 16

receive:01 04 42 00 CB 03 4D 08 C0 00 31 2A E0 01 F4 03 E3 00 00 04 EF 

      00 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

  2A E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

  03 E3 00 00 00 00 00 00 00 00 00 00 00 00 00 00


Temperature:0x00CB,Decimal is203,Dividing by 10 is the temperature data 20.3℃。

Humidity:0x034D,Decimal is845,Dividing by 10 is the humidity data 84.5%RH。

Voltage:0x08C0,Decimal is2240,Dividing by 10 is the voltage data 224.0V。

Electric current:0x0031,Decimal is49,Dividing by 10 is the electric current data 4.9A。

Power:0x2AE0,Decimal is10976,It is the power data 1097.6W。

Frequency:0x01F4,Decimal is500,Dividing by 10 is the frequency data50.0Hz。

Total power factor:0x03E3,Decimal is995,Dividing by 10 is the total power factor data 99.5%。

Electric energy:0x000004EF,Decimal is1263,Dividing by 10 is the electric energy data 126.3Kw/h。

Electric current1:0x0031,Decimal is 49,Dividing by 10 is the electric current data 4.9A。

Electric current2-8:0.0A,0.0A,0.0A,0.0A,0.0A,0.0A,0.0A。

Power1:0x2AE0,Decimal is10976,It is the power data1097.6W。

Power2-8:0.0W,0.0W,0.0W,0.0W,0.0W,0.0W,0.0W。

Power factor1:0x03E3,Decimal is995,Dividing by 10 is the power factor data99.5%。

Power factor2-8:0.0%,0.0%,0.0%,0.0%,0.0%,0.0%,0.0%。


// -----------------------------------------------------------------------------------------

Read sensor1:

Send:01 02 00 00 00 01 B9 CA

receive:01 02 01 00 A1 880x00This is the returned dataDisconnected state (normal state)

          01 02 01 01 60 48   0x01This is the returned dataClosed state (trigger state


Read sensor2:

Send:01 02 00 01 00 01 E8 0A

receive:01 02 01 00 A1 880x00 This is the returned dataDisconnected state (normal state)

          01 02 01 01 60 48   0x01This is the returned dataClosed state (trigger state







MetInfo enterprise content manager system | MetInfo CMS

MetInfo enterprise content manager system | MetInfo CMS