Delta DVP-ES2 User Manual
Page 336
D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g
3-220
6.
When RS instruction is applied for communication between PLC and peripheral devices on
COM2 RS-485, usually STX (Start of the text) and ETX (End of the text) have to be set into
communication format. In this case, b8~10 of D1120 should be set to 1, so that users can set
up STX/ETX as user-defined or system-defined by using M1126, M1130, and D1124~D1126.
For settings of M1126 and M1130, please refer to the following table.
M1130
0
1
0
D1124: user defined
D1125: user defined
D1126: user defined
D1124: H 0002
D1125: H 0003
D1126: H 0000(no setting)
M1
12
6
1
D1124: user defined
D1125: user defined
D1126: user defined
D1124: H 003A(’:’)
D1125: H 000D(CR)
D1126: H 000A(LF)
7.
Example of setting communication format in D1120:
Communication format:
Baud rate: 9600, 7, N, 2
STX : “: “
ETX1 : “CR”
ETX2 : “LF”
Check to the table in point 4 and the set value H788 can be referenced corresponding to the
baud rate. Set the value into D1120.
b15
b0
0
0 0
0
0 1
1
1 1 0 0
0
1 0 0 0
7
8
8
D1120
0
N/A
MOV
H788
D1120
M1002
When STX, ETX1 and ETX2 are applied, care should be taken on setting the ON/OFF status
of M1126 and M1130.
8. D1250(COM1)、D1253(COM3) communication error code:
Value
Error Description
H0001 Communication
time-out
H0002 Checksum
error
H0003
Exception Code exists
H0004
Command code error / data error