DeviceNet Network Scanner DVPDNET-SL

1.PLC program:

M1000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

D6037

K4M0 Send the content in D6037 to K4M0.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

D6038

K4M20 Send the content in D6038 to K4M20.

 

 

 

 

 

 

M8

M9

 

 

When X0 = On, start VFD-B.

 

 

 

 

 

 

 

MOV

H2

D6288

 

 

 

 

 

 

M9

M8

 

 

 

 

 

 

 

 

 

 

MOV

H1

D6288 When X1 = On, stop VFD-B.

 

 

 

 

 

 

M20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

H0100

D6287

When VFD-B runs, Y0 = On.

 

 

 

 

 

 

 

 

 

 

 

 

 

M21

 

 

 

 

MOV

H0000

D6287

When VFD-B stops, Y0 = Off.

 

 

 

 

 

 

 

 

 

 

 

 

 

END

2.Program explanations:

„The head instruction in the program, MOV, corresponds the content in D6037 to M0 ~ M15 and the content in D6038 to M20 ~ M35.

„See the table below for the corresponding relation between DeviceNet slave and PLC devices.

 

PLC device

15

14

13

12

11

10

9

8

7

6

 

5

4

3

2

1

0

 

D6037

X7

X6

X5

X4

X3

X2

X1

X0

 

 

 

 

N/A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Input

D6038

 

 

Status of VFD-B

 

 

 

Status of LED on VFD-B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D6039

 

 

 

 

 

Frequency of VFD-B

 

 

 

 

 

 

data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D6040

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLC device

15

14

13

12

11

10

9

8

7

6

 

5

4

3

2

1

0

 

D6287

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

 

 

 

 

N/A

 

 

 

Output

D6288

 

 

 

 

 

Control word in VFD-B

 

 

 

 

 

D6289

 

 

 

 

 

Frequency in VFD-B

 

 

 

 

 

 

data

 

 

 

 

 

 

 

 

 

 

 

D6290

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

„When X0 = On, b8 of D6037 = 1. b8 of D6037 corresponds to M8, and therefore M8 = On. That is,

when X1 = On, M9 will be On.

„ D6288 corresponds to the control word in VFD-B. When M8 = On, execute [MOV H2 D6288] to run VFD-B. When M9 = On, execute [MOV H1 D6288] to stop VFD-B.

„b0 of D6038 corresponds to M20, b1 to M21, and so on. When VFD-B is in RUN status, b0 of D6038 =

1 and M20 will be On to execute [MOV H0100 D6287], which leads to Y0 = On. That is, when VFD-B is in STOP status, M21 will be On to execute [MOV H0000 D6287], which leads to Y0 = Off.

DVP-PLC Application Manual

19

Page 21
Image 21
Delta Electronics DVPDNET-SL manual PLC program