A SERVICE OF

logo

DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
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 0000no setting
M1126
1
D1124: user defined
D1125: user defined
D1126: user defined
D1124: H 003A’:’
D1125: H 000DCR
D1126: H 000ALF
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
0000011110001000
788
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