beautypg.com

2 functions of devices in dvp-plc – Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 147

background image

2 Functions of Devices in DVP-PLC

DVP-PLC Application Manual

2-119

a) Example 1: Enabling 32 slave units linkage and up to 100 data for exchange in EASY EASY PLC LINK by

M1353

M1002

SET

M1353

MOV

K17

D1121

H86

D1120

K2000

K3000

K300

K48

K48

M1351

END

MOV

SET

M1120

MOV

MOV

MOV

MOV

MOV

D1480

D1496

D1129

D1434

D1450

M1350

X1

M1353 has to be set On before EASY EASY PLC LINK is enabled. When EASY EASY PLC LINK is

executed, On/Off of M1353 will not affect the execution.

Registers designated in D1480 ~ D1495, D1576~D1591 (starting register for data read from Slave ID#1 ~

16) and D1496 ~ D1511, D1592 ~ D1607 (starting register for data written into Slave ID#1 ~ 16) can only

be register D, and every special D will correspond to one Slave ID#, e.g. D1480 corresponds to ID1,

D1481 to ID2, and so on.

D1480 ~ D1495, D1576 ~ D1591, D1496 ~ D1511 and D1592 ~ D1607 have to be set before EASY EASY

PLC LINK is enabled. In the execution of EASY EASY PLC LINK, you can modify the contents in these

special Ds, but the modified results will take effect in the next EASY EASY PLC LINK polling.

If the ID# designated by D1480 ~ D1495, D1576 ~ D1591, D1496 ~ D1511 and D1592 ~ D1607 is smaller

than 0 or bigger than 9,900, PLC will automatically correct the ID# into 9,900.

If M1353 is not enabled during the execution of EASY PLC LINK, the range for D1434 ~ D1449, D1544 ~

D1559 (number of data read from Slave ID#) and D1450 ~ D1465, D1560 ~ D1575 (numbere of data

written into Slave ID#) will be 0 ~ 16. If the setting in the special D exceeds the range, PLC will correct it to

16. When M1353 is enabled, the range will be 0 ~ 100. If the setting in the special D exceeds the range,

PLC will correct it to 100.