2 Functions of Devices in DVP-PLC c) Example 3: Connection of 1 Master and 2 Slaves by RS-485 and exchange of 16 data between Master and Slaves through PLC LINK (M1353 = Off, linkage of 16 stations, 16 data read/write mode) Write the ladder diagram program into Master PLC (ID#17) Master ID# COM2 communication protocol Retain communication protocol Number of data read from Slave ID#1 Number of data written into Slave ID#1 Number of data read from Slave ID#2 Number of data written into Slave ID#2 When X1 = On, the data exchange between Master and the two Slaves will be automatically done in PLC LINK, i.e.
the data in D100 ~ D115 in the two Slaves will be read into D1480 ~ D1495 and D1512 ~ D1527 of the Master, and the data in D1496 ~ D1511 and D1528 ~ D1543 will be written into D200 ~ D215 of the two Slaves. Master PLC *1 Slave PLC*2 D1480 ~ D1495 D100 ~ D115 of Slave ID#1 Read Write D1496 ~ D1511 D200 ~ D215 of Slave ID#1 Read D1512 ~ D1527 D100 ~ D115 of Slave ID#2 D1528 ~ D1543 Write D200 ~ D215 of Slave ID#2 Assume the data in D for data exchange between Master and Slave before PLC LINK is enabled (M1350 = Off) are as the follow:
DVP-PLC Application Manual 2-137 M1002 MOV K17 D1121 MOV H86 D1120 SET M1120 Retain c MOV K16 D1434 MOV K16 D1450 MOV K16 D1435 MOV K16 D1451 X1 M1351 Auto mode M1350 Enable EASY PL END END MOV K17 D1121 MOV H86 D1120 SET M1120 MOV K16 D1434 MOV K16 D1450 MOV K16 D1435 MOV K16 D1451 Master PLC Preset value Slave PLC Preset value D1480 ~ D1495 K0 D100 ~ D115 of Slave ID#1 K5,000 D1496 ~ D1511 K1,000 D200 ~ D215 of Slave ID#1 K0 D1512 ~ D1527 K0 D100 ~ D115 of Slave ID#2 K6,000 D1528 ~ D1543 K2,000 D200 ~ D215 of Slave ID#2 K0