12. Communication Design Examples Control Program: M1002 Set the Master PLC communication address as K20 Set PLC COM2 communication protocol Retain communication setting Set receiving time-out: 200ms Set starting Slave ID as K2 Set starting reference for Master to read from Slave ID 1: . D100. 16 data Slave ID1 to be read from Set starting reference for Master to write in Slave ID 1: . D200 16 data to be written in Slave ID1 Set starting reference as for Master to read from Slave ID 2: . D120 16 data to be read from Slave ID2 Set starting reference for Master to write in Slave ID 2: D220 16 data to be written in Slave ID2 Set starting reference for Master to read from Slave ID 3: .
D140 16 data to be read from Slave ID3 Set starting reference for Master to write in Slave ID 3: D240 16 data to be written in Slave ID3 X0 Auto mode Enable PLC LINK Program Description: z When X0 = ON, the data exchange between Master and 3 Slaves will be performed through PLC LINK by the ways explained below:
the data in D100 ~ D115, D120~D135, and D140~D155 of the 3 Slaves will be read respectively into D1480 ~ D1495, D1512 ~ D1527 and D1544~ D1559 of the Master, and the data in D1496 ~ D1511, D1528 ~ D1543 and DVP-PLC Application Examples 12-29 MOV K20 D1121 MOV H86 D1120 SET M1120 MOV K200 D1129 MOV K2 D1399 MOV H1064 D1355 MOV K16 D1434 MOV H10C8 D1415 MOV K16 D1450 MOV H1078 D1356 MOV K16 D1435 MOV H10DC D1416 MOV K16 D1451 MOV H108C D1357 MOV K16 D1436 MOV H10F0 D1417 MOV K16 D1452 SET M1351 SET M1350