Message Format In Ascii Mode - Delta Electronics DVP15MC11T Operation Manual

Table of Contents

Advertisement

DVP15MC11T Operation Manual
A.1

Message Format in ASCII Mode

Communication data structure
Field name
Start character
Communication
address
Function code
Data
A
LRC Check
End character
The corresponding relation between hexadecimal character and ASCII code:
Hexadecimal
character
ASCII code
Hexadecimal
character
ASCII code
ADR (Communication address)
The valid range of communication address: 0~254.
Communication address: 0 means the broadcast message is sent to all slaves and the slaves which
have received the message will not make any response. If communication address is not 0, slaves
will respond to master after receiving the message normally. For instance, ASCII codes for the
communication address of 16 are denoted below.
Decimal 16 is equal to hexadecimal 10. (ADR 1, ADR 0) ='10', '1'=31H, '0' = 30H
Function code and data
The data format is determined by function codes. For example, to read the two continuous address
data with hexadecimal 0x0000 as the start address in DVP15MC11T. The communication address of
DVP15MC11T is 1, 0x0000 is the Modbus address of %MW0 in DVP15MC11T PLC.
The data explanation is shown as below:
PC→DVP15MC11T
3A 30 31 30 33 30 30 30 30 30 30 30 32 46 41 0D 0A
DVP15MC11T→PC
3A 30 31 30 33 30 34 30 30 30 31 30 30 30 32 46 35 0D 0A
A-2
Components
STX
Start character ":", the corresponding ASCII code: 0x3A
ADR 1
Communication address consists of two ASCII codes.
ADR 0
CMD 1
Function code consists of two ASCII codes.
CMD 0
DATA (0)
DATA (1)
Data content consists of 2n ASCII codes, n≤205.
..........
DATA (n-1)
LRC CHK 1
LRC check consists of two ASCII codes.
LRC CHK 0
END1
End character consists of two ASCII codes.
END1 = CR (0x0D),
END0
END0 = LF (0x0A)
"0"
"1"
"2"
0x30
0x31
0x32
"8"
"9"
"A"
0x38
0x39
0x41
Explanation
"3"
"4"
"5"
0x33
0x34
0x35
"B"
"C"
"D"
0x42
0x43
0x44
"6"
"7"
0x36
0x37
"E"
"F"
0x45
0x46

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents