Ethernet Communication Module DVPEN01-SL

= D0 K2

M2

TOP

K100

K125

H0

K1

TOP

K100

K119

K6

K1

TOP

K100

K116

K0

K1

TOP

K100

K115

K1

K1

INC

D0

 

 

 

MOV

K0

D0

 

 

SET

M2

 

 

 

RST

M1

 

 

 

FROM K100 K116 D14 K1

= D14 K2

 

 

RST

M2

 

 

= D14 K3

 

 

RST

M2

 

 

 

 

 

 

 

END

 

 

 

 

Explanations:

The data exchange will be executed every one second.

Write the IP address of PLC_A into CR#117 and CR#118. The first two IP codes (192.168 = H’C0A8) should be written into CR#118, and the last two IP codes (0.4 = H’0004) into CR#117.

Set CR#111 as “1” to enable the 8-bit mode. The Modbus instruction is stored in the low byte of CR#120 ~ CR#247.

Write Modbus instruction into CR#120 ~ CR#125. CR#120 is the Modbus address.

Write the length of the instruction into CR#119.

Write “1” into CR#115 to start the execution of Modbus TCP instruction.

CR#116 = 2 refers to successful execution. CR#116 = 3 refers to failed execution.

If the execution is successful, Y0 on PLC_A will go between On and Off every one second.

6.14RTU Mapping

Application

Network requirement

Using RTU mapping to read/write the remote digital I/O and analog I/O registers. DVP28SV+DVPEN01-SL Æ RTU-EN01+DVP06XA+DVP16SP

(1)Adopt static IP.

(2)IP of DVPEN01-SL: 192.168.1.90

(3)IP of RTU-EN01: 92.168.1.91

(4)Use DCISoft for RTU-EN01and check 10 mapping data for read and 10 mapping data for write.

(5)Set up the mapping start address and number of data for RX, RY, RCR (read) and RCR (write) at DVPEN01-SL.

(6)Enable the mapping function in DVP-SV PLC at DVPEN01-SL. Use M2000 and D2000 in DVP-SV to read and M3000 and D3000 to write the value in the remote RTU-EN01.

54

DVP-PLC Operation Manual

Page 56
Image 56
Delta DVPEN01-SL operation manual RTU Mapping