Delta Electronics ASDA-B Series manual „ Communication Protocol Ascii Mode, Stx, Cmd, DATA0 LRC

Models: ASDA-B Series

1 321
Download 321 pages 45.58 Kb
Page 244
Image 244

 

 

 

 

 

 

 

 

 

 

 

 

 

Chapter 8 MODBUS CommunicationsASDA-B Series

11-bit character frame (For 8-bit character)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8N2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Start

0

1

2

 

3

 

 

 

4

 

 

5

6

7

 

 

Stop

Stop

 

 

 

 

 

 

 

 

 

 

 

 

bit

 

 

 

 

 

 

 

 

bit

bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8-data bits

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8E1

 

 

 

 

 

 

11-bits character frame

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Start

0

1

2

 

3

 

 

 

4

 

 

5

6

7

 

 

Even

Stop

 

 

 

 

 

 

 

 

 

 

 

 

bit

 

 

 

 

 

 

 

 

parity

bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8-data bits

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8O1

 

 

 

 

 

 

11-bits character frame

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Start

0

1

2

 

3

 

 

 

4

 

 

5

6

7

 

 

Odd

Stop

 

 

 

 

 

 

 

 

 

 

 

 

bit

 

 

 

 

 

 

 

 

parity

bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8-data bits

11-bits character frame

„Communication Protocol: ASCII Mode:

STX

Start character’: ’ (3AH)

 

 

ADR

Communication address: 1-byte consists of 2 ASCII codes

 

 

CMD

Command code: 1-byte consists of 2 ASCII codes

 

 

DATA(n-1)

 

 

 

…….

Contents of data: n word = n x 2-byte consists of n x 4 ASCII codes, n12

 

 

DATA(0)

 

 

 

LRC

Command code: 1-byte consists of 2 ASCII codes

 

 

End 1

End code 1: (0DH)(CR)

 

 

End 0

End code 0: (0AH)(LF)

 

 

RTU Mode:

 

 

 

STX

A silent interval of more than 10ms

ADR

Communication address: 1-byte

CMD

Command code: 1-byte

DATA(n-1)

 

…….

Contents of data: n word = n x 2-byte, n12

DATA(0)

 

CRC

Command code: 1-byte

End 1

A silent interval of more than 10ms

 

 

Revision January 2009

8-9

Page 244
Image 244
Delta Electronics ASDA-B Series manual „ Communication Protocol Ascii Mode, Stx, Cmd, DATA0 LRC, DATA0 CRC