Está en la página 1de 6

STM250 RS485 protocol

RS485
Communication Protocol
STM250 modular inverter

Version 1.0
Date: Feb 2010

TBB Power Co.,Ltd

1/6

STM250 RS485 protocol

Type
: RS485
Default address : 1A
Data format
: one start bit, 8 data bits, no parity code, one stop bit;
Baud rate
: 9600.

Instruction
1.0 remote measurement
1.1 Inverter data query
Instruction format
Address

Function code

Start address

Data length

CRC verification

0xXX

0x03

0x00 00

0x00 14

CRC16

Address

Function code

Data length

Data

CRC verification

0xXX

0x03

0x14

20 Bytes

CRC16

Received data format

Data format definition


Address

Definition

Data length

Data format

Units

00

Input voltage

2 bytes

High byteLow byte

0.1V

01

Input frequency

2 bytes

High byteLow byte

0.1Hz

02

Output voltage

2 bytes

High byteLow byte

0.1V

03

Output frequency

2 bytes

High byteLow byte

0. 1Hz

04

DC voltage

2 bytes

High byteLow byte

0.1V

05

Output current

2 bytes

High byteLow byte

0.1A

06

Current of module 1

2 bytes

High byteLow byte

0.1A

07

Current of module 2

2 bytes

High byteLow byte

0.1A

08

Current of module 3

2 bytes

High byteLow byte

0.1A

09

Current of module 4

2 bytes

High byteLow byte

0.1A

Example:
Instruction: 1A 03 00 00 00 14 46 2E
Received data: 1A 03 14 08 EB 01 F4 08 8C 01 F4 08 8B 00 6F 00 24 00 24 00 27 00 00 1F 4E
Explanation
1A: Communication address of equipment;
03: Function code
14: Followed by 20 bytes of data (Definition as the table below)
1F 4E: CRC verification code.

TBB Power Co.,Ltd

2/6

STM250 RS485 protocol

Address

Definition

Data length

Data

Units

00

Input voltage

2 bytes

08EB=2283228.3V

0.1V

01

Input frequency

2 bytes

01F4=500 50.0Hz

0.1Hz

02

Output voltage

2 bytes

088C=2188218.8V

0.1V

03

Output frequency

2 bytes

01F4= 500 50.0Hz

0. 1Hz

04

DC voltage

2 bytes

088B=2187218.7V

0.1V

05

Output current

2 bytes

006F =111

(11.1A

0.1A

06

Current of module 1

2 bytes

0024=36

3.6A

0.1A

07

Current of module 2

2 bytes

0024=36

3.6A

0.1A

08

Current of module 3

2 bytes

0027=39

(3.9A)

0.1A

09

Current of module 4

2 bytes

0000=00

(0.0A)

0.1A

1.2. Communication address query


Instruction format
Address

Function code

Start address

Data length

CRC verification

0xF7

0x03

0x02 00

0x00 01

CRC16

Receiving data format


Address

Function code

Data length

Data length

CRC verification

0xF7

0x03

0x02

Communication
address

CRC16

Note:
1> Address read out is what inverter is using right now
2> F7 is the broadcast address of inverter made by our company, of which all inverters from our
company will respond. All inverters will respond to this command and reply at same time
when receiving such query, if there are two or more inverters from our company connected
in parallel on RS485 communication bus. It may cause data conflicts on RS485 bus.

Therefore, Please ensure there is only one inverter from our company on
RS485 bus and not other equipments using the same address.

Example:

Instruction
Receiving data

: F7 03 02 00 00 01 91 24
: F7 03 02 00 0A F0 56

0A is the communication address of this inverter, and it can be used to communicate with the
machine.

TBB Power Co.,Ltd

3/6

STM250 RS485 protocol

2.0 Remote Communication


Instruction format
Address

Function code

Start address

Data length

CRC verification

0xXX

0x02

0x03 00

0x00 01

CRC16

Receiving data format


Address

Function code

Data length

Data

CRC verification

0xXX

0x02

0x02

2Bytes

CRC16

Data format definition:


First byte of data
BIT

Definition

Second bytes of data


BIT

Definition

1 AC input failure

1 reserve

1 Low battery

1 reserve

1 Inverter failure

1 reserve

1 Overload

1 reserve

1 Over-temperature

1 module 4 failure

1 Inverter status

1 module 3 failure

1 Bypass status

1 module 2 failure

1 reserve

1 module 1 failure

Example:

Instruction
Receiving data

TBB Power Co.,Ltd

: 1A 02 03 00 00 01 BA 65
: 1A 02 02 84 08 BF 7C

4/6

STM250 RS485 protocol

3.0 Remote control


3.1 Turn off/ Turn on buzzer
Instruction format
Address

Function code

Set address

Set content

CRC verification

0xXX

0x05

0x00 50

0x00 00 OR 0x00 FF

CRC16

Receiving data format


Address

Function code

Set address

Set content

CRC verification

0xXX

0x05

0x00 50

0x00 00 OR 0x00 FF

CRC16

Explanation:
There will be an alarm beep to remind administrator upon inverter failure. And the administrator
could turn off/on the beep alarm by sending this instruction.
Setting description:

Example:

0x00 00Turn on the buzzer


0x00 FFTurn off the buzzer.

Turn on the buzzer:


Receiving instruction: 1A 05 00 50 00 00 CE 30
Return data: 1A 05 00 50 00 00 CE 30
Turn off the buzzer:
Receiving instruction: 1A 05 00 50 00 FF 8E 70
Return data: 1A 05 00 50 00 FF 8E 70

3.2. Set communication address


Instruction format
Address

Function code

Set address

Set content

CRC verification

0xXX

0x06

0x02 00

0x00 010x00 F6

CRC16

Receiving data format


Address

Function code

Set address

Set content

CRC verification

0xXX

0x06

0x02 00

0x00 010x00 F6

CRC16

Note:
1> The address range of inverter you could set is : 1~246 (0x01~0xF6).
2> Inverter will return data with original address after receiving the command of changing
communication address, and then change its communication address afterwards.

TBB Power Co.,Ltd

5/6

STM250 RS485 protocol

Setting new address will restart LCD or restart inverter, which may cause
power interruption. So, please make sure there is no load connected
while performing this setting.

Example:

Instruction
: 1A 06 02 00 00 0A 0B 9E
Receiving data : 1A 06 02 00 00 0A 0B 9E
0A address must be used in follow-up communication.

4.0 Wrong command


Receiving data format
Address

Function code

Data

Set content

1A

COM+0x80

CODE

CRC 16

z CODE
z COM
Example:

01 Function code error


03 Data doesnt meet the requirement
Function code received

Instruction
Receiving data

TBB Power Co.,Ltd

: 1A 03 00 00 00 00 46 21
: 1A 83 03 71 36

6/6

También podría gustarte