2. Programming Concepts

 

 

 

 

 

 

 

 

 

 

 

 

M1002

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K17

D1121

Master ID#

 

 

 

 

 

 

 

 

 

MOV

H86

D1120

COM2 communication protocol

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication protocol

 

 

 

 

 

 

 

 

 

 

MOV

K16

D1434

Data length to be read from Slave ID#1

 

 

 

 

 

 

 

 

 

 

MOV

K16

D1450

Data length to be written into Slave ID#1

 

 

 

 

 

 

 

 

 

 

MOV

K16

D1435

Data length to be read from Slave ID#2

 

 

 

 

 

 

 

 

 

 

MOV

K16

D1451

Data length to be written into Slave ID#2

 

 

 

 

 

 

X1

Auto mode

 

 

 

 

 

 

 

M1351

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M1350

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

END

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b)When X1 = On, the data exchange between Master and the two Slaves will be automatically executed by PLC LINK. 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

D1480 ~ D1495

D1496 ~ D1511

D1512 ~ D1527

D1528 ~ D1543

Read

Write

Read

Write

Slave PLC*2

D100 ~ D115 of Slave ID#1

D200 ~ D215 of Slave ID#1

D100 ~ D115 of Slave ID#2

D200 ~ D215 of Slave ID#2

c)Assume the data in registers for data exchange before enabling PLC LINK (M1350 = OFF) is as below:

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

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

2 - 81

Page 113
Image 113
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Programming Concepts