Command Codes And Communication Data; Rtu Command Message Of The Master - Fuling Inverter DZB200 Series User Manual

High-performance general-purpose inverter. open-loop vector control inverter
Hide thumbs Also See for DZB200 Series:
Table of Contents

Advertisement

clear the incomplete information, and mistake that the last byte is the address field part of the new frame.
Likewise, if the interval between t he start of a new frame and the previous frame is less than 3.5 bytes,
5 / 1 4 / 2 0 1 8
the receiving device will regard it as the subs equent part of the previous frame. Due to frame disorder,
the final CRC value is incorrect, which will l ead to communication failure.
Standard Structure of RTU Frame:
Frame header (START)
Slave address field (ADDR)
Function field
(CMD)
Data field
(
)
DATA N-1
DATA 0
( )
CRC CHK lower bit
CRC CHK higher bit
Frame tail END
In ASCII mode, frame header is ":" "0x3A" ,frame tail is "CRLF" "0x0D""0x0A"). Except frame
header and frame tail, all other bytes are transmitted by ASCII coding system. It will transmit high 4 bits
first, then transmit low 4 bits . The data length is 8 bit. Capital ASCII is used to demonstrate 'A'~'F' and use
LRC check, cover the information from slave address to data.
START
slave
"0x3A"
address
 
 DZB Series
RTU Response Message of the Slave
h t t p : / / s l i d e p d f . c o m / r e a d e r / f u l l / f u l i n g - i n v e r t e r - u s e r - m a n u a l
T1-T2-T3-T4 (transmission time of 3.5 bytes)
Communication address:
0~247 (decimal) ("0" stands for the broadcast address)
03H: Read slave parameters;
06H: Write slave parameters
Data of 2*N bytes: this part is the main con tent of 
communications, and is also the data exchange core in
communications.
Detection value: CRC value (16BIT).
T1-T2-T3-T4 (transmission time of 3.5 bytes)
(
)
(
ASCII mode Data Frame
operation
CRC
END
command
data
check 
"0x0D""0x0A"
code
word
- 8 7 -
 Appendix B Serial Communications
START
Address Hi
F u l i n g I n v e r t e r U s e r M a n u a l - s l i d e p d f . c o m
Address Lo
Function Hi
Function Lo
( )
DATA 0
(
)
DATA N-1
LRC CHK Hi
LRC CHK Lo
END Hi
END Lo

6. Command Codes and Communication Data

6.1 Command Code: 03H (0000 0011), read N words (can ready a maximum of consecutive five words)
For example: for an inverter with the sla ve address of 01H, the start address of memory is 0004, ready
consecutive two words, the structu re of the frame is as follows:
RTU mode:
START
ADDR
CM D
Higher bits of start address
Lower bits of start address
Higher bits of data number
Lower bits of data number
CRC CHK lower bit
CRC CHK higher bit
END
 DZB Series
ASCII Response Message of the Slave
: (0x3A)
Communication address:
2 ASCII combine 8-bit address
Function code:
2 ASCII combine 8-bit address
Data content:
nx8-bit 2n ASCII combine data content
n<=16,maximum 32 ASCII
LRC check:
2 ASCII combine 8-bit check code
End:
END Hi=CR(0x0D),END Lo=LF(0x0A)

RTU Command Message of the Master

T1-T2-T3-T4 (transmission time of 3.5 bytes)
01H
03H
00H
04H
00H
02H
85H
CAH
T1-T2-T3-T4 (transmission time of 3.5 bytes)
- 8 8 -
 Appendix B Serial Communications
4 7 / 5 4

Advertisement

Table of Contents
loading

Table of Contents