advertisement
Ethernet Communication Module DVPEN01-SL
4. Switch to “Select Recipients” page. Check all the boxes of “Recipient 1”. Click on “OK” to complete the setting.
5. After all the settings in DVPEN01-SL are completed, compile the ladder diagram in the MPU and download it to the MPU. See below for the program design:
X0
T0 K100 K3 K1 K1
X0
T0 K100
K4
K1 K1
Y0
T0 K100 K5 K1 K1
Y0
T0 K100 K6 K1 K1
END
Explanations:
•
If the rising-edge of X0 is triggered, X0 will go from Off to On. Write “1” into CR#3 of
DVPEN01-SL, and the first E-Mail will be sent out.
•
If the falling-edge of X0 is triggered, X0 will go from On to Off. Write “1” into CR#4 of
DVPEN01-SL, and the second E-Mail will be sent out.
•
If the rising-edge of Y0 is triggered, Y0 will go from Off to On. Write “1” into CR#5 of
DVPEN01-SL, and the third E-Mail will be sent out.
•
If the falling-edge of Y0 is triggered, Y0 will go from On to Off. Write “1” into CR#6 of
DVPEN01-SL, and the fourth E-Mail will be sent out.
6.8 Application of Data Exchange (1)
Application
Network requirement
Writing the time in RTC in PLC_B into D0 ~ D6 of PLC_A
(1) Adopting 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
DVP-PLC Operation Manual
45
Ethernet Communication Module DVPEN01-SL
1. See 6.1 for how to set up the communication.
2. Open the setup page of PLC_B and switch to “Data Exchange” page.
3. Check “Enable Data Exchange” box. Select “Program Control” for Execute Mode. Enter IP address of
PLC_A “192.168.0.4” in No. 1 Data Exchange Host IP column. Click on “OK” to complete the setting.
46
4. After all the settings in PLC_B are completed, compile the ladder diagram in the MPU and download it to PLC_B. See below for the program design:
DVP-PLC Operation Manual
Ethernet Communication Module DVPEN01-SL
M1000
D100
M1013
M2 M1
M1
SET M1
TOP
K100
TOP K100
TOP K100
TOP K100
K28
K29
K14
K13
K1
D100
K0
K1
K1
K7
K1
K1
M2
SET
RST
M2
M1
FROM K100 K14 D14 K1
= D14 K2
RST
RST
M2
M2 = D14 K3
END
Explanations:
•
The data exchange will be executed every one second.
•
Write the communication address of the destination PLC in CR#28, and DVPEN01-SL will automatically detect by the previous setting that No. 1 IP is “192.168.0.4".
•
Write the data in RTC into CR#29 ~ CR#35.
•
Write “1” into CR#13 to start the data exchange.
•
CR#14 = 2 refers to successful exchange. CR#14 = 3 refers to failed exchange.
5. Compile the ladder diagram for PLC_A and download it to PLC_A.
M1013
FROM K100 K49 D0 K7
END
Explanations:
•
The received data are stored in CR#49 ~ CR#55.
•
The data received every one second are written into D0 ~ D6.
DVP-PLC Operation Manual
47
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 5 INTRODUCTION
- 5 Functions
- 5 Specifications
- 6 PRODUCT PROFILE & OUTLINE
- 6 Dimension
- 6 Product Profiles
- 7 LED Indicators
- 7 RJ-45 PIN Definition
- 7 INSTALLATION & WIRING
- 7 Installation
- 8 CONTROL REGISTER (CR)
- 8 Control Registers in DVPEN01-SL
- 10 Explanations on CR
- 15 Numbering of Left-Side Modules
- 16 SETTING UP SOFTWARE
- 16 Setting up Communication & Searching for Modules
- 22 Basic Settings
- 23 Network Settings
- 26 Setting up E-Mails
- 27 Data Exchange
- 29 IP Filter
- 29 Static ARP Table
- 30 Setting up Password
- 31 Returning to Default Setting
- 32 APPLICATION EXAMPLES
- 32 Setting up IP and Communicating through WPLSoft
- 35 Connecting the PC with DVPEN01-SL through LAN
- 39 Setting up Password and Clearing Password
- 41 When the Password is Lost (Returning to Default Setting by RS-232)
- 42 IP Filter Protection
- 44 Setting up Static ARP Table
- 46 Application of E-Mail
- 47 Application of Data Exchange (1)
- 50 Application of Data Exchange (2)
- 51 Application of Data Exchange (3)
- 52 Application of Data Exchange (4)
- 54 Application of Data Exchange (5)
- 55 Application of Modbus TCP Master
- 56 RTU Mapping