Delta DVPEN01-SL operation manual Application of Modbus TCP Master

Page 55

Ethernet Communication Module DVPEN01-SL

Write “0” into CR#28, and PLC_B will use CR#25 ~ CR#26 as the IP address of the destination PLC.

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

Write the Modbus address of D0 (H’1000) in PLC_A into CR#81 and CR#84.

Write the Modbus address of D100 (register of RTC) (H’1064) into CR#86.

Write the number of registers K7 into CR#85.

Write “1” into CR#13 to start the data exchange.

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

Once the data exchange is successful, the values in D1313 ~ D1318 in PLC_B will be written into D0 ~ D6 of PLC_A.

6.13Application of Modbus TCP Master

Application

Network requirement

Compiling Modbus instruction by PLC_B, making Y0 of PLC_A flashing

(1)Adopt static IP.

(2)IP of PLC_A: 192.168.0.4

(3)IP of PLC_B: 192.168.0.5

(4)Update from PLC_B to PLC_A

(5)Use Modbus instruction 050500FF00 to set “On” Y0.

(6)Use Modbus instruction 0505000000 to set “Off” Y0.

(7)Y0 goes between On/Off once every one second.

1.See 6.1 for how to set up the communication.

2.Compile the ladder diagram in the MPU and download it to PLC_B. See below for the program design. We do not need to write any corresponding ladder diagram into PLC_A.

M1013

M2

M1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M1

 

 

 

 

 

 

 

TOP

K100

K118

HC0A8

K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOP

K100

K117

H4

K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOP

K100

K111

K1

K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOP

K100

K120

H0

K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOP

K100

K121

H5

K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOP

K100

K122

H5

K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOP

K100

K123

H0

K1

 

 

 

 

 

 

 

 

 

 

 

= D0 K0

TOP K100 K124 HFF K1

= D0 K1

TOP K100 K124

H0

K1

DVP-PLC Operation Manual

53

Image 55
Contents DVPEN01-SL Page Table of Contents Application Examples Functions SpecificationsProduct Profiles DimensionInstallation LED IndicatorsRJ-45 PIN Definition Control Registers in DVPEN01-SL Control Register CREthernet Communication Module DVPEN01-SL „ E-mail Functions Explanations on CR„ Data Exchange Ethernet Communication Module DVPEN01-SL „ Sending Modbus TCP Instruction Ethernet Communication Module DVPEN01-SL „ RTU Mapping Numbering of Left-Side Modules„ Communication settings Setting up Communication & Searching for Modules„ Broadcast search „ Designating model to search Ethernet Communication Module DVPEN01-SL „ Searching by IP address „ Opening DVPEN01-SL setup page by RS-232 „ Setting up DVPEN01-SL basics Basic Settings„ Setting up static IP of the PC Network SettingsEthernet Communication Module DVPEN01-SL Dhcp „ Setting up DVPEN01-SL Network„ Setting up DVPEN01-SL mail Setting up E-MailsData Exchange „ Setting up DVPEN01-SL data exchangeRTU „ The settingsIP Filter „ Setting up IP filterStatic ARP Table „ Setting up static ARP table Setting up Password„ Setting up DVPEN01-SL password „ DVPEN01-SL returning to default setting Returning to Default SettingApplication Examples Setting up IP and Communicating through WPLSoftEthernet Communication Module DVPEN01-SL Open Basic setup Switch to Network setup Connecting the PC with DVPEN01-SL through LAN DVPEN01 DVP-PLC Ethernet Communication Module DVPEN01-SL Ethernet Communication Module DVPEN01-SL Setting up Password and Clearing Password Ethernet Communication Module DVPEN01-SL After the password is cleared, you can modify the parameters IP Filter Protection Ethernet Communication Module DVPEN01-SL Setting up Static ARP Table Ethernet Communication Module DVPEN01-SL Application of E-Mail Explanations Application of Data ExchangeEthernet Communication Module DVPEN01-SL TRD Application of Data Exchange Ethernet Communication Module DVPEN01-SL Ethernet Communication Module DVPEN01-SL From Explanations Data exchange will be executed every one second Application of Modbus TCP Master RTU Mapping Ethernet Communication Module DVPEN01-SL Ethernet Communication Module DVPEN01-SL