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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2. Programming Concepts<br />

M1002<br />

MOV K17 D1121<br />

Master ID#<br />

MOV<br />

H86<br />

D1120<br />

COM2 communication protocol<br />

SET<br />

M1120<br />

Retain communication protocol<br />

MOV<br />

K16<br />

D1434<br />

Data length to be read from Slave ID#1<br />

MOV<br />

K16<br />

D1450<br />

Data length to be written into Slave ID#1<br />

MOV<br />

K16<br />

D1435<br />

Data length to be read from Slave ID#2<br />

MOV<br />

K16<br />

D1451<br />

Data length to be written into Slave ID#2<br />

X1<br />

M1351<br />

Auto mode<br />

M1350<br />

END<br />

b) When X1 = On, the data exchange between Master and the two Slaves will be automatically<br />

executed by PLC LINK. The data in D100 ~ D115 in the two Slaves will be read into D1480 ~<br />

D1495 and D1512 ~ D1527 of the Master, and the data in D1496 ~ D1511 and D1528 ~<br />

D1543 will be written into D200 ~ D215 of the two Slaves.<br />

Master PLC *1<br />

Read<br />

Slave PLC*2<br />

D1480 ~ D1495<br />

D100 ~ D115 of Slave ID#1<br />

D1496 ~ D1511<br />

D1512 ~ D1527<br />

D1528 ~ D1543<br />

Write<br />

Read<br />

Write<br />

D200 ~ D215 of Slave ID#1<br />

D100 ~ D115 of Slave ID#2<br />

D200 ~ D215 of Slave ID#2<br />

c) Assume the data in registers for data exchange before enabling PLC LINK (M1350 = OFF) is<br />

as below:<br />

Master PLC Preset value Slave PLC Preset value<br />

D1480 ~ D1495 K0 D100 ~ D115 of Slave ID#1 K5,000<br />

D1496 ~ D1511 K1,000 D200 ~ D215 of Slave ID#1 K0<br />

D1512 ~ D1527 K0 D100 ~ D115 of Slave ID#2 K6,000<br />

D1528 ~ D1543 K2,000 D200 ~ D215 of Slave ID#2 K0<br />

After PLC LINK is enabled (M1350 = ON), the data in registers for data exchange becomes:<br />

2-81

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

Saved successfully!

Ooh no, something went wrong!