Download Cable Electronics DVP14 Specifications

Transcript
7. Application Instructions
Content
Start word
b8
selection
The first end word
b9
selection
The second end
b10
word selection
b15~b11 No definition
0
1
none
D1124
none
D1125
none
D1126
M1130
0
1
D1124: user define
D1125: user define
D1126: user define
D1124: H 0002
D1125: H 0003
D1126: H 0000ΰno settingα
1
D1124: user define
D1125: user define
D1126: user define
D1124: H 003A ΰ’:’α
D1125: H 000DΰCRα
D1126: H 000A ΰLFα
M1126
0
Ϩʳ Example for communication format setting:
Communication format: Baud rate 9600 7, N, 2
STX : Ϙ: ϙ
ETX1 : ϘCRϙ
EXT2 : ϘLFϙ
You can get the communication format H788 via check with chart and
7-44
b0
D1120 0 0 0 0 0 1 1 1 1 0 0 0 1 0 0 0
0
Don t care
7
8
8
M1002
MOV
Ϩʳ Start character and end character of control characters will be defined
in the communication format of peripheral equipment when using RS
command. Start character and end character can be set in
D1124~D1125 by user or defined by machine. When users use M1126,
M1130, D1124~D1125 to set start and end character, b8~b9 of D1120
of RS485 communication protocol should be set to 1. Please refer to
the following chart for detail.
write into D1120.
b15
H788 D1120
You should pay attention to special auxiliary relay M1126 and M1130 when
using STX, EXT1 and EXT2.
Ϩʳ M1143: ASCII / RTU mode selection. ON is RTU mode and OFF is
ASCII mode.
Take standard MODBUS format to explanation.
ASCII mode (M1143=OFF):
STX
Address Hi
Address Lo
Function Hi
Function Lo
DATA (n-1)
…….
Start word = ‘: ’ (3AH)
Communication address:
8-bit address consists of 2 ASCII codes
Function code:
8-bit function code consists of 2 ASCII
codes
Data content:
nͪ8-bit data content consists of 2n ASCll
codes
DATA 0
LRC CHK Hi
LRC check sum:
8-bit check sum consists of 2 ASCll code
LRC CHK Lo
END Hi
End character:
END Hi = CR (0DH), END Lo = LF(0AH)
END Lo
Communication protocol is made of MODBUS ASCII(American
Standard Code for Information Interchange). Each byte consists of 2
ASCII characters. For example: a 1-byte data 64 Hex shown as ‘ 64’ in
ASCII, consists of ‘ 6’ (36Hex) and ‘ 4’ (34Hex).
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED