beautypg.com

Ethernet communication module dvpen01-sl – Delta Electronics Ethernet Communication Module DVPEN01-SL User Manual

Page 38

background image

Ethernet Communication Module DVPEN01-SL

DVP-PLC Application Manual

36

6.3 Setting up IP and Communicating through WPLSoft

Application

Setting up network parameters of DVPEN01-SL by ladder diagram

Network
requirement

(1) IP of DVPEN01-SL: 192.168.0.4
(2) Subnet mask: 255.255.255.0; Gateway: 192.168.0.1
(3) If DVPEN01-SL is damaged, change to a new DVPEN01-SL and execute

STOP→RUN. The IP of the new DVPEN01-SL will be modified into 192.168.0.4.

(4) DVPEN01-SL is the first extension module attached in the left hand side of PLC.

1. The connection

PC

DVP-PLC

DVPEN01

2. See 6.1 for how to set up the communication. Download the program to PLC.

MOV

M1002

MOV

END

MOV

MOV

MOV

MOV

MOV

D0

D1

D2

D3

D4

D5

D6

K0

H4

HC0A8

HFF00

HFFF

H1

T0

K100

K69

K7

D0

HC0A8

Explanations:

Use M1002 to trigger all the settings. When DVPEN01-SL goes from STOP to RUN, D0 = 4

refers to using static IP address. Write the IP address into D1 and D2, subnet mask into D3 and

D4, and gateway into D5 and D6.

The IP address is to be set as 192.168.0.4. Therefore, write H’0004 into D1 and H’C0A8 into D2.

(K192 = H’C0, K168 = H’A8, K0 = H’00, K2 = H’02)

The subnet mask is to be set as 255.255.255.0. Therefore, write H’FF00 into D3 and H’FFFF

into D4. (K255 = H’FF)

The gateway is to be set as 192.168.0.1. Therefore, write H’0001 into D5 and H’C0A8 into D6.

(K1 = H’1)