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.

3. Instruction Set<br />

4. Take the connection between PLC1 (PLC COM2) and PLC2 (PLC COM1) for example, the<br />

tables below explain the status when PLC1 force ON/OFF Y0~Y17 of PLC2.<br />

Set value: K4Y0=1234H<br />

Device Status Device Status Device Status Device Status<br />

Y0 OFF Y1 OFF Y2 ON Y3 OFF<br />

Y4 ON Y5 ON Y6 OFF Y7 OFF<br />

Y10 OFF Y11 ON Y12 OFF Y13 OFF<br />

Y14 ON Y15 OFF Y16 OFF Y17 OFF<br />

M1002<br />

MOV<br />

H87<br />

D1120<br />

Set communication protocol as 9600, 8, E, 1<br />

SET<br />

M1120<br />

Retain communication protocol<br />

MOV<br />

K100<br />

D1129<br />

Set receiving timeout as 100ms<br />

X0<br />

RST<br />

SET<br />

M1143<br />

M1122<br />

M1143 = OFF<br />

ASCII mode<br />

Sending request<br />

SET<br />

M1143<br />

M1143 = ON<br />

RTU mode<br />

X0<br />

MODRW<br />

K1<br />

K15<br />

H0500 D0 K16<br />

Receiving completed<br />

M1127<br />

Processing received data<br />

Data length(bit)<br />

Data storing register<br />

Data address: H0500<br />

Function code: K15<br />

Write in multiple bit devices<br />

Connection device<br />

address: K1<br />

ASCII mode: The received data is stored in D1070~D1085 in ASCII format.<br />

RTU mode: The received data is stored in D1070~ D1085 in Hex format.<br />

RST<br />

M1127<br />

Reset M1127<br />

ASCII mode (M1143 = OFF)<br />

When X0 = ON, MODRW instruction executes the function specified by Function Code H0F.<br />

PLC1 PLC2, PLC sends: “ 01 0F 0500 0010 02 3412 93 ”<br />

PLC2 PLC1, PLC receives: “ 01 0F 0500 0010 DB ”<br />

Registers for data to be sent (sending messages)<br />

Register Data Descriptions<br />

D1256 下 ‘0’ 30 H ADR 1<br />

D1256 上 ‘1’ 31 H ADR 0<br />

Device address: ADR (1,0)<br />

D1257 下 ‘0’ 30 H CMD 1<br />

D1257 上 ‘F’ 46 H CMD 0<br />

Control parameter: CMD (1,0)<br />

D1258 下 ‘0’ 30 H<br />

D1258 上 ‘5’ 35 H<br />

D1259 下 ‘0’ 30 H<br />

Data Address<br />

D1259 上 ‘0’ 30 H<br />

3-351

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

Saved successfully!

Ooh no, something went wrong!