Delta Ia-Plc Dvpen01-Sl Om en 20140829
Delta Ia-Plc Dvpen01-Sl Om en 20140829
Delta Ia-Plc Dvpen01-Sl Om en 20140829
Operation Manual
DVP-0204320-03
Warning
Please read this instruction carefully before use and follow this instruction to operate the device in order to prevent damages
on the device or injuries to staff.
RTU-DNET is to be used for controlling the operating machine and equipment. In order not to damage it, only qualified
professional staff familiar with the structure and operation of RTU-DNET can install, operate, wire and maintain it.
DO NOT connect input AC power supply to any of the I/O terminals; otherwise serious damage may occur. Check all the
wirings again before switching on the power and DO NOT touch any terminal when the power is switched on. Make sure the
ground terminal
Table of Contents
INTRODUCTION...................................................................................................................................3
1.1
Functions.....................................................................................................................................3
1.2
Specifications ..............................................................................................................................3
Dimension ...................................................................................................................................4
2.2
2.3
LED Indicators.............................................................................................................................4
2.4
Installation ...................................................................................................................................5
3.2
4.2
Explanations on CR ....................................................................................................................8
4.3
5.2
5.3
5.4
5.5
SNMP ........................................................................................................................................26
5.6
Data Exchange..........................................................................................................................27
5.7
5.8
RTU ...........................................................................................................................................30
IP Filter ..................................................................................................................................... 31
APPLICATION EXAMPLES............................................................................................................... 34
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
Introduction
Thank you for choosing DVPEN01-SL module. To correctly install and operate DVPEN01-SL, please read the manual
carefully before using the module.
DVPEN01-SL is an Ethernet communication module for remote setting and communication through WPLSoft.
DVPEN01-SL is able to send E-mails, automatically correct the RTC in DVP28SV11R/T and exchange data. It supports
MODBUS TCP communication protocol and can conduct remote monitoring by using SCADA (Supervisor Control and
Data Acquisition) software or HMI (Human Machine Interfaces). DVPEN01-SL can be the master of MODBUS TCP,
sending out MODBUS TCP instructions and controlling the peripheral equipment. In addition, under MDI/MDI-X
auto-detection, it does not need to use a crossing cable. See the contents below for more detailed instructions on
DVPEN01-SL module.
1.1 Functions
MDI/MDI-X auto-detection
Supports MODBUS TCP protocol (at the same time supports Master and Slave mode)
Auto-corrects the RTC in PLC through the Internet time correction function
Supports point-to-point data exchange (Max. data exchange length: 200 bytes)
1.2 Specifications
Internet interface
Item
Interface
Number of ports
Transmission method
Transmission cable
Transmission speed
Network protocol
Specification
RS-232
1 Port
DVPACAB230, DVPACAB215, DVPACAB2A30, DVPACAB2B10
Environment
Item
Noise immunity
Environment
Vibration/
Resistance
Specification
RJ-45 with Auto MDI/MDIX
1 Port
IEEE802.3, IEEE802.3u
Category 5e
10/100 Mbps Auto-Detect
ICMP, IP, TCP, UDP, DHCP, SMTP, NTP, MODBUS TCP, SNMP
Specification
ESD (IEC 61131-2, IEC 61000-4-2): 8KV Air Discharge
EFT (IEC 61131-2, IEC 61000-4-4): Power Line: 2KV
Analog & Communication I/O: 1KV
Damped-Oscillatory Wave: Power Line: 1KV
RS (IEC 61131-2, IEC 61000-4-3): 26MHz~1GHz, 10V/m
Operation: 0C~55C (temperature), 5~95% (humidity), Pollution degree 2;
Storage: -25C~70C (temperature), 5~95% (humidity)
Shock Standard: IEC61131-2, IEC 68-2-6 (TEST Fc)/IEC61131-2 & IEC 68-2-27
(TEST Ea)
Electrical specifications
Item
Power supply voltage
Power consumption
Insulation voltage
Specification
24VDC (-15%~20%) (Power is supplied by the internal bus of MPU.)
1.5W
500V
Specification
Weight (g)
92 (g)
2.1 Dimension
3 [0.118]
DVPEN01
POWER
RS-232
100M
90 [3.543]
LINK
RS-232
60 [2.362]
LAN
Unit: mm [inches]
DVPEN01
POWER
RS-232
100M
LINK
3
8
RS-232
LAN
5
1.
2.
3.
4.
5.
Model name
Extension port to connect device
Extension port to connect I/O module
POWER, LINK, RS-232, 100M indicators
DIN rail clip
6.
7.
8.
9.
Color
Green
Red
Orange
Green
Indication
Power indication
Communication status of the series port
Network connection status
Network communication speed
Terminal No.
1
2
3
6
4, 5, 7, 8
Definition
Tx+
TxRx+
Rx-
Explanation
Positive pole for data transmission
Negative pole for data transmission
Positive pole for data receiving
Negative pole for data receiving
N/C
This section gives instructions on how to connect DVPEN01-SL with PLC MPU and how to connect DVPEN01-SL to
the network.
3.1 Installation
Connecting PLC MPU to DVPEN01-SL:
Adjust the I/O module clip on the left side of the MPU.
Meet the I/O module port of the MPU with DVPEN01-SL as shown in the figure below.
Fasten the I/O module clip on the left side of the MPU.
DVP28SV
DVPEN01
POWER
RS-232
100M
LINK
RS-232
LAN
To connect DVPEN01-SL with the other I/O module, lift the extension clip of the I/O module by a screwdriver and
open the side cover.
PC Master
Ethernet
DVPEN01
DVPEN01
DVP28SV
POWER
DVP28SV
DVPEN01
DVP28SV
DVP28SV
DVPEN01
POWER
RS-232
RS-232
100M
100M
LINK
LINK
RS-232
RS-232
LAN
LAN
Content
#0
Model code
#1
#2
#3
#4
#5
#6
R
R
W
W
W
W
Firmware version
Communication mode
E-mail event 1 trigger
E-mail event 2 trigger
E-mail event 3 trigger
E-mail event 4 trigger
#7
Status of E-mail 1, 2
#8
Status of E-mail 3, 4
#9
R/W
#10
R/W
#11
R/W
#12
R/W
#13
#14
R/W
R
#15
RW
#16
RW
#17
R/W
E-mail 1 additional
message
E-mail 2 additional
message
E-mail 3 additional
message
E-mail 4 additional
message
Data exchange trigger
Status of data exchange
Explanation
The model code of DVPEN01-SL is set by its system, and can only
be read. Model code of DVPEN01-SL=H6151.
Displaying the current firmware version in hex.
b0: MODBUS TCP mode; b1: data exchange mode
Setting whether to send E-mail 1
Setting whether to send E-mail 2
Setting whether to send E-mail 3
Setting whether to send E-mail 4
b0~b7: Current status of E-mail 2
b8~b15: Current status of E-mail 1
b0~b7: Current status of E-mail 4
b8~b15: Current status of E-mail 3
Filled in by the user, and it will be send by E-mail.
Filled in by the user, and it will be send by E-mail.
Filled in by the user, and it will be send by E-mail.
Filled in by the user, and it will be send by E-mail.
#18
#24~#20
#26 #25
#27
R
R/W
-
Content
Error status of slaves in
data exchange
Reserved
Destination IP address
Function code for a data
exchange mode
Destination Slave ID
Data transmission buffer
Data receiving buffer
Reserved
Read address for data
exchange
Read length for data
exchange
Received address for
data exchange
Written-in address for
data exchange
Written-in length for data
exchange
Transmission address
for data exchange
Mode of setting an IP
address
IP address
Netmask
Gateway IP address
Enabling the setting of
an IP address
#28
#48~#29
#68~#49
#80~#69
R/W
R/W
R
-
#81
R/W
#82
R/W
#83
R/W
#84
R/W
#85
R/W
#86
R/W
#87
R/W
#88
#90
#92
R/W
R/W
R/W
#94
R/W
#95
Status of setting an IP
address
#101~#96
Reserved
#89
#91
#93
#102
R/W
#110~#103
#111
R/W
#112
R/W
#113
#114
#115
#116
R/W
R/W
R/W
#118 #117
R/W
#119
R/W
#219~#120
R/W
#248~#220
Reserved
8-bit processing mode
MODBUS TCP
Keepalive time
Reserved
MODBUS TCP timeout
MODBUS TCP trigger
MODBUS TCP status
MODBUS TCP
destination IP address
MODBUS TCP data
length
MODBUS TCP data
buffer
Reserved
#251
Error code
Explanation
0: No error occurs.
1: An error occurs in data exchange.
b0~b15 in CR#19: States of slave 1~slave 16.
b0~b8 in CR#18: States of slave 17~slave 24.
Destination IP address for data exchange
0 (Default value): The function of function code 17 is enabled.
1: The function of function code 17 is disabled.
Destination Slave ID for data exchange
Buffer for transmitted data in data exchange
Buffer for received data in data exchange
Slave transmission buffer address for data exchange
Number of registers for read data
Buffer address for the receiving Master in data exchange
Buffer address for the receiving Slave in data exchange
Number of registers for data transmission
Master transmission buffer address for data exchange
0: Static IP address
1: DHCP
Setting an IP address
Setting a netmask
Setting a gateway IP address
Executing the setting of an IP address
Showing the status of setting an IP address
0: The setting of an IP address is successful.
1: The setting of an IP address fails.
Setting the UDP port of an MC protocol data exchange slave
(Default value: 1025)
Setting the MODBUS TCP master control as 8-bit mode
MODBUS TCP Keepalive time (Unit: Second)
Setting the MODBUS TCP timeout (Unit: Millisecond)
Setting whether to send out data in MODBUS TCP mode
Displaying current status of MODBUS TCP mode
Setting a destination IP address for MODBUS TCP transaction
Setting the data length for MODBUS TCP transaction
Data buffer of MODBUS TCP for storing sending/receiving data
Displaying the errors. See table of error codes in the following
section for more information.
#255~#252
Reserved
Symbols R refers to able to read data by FROM instrcution; W refers to able to write data by TO instrcution.
2.
You can read the model code in the program to see if the I/O module exists.
Mode
MODBUS TCP
Data exchange
0
Disable
Disable
1
Enable
Enable
E-mail Functions
2.
3.
E-mail status
Not been sent
Being processed
The sending of the E-mail is successful.
Fail to connect to the SMTP server.
Incorrect recipient E-mail address
SMTP server communication error
Exceeding the max. number of TCP connection
Reserved
Data Exchange
Execution
The data in data exchange area is not transmitted.
The data in data exchange area is transmitted.
The data exchange is executed continuously. If the value in CR#13 is
0, the data exchange will stop.
Setting: Program Control in the Enable Condition drop-down list box
is selected. (Please refer to section 5.6.)
The data exchange is executed once. After the data exchange is
executed, the value in CR#13 will automatically become 0.
Setting: Program Control in the Enable Condition drop-down list box
is selected. (Please refer to section 5.6.)
Status
Data have not yet been received.
Data exchange is in progress.
Data exchange is successful.
Data exchange fails.
10
Setting the MODBUS address of the register for Master data exchange.
2.
Example: Write H1000 (D0) into CR#81, K1 into CR#82, and H1064 (D100) into CR#83. If the data
exchange is successful, the value in D0 of the Slave will be written into D100 of the MPU. Or write H1002 (D2)
into CR#84, K4 into CR#85, and H1008 (D8) into CR#86. If the data exchange is successful, the value in
D8~D11 of the Master will be written into D2~D5 of the Slave. Both sending and receiving can be executed at
the same time. When the values in CR#82 and #85 are both 0, DVPEN01-SL will use the default registers
(CR#29~CR#68) and number of registers (K20).
Setting an IP address
11
12
Error
The network is not yet connected.
Incorrect IP address setting
CR#13 is set as transmitting data, but the data exchange
is forbidden.
CR#13 is set as transmitting data, but the data exchange
mode has not yet been enabled.
NTP-Server connection fails.
SMTP-Server connection fails.
DHCP has not obtained the correct network parameter.
RTU Mapping
13
This section gives instructions on how to set DVPEN01-SL by DCISoft and explanations on each setup page. Before
you start a setup page, you have to select Ethernet in the Communication Setting window. Next, you can search by
IP address or use Auto-Search. You also can open the setup page for DVPEN01-SL by RS-232. DVPEN01-SL is set by
UDP port 20006; therefore, you have to be aware of the relevant settings of the firewall.
Communication settings
1. Open DCISoft in your PC and click on Communication Setting.
14
Broadcast search
1. Click Search in DCISoft to search for all Delta Ethernet products on the network. The window on the left
hand side shows the models found, and the window on the right hand side displays the device list of all
models.
15
16
2. After configure a model, select the DVPEN01-SL checkbox and click OK to auto-search for DVPEN01-SL
modules on the network.
17
Searching by an IP address
1. Select Ethernet in the Communication Type section, and enter the IP address. Click OK.
18
3. The DVPEN01-SL module found will be displayed in the right hand side window. Double click it to enter the
setup page.
19
2. After setting the communication port, click Search. If the searching is successful, the setup page for
DVPEN01-SL will open automatically.
20
Basic settings
1. Module Name
There can be many DVPEN01-SL modules in the network. Thus, you can set a module name for each
module to identify the module when you need to use them.
2. Module Language
You can select a language for each module name, and the windows will be displayed in the selected
language.
3. Enable MODBUS TCP
To enable or disable MODBUS TCP. When MODBUS TCP is disabled, WPLSoft will not be able to upload
or download.
4. Enable Time Server
DVPEN01-SL adopts NTP (Network Time protocol), which means it can acquire correct time automatically
from the time server in the network and correct the RTC in the MPU every fixed period of time to ensure
correct time in the MPU. The Enable Time Server is unselected by default.
5. Start Daylight Saving Time
Daylight Saving Time; also known as summer time is a conventional local time adopted by many countries
in the world on a seasonal basis. Most commonly DST is obtained by adjusting the official local time
forward, by one hour, for the spring, summer, and early autumn periods. Daylight Saving Time is not
implemented in Taiwan; therefore, you do not need to check this item.
6. Time Server
IP address of the time server. You can acquire correct time from the time server to correct the time in the
MPU.
7. Time Zone
A time zone is a region of the Earth that has adopted the same standard time, usually referred to as the
local time. Most adjacent time zones are exactly one hour apart, and by convention compute their local time
21
2. You will see the Local Area Connection Status window. Click on Properties.
22
4. Enter 192.168.0.1 into the IP address box. Click on OK to complete the IP address setting of the PC.
23
Explanation
The user enters the IP address, subnet mask and gateway.
DHCP server offers the IP address, subnet mask and gateway.
IP address is the location of the equipment in the network. Every equipment connected to the network has
to have an IP address. Incorrect IP address will result in connection failure on the equipment or even other
equipment. Ask your ISP for questions about IP address setup. The default IP address for DVPEN01-SL is
192.168.1.5.
3. Netmask
Subnet mask is an important parameter for setting the subnet, used for seeing if the destination IP address
and the local equipment are in the same subnet. If not, the equipment will send the packet to the gateway,
and the gateway will send the packet to another subnet. Incorrect setting may cause the destination
equipment unable to communicate with DVPEN01-SL. To see if your setting is correct, conduct bitwise AND
operations between your IP address and subnet mask and destination IP address and subnet mask. If the
two values obtained are the same, the two IP addresses are in the same subnet. The default subnet mask
of DVPEN01-SL is 255.255.255.0.
4. Gateway
Gateway is the gate for two different subnets, allowing the two ends in different subnets to communicate.
For example, if the LAN has to be connected to WAN, it will need a gateway to bridge the communication.
The IP address of the gateway has to be in the same subnet as DVPEN01-SL. The default gateway IP
address of DVPEN01-SL is 192.168.1.1.
24
Setting mails
1. SMTP Setting
The E-mail will first be sent to SMTP server, and SMTP server will send it to the designated address. For
example, assume there is an E-mail to be sent to test@delta.com.tw, and the SMTP server is
172.16.144.121. The E-mail will be sent to SMTP server first, and the server will further send it to the
recipient test@delta.com.tw.
The setting boxes are described below.
Port: Entering the port of the SMTP server (The default value is 25.)
Mail From: Setting the mail address used to send E-mails (63 characters at most can be entered.)
25
5.5 SNMP
SNMP is a simple network management function. Users can read and control the registers in a PLC by means of a
SNMP network management tool. (DVPEN01-SL version 2.06 and above support this function.)
Setting
1.
Enable SNMP
Users can disable/enable the SNMP function by unselecting/selecting the Enable SNMP checkbox.
2.
Community
Users can set two communities. The relevant setting boxes are described below.
Community String: Name given to the community which is connected (63 English characters at most
can be entered.)
26
27
1.
2.
Listen Port: Setting the communication port of the MELSEC protocol slave
3.
Network No./Station No.: Setting the network number and the station number of the MELSEC protocol
device
28
1.
2.
Enable Condition
Users can select Always Enable or Program Control. If Always Enable is selected, DVPEN01-SL will
execute data exchange continuously until the setting in DCISoft is changed. If Program Control is selected,
DVPEN01-SL will execute data exchange according to the program setting (CR#13=2: Executing data
exchange; CR#13=0: Stopping executing data exchange).
3.
4.
29
5.8 RTU
Use the RTU function to conduct mapping between Deltas network modules DVPEN01-SL and RTU-EN01.Set the
mapping information first, and you will be able to use WPLSoft in DVPEN01-SL to save and retrieve the mapped bit (M)
and register (D) in order to operate the remote RTU-EN01.
1.
2.
Communication Parameters
Users can enter a time interval in the Communication Timeout box, and a cycle in the Update Cycle
box.
3.
4.
30
Setting an IP filter
1. Enable IP Filter
Check the box to enable IP filter.
2. IP Address
IP addresses that are allowed to establish connections. Maximum 8 IP addresses are allowed.
3. Subnet Netmask
The subnet of the IP adrress is allowed to establish a connection. To see whether the destination IP address
is allowed, conduct bitwise AND operations between the allowed IP address and subnet mask and
destination IP address and subnet mask. If the two values obtained are the same, the destination IP
address is allowed by the IP filter. For example, assume the IP address is 192.168.0.1 and subnet mask
255.255.255.255, the only one IP address allowed to establish a connection is 192.168.0.1. If the subnet
mask is 255.255.255.0, the IP addresses s allowed to establish connections will become
192.168.0.0~192.168.0.255.
31
ARP (Address Resolution Protocol) is used for obtaining the MAC address corresponding to the IP address in data
transmission. For example, there is a datum to be sent to 172.16.155.250, but you do not know the corresponding
MAC address. You can use ARP to look up the MAC address by IP address, and the corresponding MAC address will
be saved, so you do not need to look it up again when sending the next datum. Therefore, if you do not know the MAC
address, you will have to spend some time looking up the MAC address. If you want to enhance the transmission
efficiency, use static ARP table to save time. For example, assume the IP address is 192.168.0.1 and MAC is
00:14:22:56:0F:7F. As long as there are data sent to 192.168.0.1, you will get the MAC address from the table.
1. IP Address
Destination IP address in data transmission.
2. MAC Address
The MAC addresses corresponding to the IP address.
Note:
Incorrect settings may result in connection failure. Therefore, DO NOT set the MAC address of the equipment
without the network into the table.
32
1. Modify
Check the box to modify the password.
2. New password
Maximum 4 characters are allowed. Leave the column blank to disable the password protection function.
3. Confirm Password
Enter the new password again.
4. See section 6.4 for more details.
Note:
After the password is locked, all the pages cannot be set unless you unlock the password. However, if you set
DVPEN01-SL by RS-232, you can return the setting to default setting whether the password is locked or not.
For example, if you have locked DVPEN01-SL but forget the password, you have to return DVPEN01-SL to
factory default setting by RS-232, and all the settings will return to default ones.
33
Application Examples
Network
environment
1.
The connection
DVPEN01
DVP-PLC
PC
34
2.
3.
Click Auto-Search Ethernet Module to search for all the Ethernet modules on the network.
4.
All the devices connected to the network are shown in the Ethernet section. After DELTA DVPEN01-SL is
clicked, WPSoft can communicate with the MPU by means of DVPEN01-SL.
35
After DELTA DVPEN01-SL in the Ethernet section is double-clicked, DCISoft will be started. Please refer to
section 5.3 for more infomrationa bout setting an IP address.
6.
After the setting of an IP address is complete, and step 2~step 4 are repeated, the IP address can be used for
communication.
36
Network
environment
(1) Connect the PC and DVPEN01-SL by using DHCP server through LAN.
(2) IP address of DVPEN01-SL: 172.16.157.148
Note: DVPEN01-SL can use a RJ-45 cable with/without a jump wire.
1. The connection
DHCP Server
PC
DVPEN01
DVP-PLC
PC
Hub
3. Click Auto-Search Ethernet Module to search for all the Ethernet modules on the network.
37
5. After DELTA DVPEN01-SL in the Ethernet section is double-clicked, DCISoft will be started. Please refer to
section 5.3 for more infomrationa bout setting an IP address.
38
Network
environment
1. See 6.1 for the connection and how to set the communication.
2. Open the setup page and switch to the Security page.
39
4. Open the setup page again, and DVPEN01-SL is now locked by the password. You cannot open any of the
settings now. Click on Confirm to leave the entering password window.
40
6. To clear the password, simply leave the password columns blank. Click on Apply to clear the password.
41
Network
environment
1. Use DVPACAB2A30 cable to connect the PC and DVPEN01-SL and open the setup page. Open the Security
page.
42
3. After the searching, all the parameters have already returned to their default settings.
Network
environment
1. See 6.1 for the connection and how to set the communication.
2. Open the setup page and switch to the IP Filter page.
43
4. Enter 192.168.0.1 in the No. 2 IP Address box and 255.255.255.0 in the No.2 Subnet Netmask box. Click on
OK to complete the setting. Only the equipment within the IP address range can be connected.
44
Network
environment
1. See 6.1 for the connection and how to set the communication.
2. Open the setup page and switch to the Static ARP Table page.
3. Select the Enable ARP Table checkbox. Enter 192.168.1.6 in the No. 1 IP Address box, and its corresponding
MAC address is 00:18:23:10:00:35.
45
Note:
The MAC address of DVPEN01-SL can be obtained from WPLSoft or the MAC address sticker on the equipment.
The MAC address of PC can be found in the Network Connection Details widow (see below).
46
Sending an E-mail to notify the administrator when the current status of X0 and Y0 is changed.
Network
application
1.
See 6.1 for the connection and how to set the communication.
2.
3.
Set E-mails and select events. Enter the address of the SMTP server, the subjects of the E-mails, a user
name/password, the E-mail addresses of the recipients, the present values in the registers (D devices, T devices,
and C devices) attached to the E-mails, and the number of values. Check the Event cells for receipient 1. Click
Apply to complete the setting of E-mails.
47
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
T0
K100
K4
K1
K1
T0
K100
K5
K1
K1
T0
K100
K6
K1
K1
X0
Y0
Y0
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.
Network
environment
(1)
(2)
(3)
(4)
48
4. After all the settings in PLC_B are completed, compile the ladder diagram in the MPU and download it to PLC_B.
The program designed is like the one shown below.
M1000
M1013
T RD
D100
SET
M1
TOP
K100
K28
K1
K1
TOP
K100
K29
D100
K7
TOP
K100
K14
K0
K1
TOP
K100
K13
K1
K1
SET
M2
RST
M1
FROM
K100
K14
D14
K1
= D14 K2
RST
M2
= D14 K3
RST
M2
M2
M1
M1
M2
END
Explanations:
Write the communication address of the destination PLC in CR#28, and DVPEN01-SL will automatically
49
K100
K49
D0
K7
END
Explanations:
The data received every one second are written into D0~D6.
Select Always Enable in the Enable Condition drop-down list box. Enable a timer and write the timer
values into D0~D99. Continuosly write the present values in D0~D99 of PLC_A into D0~D99 of
PLC_B, and write the values in D0~D99 of PLC-B into D200~D299 of PLC_A.
Network
environment
(1)
(2)
(3)
(4)
50
4. After all the settings in PLC_A are completed, you have to write a ladder diagram for the MPU and download it to
PLC_B. The program designed is like the one shown below.
51
Enable a timer (X20) and write the timer values into D0~D99. Control the program (X21) and write the
present values in D0~D99 of PLC_A into D0~D99 of PLC_B, and write the values in D0~D99 of
PLC-B into D200~D299 of PLC_A. Control the program (X21) to stop the execution.
Network
environment
(1)
(2)
(3)
(4)
3. Select the Enable Data Exchange checkbox. Select Program Control in the Enable Condition drop-down list
box. Check the Enable cell corresponding to station address 1.Enter the IP address of PLC_B 192.168.1.97 in
the IP Address cell corresponding to station address 1, select D200 and D0 in the Master Device cell
corresponding to station address 1, select D0 and D0 in the Slave Device cell corresponding to station address
1, and select 100 and 100 in the Quantity cell corresponding to station address 1.
52
6.11
Application
Network
environment
Writing the time of the RTC in PLC_B into D0~D6 of PLC_A by, and using a ladder diagram to
designate an IP address
(1)
(2)
(3)
(4)
1. See 6.1 for how to set the communication. Compile the ladder diagram in the MPU and download it to PLC_B.
The program designed is like the one shown below.
M1000
M1013
T RD
D100
SET
M1
TOP
K100
K28
K0
K1
TOP
K100
K26
HC0A8
K1
TOP
K100
K25
H4
K1
TOP
K100
K29
D100
K7
TOP
K100
K14
K0
K1
TOP
K100
K13
K1
K1
SET
M2
RST
M1
FROM
K100
K14
D14
K1
= D14 K2
RST
M2
= D14 K3
RST
M2
M2
M1
M1
M2
END
53
Explanations:
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=HC0A8) should be
written into CR#26, and the last two IP codes (0.4=H0004) into CR#25.
K100
K49
D0
K7
END
Explanations:
6.12
The data received every one second are written into D0~D6.
Application
Network
environment
Writing the time in RTC in PLC_B directly into D0~D6 of PLC_A without writing in ladder diagram into
PLC_A.
(1)
(2)
(3)
(4)
M2
T RD
D100
SET
M1
TOP
K100
K28
K0
K1
TOP
K100
K26
HC0A8
K1
TOP
K100
K25
H4
K1
TOP
K100
K81
H1000
K1
TOP
K100
K84
H1000
K1
TOP
K100
K85
K7
K1
M1
M1
54
TOP
K100
K86
H1064
K1
TOP
K100
K14
K0
K1
TOP
K100
K13
K1
K1
SET
M2
RST
M1
FROM
K100
K14
D14
K1
= D14 K2
RST
M2
= D14 K3
RST
M2
M2
END
Explanations:
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=HC0A8) should be
written into CR#26, and the last two IP codes (0.4=H0004) into CR#25.
Write the MODBUS address of D0 (H1000) in PLC_A into CR#81 and CR#84.
Write the MODBUS address of D100 (register of RTC) (H1064) into CR#86.
Once the data exchange is successful, the values in D1313~D1318 in PLC_B will be written into D0~D6 of
PLC_A.
55
Application
Network
environment
(1)
(2)
(3)
(4)
(5)
(6)
(7)
M2
M1
SET
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
M1
56
TOP
K100
K125
H0
K1
TOP
K100
K119
K6
K1
TOP
K100
K116
K0
K1
TOP
K100
K115
K1
K1
INC
D0
MOV
K0
SET
M2
RST
M1
FROM
K100
D14
K1
= D14 K2
RST
M2
= D14 K3
RST
M2
= D0 K2
D0
M2
K116
END
Explanations:
Write the IP address of PLC_A into CR#117 and CR#118. The first two IP codes (192.168=HC0A8) should
be written into CR#118, and the last two IP codes (0.4=H0004) 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.
If the execution is successful, Y0 on PLC_A will go between On and Off every one second.
57
RTU Mapping
Application
Network
environment
Using RTU mapping to read/write the remote digital I/O and analog I/O registers.
DVP28SV+DVPEN01-SLRTU-EN01+DVP06XA+DVP16SP
(1)
(2)
(3)
(4)
(5)
1. Please refer to section 6.1 for more information about setting communication.
2. Use DCISoft for RTU-EN01 to set mapping control registers used for reading/writing.
58
4. Edit a ladder diagram, and download it to DVPEN01-SL. The program edited is like the one shown below.
Explanations:
1. Enabling mapping: CR15=1
2. Disabling mapping: CR15=0
3. After CR#15 is enabled, M2000~M2009 and D2000~D2009 will be used to read data, and present values will be
read before M3000~M3009 and D3000~D3009 are used to write data.
4. During the execution of mapping, other devices can not be used to modify the values in mapping registers.
59
Application
Network
environment
Using Always Enable in the Enable Condition drop-down list box to read/write registers in a
Mitsubishi PLC
DVP28SV+DVPEN01-SLMitsubishi PLC
(1)
(2)
(3)
(4)
3. Write a program for the MPU, and download it to DVPEN01-SL. The program designed is like the one shown
below.
After the settings are downloaded, DVPEN01-SL will read the data in D0~D99 in the Mitsubish PLC into D0~D99
in DVP28SV, and write the data in D100~D199 in DVP28SV into D100~D199 in the Mitsubish PLC.
60