beautypg.com

Profibus dp slave communication module dvppf02-h2 – Delta Electronics DVPPF02-H2 User Manual

Page 26

background image

PROFIBUS DP Slave Communication Module DVPPF02-H2

DVP-PLC Application Manual

24

Slot

External I/O word

for S7-300

Data transmission direction

in PROFIBUS DP network

Register in

DVPPF02-H2

PIW256 CR#3

2

PIW258 CR#4

PIW260 CR#5

PIW262 CR#6

PIW264 CR#7

3

PIW266

CR#8

About data mapping:

The I Address of the master (starting from the first address of slot 0 ~ slot 4) corresponds to CR from CR#3

of the slave. The Q Address (starting from the first address of slot 0 ~ slot 4) corresponds to CR from

CR#103. The I/Q Address in every slot increases by 2, in which the I Address is indicated as PIW and Q

Address as PQW. The CR corresponds to PIW and PQW increases by 1. According to the table above, the

data in PQW256 ~ PQW270 are transmitted automatically to CR#103 ~ CR#110, and the data in CR#3 ~

CR#8 are transmitted automatically to PIW256 ~ PIW266 through PROFIBUS DP bus. The above mapping

relation will be formed automatically after the parameter is configured.

¡ Program example

„ Program of slave

DFROM

K0

K0

DTO

K103

K3

D10

D20

M1000

M0

K3

K4

z When DVP-EH2 PLC MPU is running and M1000 is On, DVP-EH2 will move the 8 words of data

transmitted from PROFIBUS DP master to CR#103 ~ CR#110 to D10 ~ D17 through PROFIBUS

DP bus. When M0 = On, DVP-EH2 will write the contents in D20 ~ D25 into CR#3 ~ CR#8.

DVPPF02-H2 will transmit these data to PROFIBUS DP master through PROFIBUS DP bus.

z PROFIBUS DP bus completes the data transmission between the master and DVPPF02-H2.

DFROM/DTO instruction however completes the reading/writing of CR data in DVPPF02-H2 by

DVP-EH2.

z Make sure you use DFROM/DTO instruction instead of FROM/TO instruction to deal with the CR

data in DVPPF02-H2 by DVP-EH2.

See the table below for the data transmission information:

Slot

External I/O word

for S7-300

Data transmission

direction in

PROFIBUS DP

network

Register in

DVPPF02-H2

DFROM/DTO

operation

Register in

DVP-EH2

PQW256 CR#103 D10

0

PQW258 CR#104 D11

PQW260 CR#105 D12

1

PQW262 CR#106 D13

3 PQW264

CR#107

DFROM (read)

D14