17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

6. When RS instruction is applied for communication between PLC and peripheral devices on<br />

COM2 RS-485, usually STX (Start of the text) and ETX (End of the text) have to be set into<br />

communication format. In this case, b8~10 of D1120 should be set to 1, so that users can set<br />

up STX/ETX as user-defined or system-defined by using M1126, M1130, and D1124~D1126.<br />

For settings of M1126 and M1130, please refer to the following table.<br />

M1126<br />

0<br />

1<br />

M1130<br />

0 1<br />

D1124: user defined<br />

D1124: H 0002<br />

D1125: user defined<br />

D1125: H 0003<br />

D1126: user defined<br />

D1126: H 0000(no setting)<br />

D1124: user defined<br />

D1124: H 003A(’:’)<br />

D1125: user defined<br />

D1125: H 000D(CR)<br />

D1126: user defined<br />

D1126: H 000A(LF)<br />

7. Example of setting communication format in D1120:<br />

Communication format:<br />

Baud rate: 9600, 7, N, 2<br />

STX : “: “<br />

ETX1 : “CR”<br />

ETX2 : “LF”<br />

Check to the table in point 4 and the set value H788 can be referenced corresponding to the<br />

baud rate. Set the value into D1120.<br />

b15<br />

b0<br />

D1120 0 0 0 0 0 1 1 1 1 0 0 0 1 0 0 0<br />

0<br />

N/A<br />

7 8 8<br />

M1002<br />

MOV H788 D1120<br />

When STX, ETX1 and ETX2 are applied, care should be taken on setting the ON/OFF status<br />

of M1126 and M1130.<br />

8. D1250(COM1)、D1253(COM3) communication error code:<br />

Value<br />

H0001<br />

H0002<br />

H0003<br />

H0004<br />

Error Description<br />

Communication time-out<br />

Checksum error<br />

Exception Code exists<br />

Command code error / data error<br />

3-220

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!