- No category
advertisement
Starter Kit Manual
Table of Contents
Chapter 1 Introduction of UT Series Starter Kits
1.1 General Information about UT Series Starter Kits .............. 1-2
1.1.1 Components of UT Series Starter Kits ....................... 1-2
1.2 System Requirements for a Starter Kit ........................... 1-10
1.3 Description of ISPSoft-Programming Tool for PLCs ........... 1-11
1.4 Description of DOPSoft-Programming Tool for HMIs ......... 1-13
1.5 Description of DCISoft ................................................. 1-15
Chapter 2 Installation of UT Series Starter Kits
2.1 Installing Hardware ...................................................... 2-2
2.1.1 Connecting a PLC to an I/O Simulator Board and a Power
Supply Module ....................................................... 2-2
2.1.2 Connecting a Personal Computer to DVP14SS211R ..... 2-5
2.1.3 Connecting a Personal Computer to DOP-B07S410 ...... 2-5
2.1.4 Connecting DVP14SS211R to DOP-B07S410 ............... 2-6
2.1.5 Connecting a Personal Computer to DVP12SE11R ....... 2-7
2.1.6 Connecting a Personal Computer to DOP-B07E415 ...... 2-7
2.1.7 Connecting DVP12SE11R to DOP-B07E415 ................. 2-7
2.2 Installing ISPSoft ......................................................... 2-8
2.3 Installing COMMGR ..................................................... 2-14
2.4 Installing DOPSoft ...................................................... 2-18
2.5 Installing DCISoft ....................................................... 2-27
2.6 Installing the UC-PRG020-12A Driver ............................ 2-31
i
3.1 Example 1 ................................................................... 3-3
3.1.1 Creating a Project for a PLC ..................................... 3-3
3.1.2 Creating a Main Program ......................................... 3-6
3.1.3 Setting COMMGR for UT-14SS2-A ........................... 3-15
3.1.4 Downloading a PLC Project .................................... 3-18
3.1.5 Monitoring a Program ........................................... 3-21
3.1.6 Using a PLC with an I/O Simulator Board ................. 3-23
3.1.7 Writing a Program for an HMI ................................ 3-24
3.1.8 Compiling and Downloading an HMI Program ........... 3-47
3.1.9 Using an HMI with an I/O Simulator Board ............... 3-49
3.2 Example 2 ................................................................. 3-51
3.2.1 Project Requirements ........................................... 3-51
3.2.2 Project Development ............................................ 3-52
3.2.3 Writing a Program for an HMI ................................ 3-54
3.2.4 Creating a Project for a PLC ................................... 3-73
3.2.5 Setting COMMGR for UT-12SE-A ............................. 3-86
3.2.6 Downloading a PLC Project .................................... 3-89
3.2.7 Setting Ethernet Parameters for DVP12SE11R .......... 3-91
3.2.8 Testing a Project .................................................. 3-95
4.1 Introduction of Hardware ............................................... 4-3
4.1.1 DVPPS01 .............................................................. 4-3
4.1.2 DVP14SS211R ....................................................... 4-3
i i
4.1.3 DVP12SE11R ......................................................... 4-3
4.1.4 DOP-B07S410 ....................................................... 4-4
4.1.5 DOP-B07E415 ....................................................... 4-4
4.2 Profiles and Dimensions ................................................. 4-5
4.2.1 DVPPS01 .............................................................. 4-5
4.2.2 DVP14SS211R ....................................................... 4-5
4.2.3 DVP12SE11R ......................................................... 4-7
4.2.4 DOP-B07S410 ....................................................... 4-8
4.2.5 DOP-B07E415 ....................................................... 4-9
4.3 Connecting Communication Cables ................................ 4-10
4.3.1 Pin Definitions of Serial Communication ................... 4-10
4.3.2 Introduction of Communication Cables .................... 4-12
4.4 Communication between a PLC and an HMI .................... 4-14
4.4.1 Wiring a Controller ............................................... 4-14
4.4.2 PLC Device Addresses ........................................... 4-15
4.4.3 Setting the Communication Parameters in a PLC ....... 4-18
4.4.4 Setting the Communication Parameters in an HMI ..... 4-21
4.5 Equivalent Circuit of an I/O Simulator Board ................... 4-23
4.5.1 Connecting to DVP14SS211R ................................. 4-23
4.5.2 Connecting to DVP12SE11R ................................... 4-24
4.6 Installing the DVP12SE11R Driver ................................. 4-25
i i i
i v
1
Chapter 1 Introduction of UT Series Starter
Kits
Table of Contents
General Information about UT Series Starter Kits ....... 1-2
System Requirements for a Starter Kit ...................... 1-10
Description of ISPSoft-Programming Tool for PLCs ... 1-11
Description of DOPSoft-Programming Tool for HMIs . 1-13
Description of DCISoft .............................................. 1-15
1-1
Starter Kit Manual
_1
1.1
General Information about UT Series Starter
Kits
This UT series starter kit simplifies users’ entry into the world of Delta PLCs and HMIs, and helps the users get familiar with programming software.
For that purpose, this manual explains how to connect the components of a starter kit, and how to program the PLC and HMI by means of several simple examples.
Components of UT series starter kits:
There are two types of starter kits. Users can select a type of starter kit according to their needs.
1. UT-14SS2-A: For learning PLC and HMI programming
Components of the UT-14SS2-A starter kit:
1-2
Item Model name
A Starter Kit Manual
B DVP-PS01
C DVP14SS211R
Description
User manual
Power supply module, 24 V DC output
CPU with 14 built-in I/O points
Chapter 1 Introduction of UT Series Starter Kits
Item Model name
D DOP-B07S410
E UC-MS020-06A (2 m)
Description
HMI, 7” TFT LCD
Communication cable for connecting an HMI to a PLC
F UC-PRG020-12A (2 m) Programming cable for a PLC
G UC-PRG015-02A (1.5 m) Programming cable for an HMI
H 3865259300 DC power cable
I
J
3081419700
3534435700
K 5502577100
L UT-USB01
RS-485 cable for connecting a PLC to an HMI
Four screw locks for an HMI
I/O simulator board
USB flash drive
DVP14SS211R:
1_
POWER indicator, RUN indicator,
ERROR LED indicator
COM1 (RS-232 port)
DC power input
Input/Output point indicators
RUN/STOP switch
COM2 (RS-485 port)
Input/Output terminals
Extension port
1-3
Starter Kit Manual
_1
2. UT-12SE-A: For learning PLC and HMI programming and Ethernet connection
Components of the UT-12SE-A starter kit:
1-4
H
I
F
G
J
K
L
C
D
E
Item
A
B
Model name
Starter Kit Manual
DVP-PS01
DVP12SE11R
DOP-B07E415
UC-PRG030-20A (3 m)
UC-PRG015-01A (1.5 m)
UC-PRG015-02A (1.5 m)
3865259300
3081419700
3534435700
5502577101
UT-USB01
Description
User manual
Power supply module, 24 V DC output
CPU with 12 built-in I/O pints
HMI, 7” TFT LCD
Ethernet cable
Programming cable for a PLC
Programming cable for an HMI
DC power cable
RS-485 cable for connecting a PLC to an HMI
Four screw locks for an HMI
I/O simulator board
USB flash drive
Chapter 1 Introduction of UT Series Starter Kits
DVP12SE11R:
1_
POWER indicator, RUN indicator,
ERROR indicator, COM1 indicator
COM1 (Mini USB)
COM2 (RS-485)
Input/Output terminals, COM3 (RS-485)
Right-side extension port
RUN/STOP switch
Ethernet port
DC power input
Input/Output point indicators, COM2 indicator, COM3 indicator
1-5
Starter Kit Manual
_1
USB flash drive:
Item
Software
Manual
Program
Contents
1. ISPSoft
2. COMMGR
3. DOPSoft
4. DCISoft
5. UC-PRG020-12A driver
1. Starter Kit Manual
2. ISPSoft User Manual
3. DOPSoft User Manual
4. DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming
5. DVP PLC Application Examples
6. Instruction Sheet (DVPPS01/02/05)
7. Instruction Sheet (DVP-SS2)
8. Instruction Sheet (DVP-SE)
9. Instruction Sheet (UC-PRG020-12A)
10. Instruction Sheet (DOP-B07S410)
11. Instruction Sheet (DOP-B07E415)
1. HMI Element Example
2. Examples (UT-14SS2-A)
3. Examples (UT-12SE-A)
4. DVP PLC Application Examples
1-6
Chapter 1 Introduction of UT Series Starter Kits
Starter kit setup wizard:
(1) Insert the USB flash drive which is an attachment to a UT series starter kit into a computer, and double-click “StarterKit.exe” in the USB flash drive.
1_
(2) There are three options.
Install Software
After users click Install Software, they can select the software which needs to be installed.
(A) ISPSoft version 2.05: PLC programming software
(B) COMMGR version 1.04: Communication management software
(C) DOPSoft version 2.00.04: HMI programming software
(D) DCISoft version1.12 (UT-12SE-A): Network module configuration software
(E) UC-PRG020-12A driver (UT-14SS2-A)
1-7
_1
Starter Kit Manual
Review Documentation
After users click Review Documentation, they can select the manual that they want to read from the list box displayed, and then click Open to open the manual.
1-8
Chapter 1 Introduction of UT Series Starter Kits
Browse Examples
After users click Browse Examples, they can choose to open an HMI element example or PLC application examples according to their needs.
1_
(A) HMI Element Example: Demo of HMI elements
(B) Examples (UT-14SS2-A): Examples in Chapter 3
(C) Examples (UT-12SE-A): Examples in Chapter 3.
(D) DVP PLC Application Examples: Program codes for DVP PLC
Application Examples
1-9
_1
Starter Kit Manual
1.2
System Requirements for a Starter Kit
Before using a starter kit, users have to make sure that an operating system meets the requirements below.
Item
Operating system
CPU/Memory
Hard disk drive
Monitor
Keyboard/Mouse
Printer
System requirement
Windows 2000/NT/Me/XP/Vista/7
Pentium 1.6 G or above/2 GB or above
Capacity : 1 GB or above
Full-color display supporting a resolution higher than 1024 x 768 pixels
General keyboard/mouse, or device compatible with Windows
Printer with a driver for Windows (It is used to print projects, and is optionally required.)
Communication software
COMMGR, a communication manager, must be installed on a computer. (*1)
*1. Please refer to ISPSoft User Manual for more information about COMMGR. ISPSoft needs to be connected to a PLC by means of COMMGR.
1-10
Chapter 1 Introduction of UT Series Starter Kits
1.3
Description of ISPSoft-Programming Tool for
PLCs
ISPSoft is a programming tool that realizes high-level to IEC 61131-3 standard programming concept for PLCs, and enables genuine structured design.
1_
The interface of ISPSoft is described below.
Function area: The main functions of ISPSoft are included. The functions which are used more frequently are on the toolbars, and the functions which are used less frequently are on the menu bar.
Project management area: The framework of a project is displayed in this area.
Users can understand the relation among the objects in the project by means of the tree structure. The efficiency in managing the project is also increased.
Working area: Users can edit a project in this area.
Output area: The execution of some functions generates information. The information is displayed in this area.
Status area: The information about a project and communication is displayed in this area.
1-11
_1
Starter Kit Manual
When using ISPSoft, the users can click an item on the Help menu to get help.
About…
Item
ISPSoft User Index
Description
Users can get the information about the version of the software, and the date when the software is released.
Users can get the usage of the software. (Alternatively, the users can click on the file toolbar to get the usage of the software.)
PLC Instruction and Special
Registers Reference
Users can get the information about instructions and registers. If the users click an instruction in the program editing area and press F1 on the keyboard, they can get the information about the instruction.
The features of ISPSoft are listed below.
1. Enhancement of structured development
Based on the IEC 61131-3 standard, basic program units are called “program organization units” (POUs). The management of a group of POUs by means of a tree structure is added. This function can provide hierarchical management.
2. Supporting Large-scale project development
With the trend that the size of application software increases, it is getting common for several developers to work together on a program. ISPSoft manages projects by means of integrating tasks. The efficient and convenient development environment that ISPSoft provides enables users to apply PLCs to more complex control systems as well as to small control systems.
3. Enhanced variable management
Variable programming that does not depend on PLC memory addresses is a fundamental concept of the ISPSoft to improve program modularization and re-usability. ISPSoft supports the function of importing and exporting data from and to
Microsoft Excel. With above functions, the tasks of defining and managing variables can be implemented with greater efficiency.
1-12
Chapter 1 Introduction of UT Series Starter Kits
1.4
Description of DOPSoft-Programming Tool for
HMIs
DOPSoft is powerful easy-to-use HMI configuration software for DOP series HMIs. With
DOPSoft, users can create functional touchscreen applications for industrial processes such as automation, process control, and OEM applications.
1_
The interface of DOPSoft is described below.
Menu bar: DOPSoft provides nine menus.
Toolbars: DOPSoft provides eight toolbars.
Element Tool window: The Element Tool window is composed of an element list and an element bank.
Property window: The properties of the elements on the present screen are displayed in the Property window.
Output window: The editing actions of users, and the output messages about the compiling of a program are recorded in the Output window.
Screen Manager window: If users create several screens, they can preview the
1-13
Starter Kit Manual
_1
screens by means of the Screen Manager window. The users can know the elements on a screen in the Screen Manager window without having to switch to that screen. If the users double-click a screen in the Screen Manager window, they can switch to that screen rapidly.
Status bar: It displays the present editing status.
Editing area: A proper editing area is provided according to the HMI type selected by users.
DOPSoft allows users to create a project by using features such as animated screens, alarms, trend graphs, recipes, and reports. DOPSoft and DOP series HMIs make touchscreen application more visually functional.
1-14
Chapter 1 Introduction of UT Series Starter Kits
1.5
Description of DCISoft
DCISoft is integrated configuration software for Delta network modules.
1_
The interface of DCISoft is described below.
Menu bar: DCISoft provides four menus.
Toolbars: DCISoft provides five toolbars.
Workspace: Network types and models are displayed in this area.
Output area: Messages are displayed in this area.
Status bar: It displays information about the present states of the program edited and the communication executed.
Operation area: This area is an interface for setting network modules.
1-15
_1
Starter Kit Manual
MEMO
1-16
2
Chapter 2 Installation of UT Series Starter
Kits
Table of Contents
Installing Hardware .................................................... 2-2
Connecting a PLC to an I/O Simulator Board and a Power
Supply Module ....................................................... 2-2
Connecting a Personal Computer to DVP14SS211R ...... 2-5
Connecting a Personal Computer to DOP-B07S410 ...... 2-5
Connecting DVP14SS211R to DOP-B07S410 ............... 2-6
Connecting a Personal Computer to DVP12SE11R ........ 2-7
Connecting a Personal Computer to DOP-B07E415 ...... 2-7
Connecting DVP12SE11R to DOP-B07E415 ................. 2-7
Installing ISPSoft........................................................ 2-8
Installing COMMGR ................................................... 2-14
Installing DOPSoft .................................................... 2-18
Installing DCISoft ..................................................... 2-27
Installing the UC-PRG020-12A Driver ....................... 2-31
2-1
Starter Kit Manual
_2
2.1
Installing Hardware
2.1.1
Connecting a PLC to an I/O Simulator Board and a
Power Supply Module
Assembling the UT-14SS2-A starter kit:
1. Install the digital I/O simulator board.
Please refer to section 4.5.1 for more information about the equivalent circuit of the I/O simulator board.
2. Connect a single-phase 110/220 V cable to the L and N terminals.
Note: To prevent staff from being hurt, the external AC power which is used should be switched off before hardware is wired.
3. Use the DC power cable to connect
DVP-PS01 to DVP14SS211R.
2-2
Chapter 2 Installation of UT Series Starter Kits
4. Use the DC power cable to connect the digital I/O simulator board to DVP-PS01.
5. Use the DC power cable to connect
DVP-PS01 to DC power input terminals on
DOP-B07S410.
2_
6. The assembly of the UT-14SS2-A starter kit is complete.
Assembling the UT-12SE-A starter kit:
1. Install the digital I/O simulator board.
Please refer to section 4.5.2 for more information about the equivalent circuit of the I/O simulator board.
2-3
_2
Starter Kit Manual
2. Connect a single-phase 110/220 V cable to the L and N terminals.
Note: To prevent staff from being hurt, the external AC power which is used should be switched off before hardware is wired.
3. Use the DC power cable to connect
DVP-PS01 to DVP12SE11R.
4. Use the DC power cable to connect the digital I/O simulator board to DVP-PS01.
5. Use the DC power cable to connect
DVP-PS01 to DC power input terminals on DOP-B07E415.
2-4
Chapter 2 Installation of UT Series Starter Kits
6. The assembly of the UT-12SE-A starter kit is complete.
2.1.2
Connecting a Personal Computer to DVP14SS211R
Users have to connect a personal computer to DVP14SS211R by means of
UC-RRG020-12A.
2_
PC UC-PRG020-12A(2M) PLC
2.1.3
Connecting a Personal Computer to DOP-B07S410
Users have to connect a personal computer to DOP-B07S410 by means of
UC-PRG015-02A.
PC
UC-PRG015-02A(1.5M)
HMI 1
2-5
Starter Kit Manual
_2
2.1.4
Connecting DVP14SS211R to DOP-B07S410
RS-232
UC-MS020-06A is used to connect DVP14SS211R to DOP-B07S410, and a male-to male
DB9 adapter is used to connect UC-MS020-06A to DOP-B07S410.
Model
COM port
DVP14SS211R
COM1 (RS-232)
DOP-B07S410
COM (RS-232)
Wiring diagram
UC-MS020-06A(2M) Male DB9
PLC HMI 1
RS-485
An RS-485 cable can be used to connect the COM port on DOP-B07S410 to
DVP12SS211R.
Model
COM port
DVP14SS211R
COM2 (RS-485)
DOP-B07S410
COM (RS-485)
Wiring diagram
PLC
D+: Red
D-: Black
RS-485 Cable(1M) Male DB9
HMI 1
2-6
Chapter 2 Installation of UT Series Starter Kits
2.1.5
Connecting
a Personal Computer to DVP12SE11R
Users have to connect a personal computer to DVP12SE11R by means of
UC-PRG015-01A.
PC
UC-PRG015-01A(1.5M)
2.1.6
Connecting a Personal Computer to DOP-B07E415
Users have to connect a personal computer to DOP-B07E415 by means of
UC-PRG015-02A.
2_
PC
UC-PRG015-02A(1.5M)
HMI
2.1.7
Connecting DVP12SE11R to DOP-B07E415
RJ45
The Ethernet cable UC-PRG030-20A is used to connect DVP12SE11R to DOP-B07E415.
Model
COM port
DVP12SE11R
RJ45
DOP-B07E415
RJ45
Wiring diagram
UC-PRG030-20A(3M)
PLC HMI
2-7
Starter Kit Manual
_2
RS-485
An RS-485 cable can be used to connect COM2/COM3 on DOP-B07E415 to
DVP12SE11R.
Model
COM port
DVP12SE11R
COM2 (RS-485)
DOP-B07E415
COM2/COM3 (RS-485)
D+: Red
Wiring diagram
D-: Black
RS-485 Cable(1M) Male DB9
PLC HMI
2.2
Installing ISPSoft
If an older version of ISPSoft has been installed on a computer, users have to uninstall it before installing ISPSoft.
Graphic representations
Graphic representation
Description
Clicking the left mouse button
Clicking the right mouse button
Clicking the left mouse button two times in quick succession
Pressing and holding the left mouse button, and then moving the mouse without releasing the button
Typing with a keyboard
Operating sequence (The graphic representation is used when an operating sequence is mentioned, e.g. and .)
Number used to describe a figure
2-8
Chapter 2 Installation of UT Series Starter Kits
Installing ISPSoft:
(1) Start the operating system installed on a computer. Users have to log on to the system as a system administrator before they install ISPSoft.
(2) Insert the USB flash drive which is an attachment to a UT series starter kit into the computer, and then double-click StarterKit.exe in the USB flash drive.
2_
2-9
_2
Starter Kit Manual
(3) Click Install Software.
(4) Click Install ISPSoft Ver 2.05. (Alternatively, the users can download the installation program from the official website of Delta http://www.deltaww.com
.
(Before the installation program downloaded from the website is installed, it needs to be decompressed.))
2-10
Chapter 2 Installation of UT Series Starter Kits
(5) Click Next in the ISPSoft 2.05 - InstallShield Wizard window.
(6) Select the I accept the terms in the license agreement option button, and then click
Next.
2_
(7) Type related information in the User Name box and the Organization box, and then click Next.
2-11
_2
Starter Kit Manual
(8) Leave the default path unchanged, or click Change… to change the path. Click Next to proceed to the next step.
(9) Check installation settings, and then click Install.
2-12
Chapter 2 Installation of UT Series Starter Kits
(10) After ISPSoft is installed, shortcuts to the program will be created on the desktop and the Start menu. Click Finish to complete the installation.
2_
(11) Start ISPSoft. (Click the
Start button All Programs Delta Industrial
Automation PLC ISPSoft x.xx ISPSoft x.xx, or click desktop.)
on the
2-13
_2
Starter Kit Manual
2.3
Installing COMMGR
COMMGR is software independent of ISPSoft. It must be installed and uninstalled separately. If an older version of COMMGR has been installed on a computer, users have to uninstall it before installing COMMGR.
(1) Start the operating system installed on a computer. Users have to log on to the system as a system administrator before they install ISPSoft.
(2) Insert the USB flash drive which is an attachment to a UT series starter kit into the computer, and then double-click StarterKit.exe in the USB flash drive.
2-14
(3) Click Install Software.
Chapter 2 Installation of UT Series Starter Kits
2_
(4) Click Install COMMGR Ver 1.04. (Alternatively, the users can download the installation program from the official website of Delta http://www.deltaww.com
.
(Before the installation program downloaded from the website is installed, it needs to be decompressed.))
2-15
_2
Starter Kit Manual
(5) Click Next in the COMMGR 1.04 - InstallShield Wizard window.
(6) Type information in the User Name box and the Organization box, and then click
Next.
(7) Check installation settings, and then click Install.
2-16
Chapter 2 Installation of UT Series Starter Kits
(8) After COMMGR is installed, a shortcut to the program will be created on the Start menu. Click Finish to complete the installation.
2_
(9) Start COMMGR. (Click the Start button All Programs Delta Industrial
Automation Communication COMMGR COMMGR.)
2-17
_2
Starter Kit Manual
2.4
Installing DOPSoft
Users have to boot a computer, and log on to Windows 7 as a system administrator.
Before they install DOPSoft, they have to click Control Panel, click User Accounts and
Family Safety, click User Accounts, click Change User Account Control settings, move the slider all the way down to Never Notify, and click OK.
After the users finish changing User Account Control settings, they can install DOPSoft by following the instructions below.
2-18
Chapter 2 Installation of UT Series Starter Kits
(1) Insert the USB flash drive which is an attachment to a UT series starter kit into the computer, and then double-click StarterKit.exe in the USB flash drive.
2_
(2) Click Install Software.
2-19
_2
Starter Kit Manual
(3) Click Install DOPSoft Ver 2.00.04. (Alternatively, the users can download the installation program from the official website of http://www.deltaww.com
. (Before the installation program downloaded from the website is installed, it needs to be decompressed.))
(4) Please select a language. The software provides three languages. They are traditional Chinese, simplified Chinese, and English. The users have to click OK after they select a language.
2-20
Chapter 2 Installation of UT Series Starter Kits
(5) If the users want to install DOPSoft in a different folder, they have to click Browse, and select another folder. If the users want to install DOPSoft in the default folder, they have to click Next.
2_
(6) Please check whether the DOPSoft checkbox is selected, and then click Install.
2-21
_2
Starter Kit Manual
(7) After Install is selected, the progress bar which is used to visualize the progression of the installation of DOPSoft will be displayed.
(8) Click Next in the Device Driver Installation Wizard window.
2-22
Chapter 2 Installation of UT Series Starter Kits
(9) The Windows Security dialog box appears when the device driver needed is installed. Please click Install this driver software anyway.
2_
(10) Click Finish after the installation of the device driver is complete.
2-23
_2
Starter Kit Manual
(11) Select the I accept the terms in the license agreement option button in the
Microsoft SQL Server Compact 3.5 SP2 ENU window, and then click Next.
(12) Check installation settings, and then click Install.
2-24
Chapter 2 Installation of UT Series Starter Kits
2_
(13) Click Finish after the installation of Microsoft SQL Compact is complete.
2-25
_2
Starter Kit Manual
(14) After the installation of DOPSoft is complete, the progress bar will indicate that the installation of the software is complete. Please click Close to close the installation screen.
(15) Start DOPSoft. (Click the Start button All Programs Delta Industrial
Automation HMI DOPSoft x.xx.xx DOPSoft x.xx.xx, or click the desktop.)
on
2-26
Chapter 2 Installation of UT Series Starter Kits
2.5
Installing DCISoft
(1) Insert the USB flash drive which is an attachment to a UT series starter kit into the computer, and then double-click StarterKit.exe in the USB flash drive.
2_
(2) Click Install Software.
2-27
_2
Starter Kit Manual
(3) Click Install DCISoft Ver. 1.12 (UT-12SE-A). (Alternatively, the users can download the installation program from the official website of http://www.deltaww.com
. (Before the installation program downloaded from the website is installed, it needs to be decompressed.))
(4) Click Next in the DCISoft 1.12 Setup window.
2-28
Chapter 2 Installation of UT Series Starter Kits
(5) If the users want to install DCISoft in a different folder, they have to click Browse, and select another folder. If the users want to install DCISoft in the default folder, they have to click Install.
2_
(6) After DCISoft is installed, shortcuts to the program will be created on the desktop and the Start menu. Click Finish to complete the installation.
2-29
Starter Kit Manual
_2
(7) Start DCISoft. (Click the Start button All Programs Delta Industrial
Automation Communication DCISoft x.xx DCISoft x.xx, or click the desktop.)
on
2-30
Chapter 2 Installation of UT Series Starter Kits
2.6
Installing the UC-PRG020-12A Driver
(1) Insert the USB flash drive which is an attachment to a UT series starter kit into the computer, and double-click StarterKit.exe in the USB flash drive.
2_
(2) Click
Install Software.
2-31
_2
Starter Kit Manual
(3) Click Install UC-PRG020-12A Driver (UT-14SS2-A) (Alternatively, the users can download the installation program from the official website of http://www.deltaww.com
.
(Before the installation program downloaded from the website is installed, it needs to be decompressed.))
(4) Click UC-PRG020-12A Driver (32-Bit) or UC-PRG020-12A Driver (64-Bit) according to the Windows operating system used.
2-32
(5) Click Next.
Chapter 2 Installation of UT Series Starter Kits
2_
(6) Select the I accept this agreement option button, and then click Next.
2-33
Starter Kit Manual
_2
(7) Click Finish.
(8) After UC-PRG020-12A is connected to the computer,
Silicon Labs CP210x USB to
UART Bridge (COMx) will appear in the Device Manager window. COMx represents the communication port connected to UC-PRG020-12A.
2-34
3
Chapter 3 Example Programs
Table of Contents
Example 1 .................................................................. 3-3
Creating a Project for a PLC ..................................... 3-3
Creating a Main Program ......................................... 3-6
Setting COMMGR for UT-14SS2-A ........................... 3-15
Downloading a PLC Project .................................... 3-18
Monitoring a Program ........................................... 3-21
Using a PLC with an I/O Simulator Board ................. 3-23
Writing a Program for an HMI ................................ 3-24
Compiling and Downloading an HMI Program ........... 3-47
Using an HMI with an I/O Simulator Board ............... 3-49
Example 2 ................................................................ 3-51
Project Requirements ........................................... 3-51
Project Development ............................................ 3-52
Writing a Program for an HMI ................................ 3-54
Creating a Project for a PLC ................................... 3-73
Setting COMMGR for UT-12SE-A ............................. 3-86
Downloading a PLC Project .................................... 3-89
Setting Ethernet Parameters for DVP12SE11R .......... 3-91
3-1
Testing a Project .................................................. 3-95
3-2
Chapter 3 Example Programs
3.1
Example 1
The steps of writing programs in ISPSoft and DOPSoft are described below. After users follow the steps introduced below, they will know how to write programs for a PLC and an
HMI. The example below is applicable to UT series starter kits. The starter kit used in the example is UT-14SS2-A.
UC-PRG015-02A(1.5M)
D+: Red
D-: Black
RS-485 Cable(1M) Male DB9
3_
PC
UC-PRG020-12A(2M) PLC
UC-MS020-06A(2M)
3.1.1
Creating a Project for a PLC
Male DB9
HMI 1
After the users install hardware and understand the control logic in the example, they can prepare to write a program.
In the example, the PLC used is DVP14SS211R.
Please complete the step in section 2.1.2 before writing the example program shown below.
Step 1: Start ISPSoft. (Click the Start button All Programs Delta Industrial
Automation PLC ISPSoft x.xx ISPSoft x.xx, or click on the desktop.)
Welcome screen
3-3
_3
Starter Kit Manual
Main screen
Step 2: After is clicked, a new project will be added. The project name typed in the
Project Name box is “NEW”. Select SS2 in the PLC Type drop-down list box, leave the default path in the Drive/Path box unchanged, and click OK.
3-4
Chapter 3 Example Programs
After OK in the Create a New Project window is clicked, a project environment will be displayed (the project name “NEW” will appear in the upper left corner of the project environment).
3_
3-5
_3
Starter Kit Manual
3.1.2
Creating a Main Program
Step 1: Creating a POU
Creating a main program. Right-click
ISPSoft to add a new POU.
in the project management area in
Note: Please refer to Chapter 5 in ISPSoft User Manual for more information about creating a POU.
Type “Prog_Main” in the POU Name box, select Ladder Diagram (LD) in the Language section, type “Main Program” in the POU Comment box, ,and click OK.
The users can see the Prog_Main window on the main screen.
3-6
Chapter 3 Example Programs
Step 2: Writing a program
The users can prepare to write a main program. In order to scan a program conveniently, the users can develop the habit of writing comments. If the users want to write network comments, they have to click .
3_
Type a comment in the comment box for network 1. If the users want to start a new line of text at a specific point, they can press Shift+Enter on the keyboard.
The users can begin to edit program code. The programming language used here is a
3-7
Starter Kit Manual ladder diagram. Please click , and then move the mouse cursor to the red frame. If the mouse cursor becomes , the users can click the left mouse button.
_3
Click ???, and type “X0”.
After the users click the line at the right side of the X0 contact, the red frame on the X0 contact will move to the line.
3-8
Click
Chapter 3 Example Programs
, move the mouse cursor to the red frame, and click the left mouse button.
3_
Click ???, and type “Y0”.
Click to add a new network.
Create the following program in the same way.
3-9
_3
Starter Kit Manual
Click in the project management area in ISPSoft, click Basic Instructions, and drag CNT to the red frame.
If the users do not know the usage of CNT, they can click the CNT instruction block, press
F1 on the keyboard, and refer to the information in the PLC Instructions and Special
Registers Reference window.
3-10
Chapter 3 Example Programs
Click ??? in the box at the left side of S1, and type “C0”. Click ??? in the box at the left side of S2, and type “5”.
3_
Click to add a new network, the input contact C0, and the output coil Y1.
Click to add a new network, and the input contact X2.
3-11
_3
Starter Kit Manual
Type “TMR” directly.
3-12
Chapter 3 Example Programs
Click to open the API List window. The API List window helps the users edit the parameters of TMR easily. In the API List window, select T in the S1 drop-down list box, select K in the S2 drop-donw list box, select 0 in the upper Component Value box, select
50 in the lower Component Value box, and click OK.
3_
After the setting of the parameters of TMR is complete, the program shown below will appear.
Create the program below.
3-13
_3
Starter Kit Manual
Step 3: Compiling the program created
The writing of the program will be complete after the users save the file.
The users can click to check the syntax of the program, and click to compile the project. The compiling of a project is different from the checking of the syntax of a program in that it is composed of the checking of syntax, and the compiling of all programs and function blocks.
3-14
Chapter 3 Example Programs
3.1.3
Setting COMMGR for UT-14SS2-A
Step 1: Start COMMGR. (Click the Start button All Programs Delta Industrial
Automation Communication COMMGR COMMGR.)
Step 2: After COMMGR is started, the icon representing COMMGR will appear in the notification area. Double-click the icon representing COMMGR to open the
COMMGR window.
3_
3-15
_3
Starter Kit Manual
Step 3: After the COMMGR window is opened, users can begin to set a driver.
UC-RRG020-12A cable is used to connect the computer and a PLC here, and therefore an RS-232 driver needs to be created. First, click Add. Then, set an
RS-232 driver in the way shown below.
Users can type a driver name in the Driver Name box. Special marks can not be used except _.
Select RS232 in the Type drop-down list box in the Connection Setup section.
Select an RS- 232 communication port in the COM Port drop-down list box. Each item in the COM Port drop-down list box is composed of a device name and a communication port number. The communication ports in the COM Port drop-down list box are the same as the communication ports in the Device Manager window.
The communication format can be ASCII or RTU.
The communication protocol for exchanging data through a communication port selected must be the same as the communication protocol for exchanging data through
3-16
Chapter 3 Example Programs a communication port on a device connected. If users click Default, all communication parameters will return to the default values.
If users do not know the communication protocol for exchanging data through a communication port on a device connected, the users can connect the device to an
RS-232 communication port selected with an RS-232 cable, and click Auto-detect to automatically detect the communication protocol. If the communication protocol is detected successfully, the related communication parameters in the Driver Properties window are set. However, when the communication protocol is detected automatically, the COM Port parameter and the ASCII/RTU parameter are not detected. As a result, the users have to set the COM Port parameter and the ASCII/RTU parameter before clicking Auto-detect.
3_
Users can select the number of times the sending of a command is retried if a connection error occurs in the Time of Auto-retry box, and select an interval of retrying the sending of a command in the Time Interval of Auto-retry box.
*. When the Driver Properties window is opened, the information about the communication ports in the Device Manager window is retrieved once. However, the information in the COM Port drop-down list box will not be updated. If a device is added to the computer system after the Driver Properties window is opened, the device will not be displayed in the COM Port drop-down list box. Users have to close the Driver Properties window, and open it again.
Step 4: After the setting of an RS-232 driver is complete, the RS-232 driver will appear in the COMMGR window. If the computer is normally connected to the PLC used,
OK will appear in the Status column.
If the users click or in the COMMGR window, the COMMGR window will disappear from the desktop, and will be visible only as an icon in the notification area.
3-17
_3
Starter Kit Manual
3.1.4
Downloading a PLC Project
Setting communication
After the setting of COMMGR is complete, users can set communication in ISPSoft.
First, click Communication Settings… on the Tools menu to open the
Communication Setting window.
In the Communication Setting window, select RS-232 in the Driver drop-down list box, and click OK.
The users can see the information about the driver which is connected on the lower right corner of the status bar.
3-18
Chapter 3 Example Programs
Downloading a PLC program
After users write a PLC program, they can prepare to download the program. The program created here has been compiled. If the program is modified, the users can click to check the program. After the compiling of the program is successful, the us ers can click to download the program.
3_
There are several checkboxes in the Transfer Setup window. Object code is a necessary condition for the operation of a PLC, and therefore the Object Code checkbox is selected. In order to maintain the program conveniently, the Program checkbox and the Comments checkbox are selected in this example. The project will be backed up onto the PLC connected, and the program will not be lost. Besides, if the users want to modify the program, and forget to bring the program, they can upload the program from the PLC to the computer to modify the program.
After the users click OK in the Transfer Setup window, the downloading of the program will be complete.
3-19
_3
Starter Kit Manual
After the program is downloaded, the users can click if they want to run the PLC.
Alternatively, the users can move the RUN/STOP swithc on the PLC to the RUN position.
3-20
Chapter 3 Example Programs
3.1.5
Monitoring a Program
When a program is executed, users can monitor the program to understand the current logical control state of the system, or modify the values in some devices to test the system. The monitoring of a program is described below.
Monitoring a program
Open the Prog_Main window, and click .
3_
After users click , the program will be monitored. The program is composed of a logic program, and the information about devices. (The states of Boolean devices are indicated by green backgrounds (On) or white backgrounds (Off), and the information about other devices is indicated by values or text.)
If a device corresponds to an actual I/O device, Set On and Set Off can not be used to change the state of the device because the state of the actual I/O device immediately overwrites the value which is set, and Force On and Force Off can be used instead. X0 is forced to be On here.
3-21
_3
Starter Kit Manual
The state of X0 is changed, and a lock symbol indicating that the device is forced to be On appears.
After the system is tested, the users have to cancel the forced state of the device so that the PLC can return to normal.
3-22
Chapter 3 Example Programs
3.1.6
Using a PLC with an I/O Simulator Board
3_
1. If X0 is turned from Off to On, Y0 will be On, and the red light on the I/O simulator board will be turned On.
2. If X0 is turned from On to Off, Y0 will be Off, and the red light on the I/O simulator board will be turned Off.
3. If X1 is turned from Off to On five times, C0 will be turned from Off to On, Y1 will be turned from Off to On, and the yellow light on the I/O simulator board will be turned
On.
4. If X2 is turned from Off to On, T0 will begin to measure time. After the time that T0 measures reaches 5 seconds, T0 will be turned from Off to On, Y2 will be turned from
Off to On, and the green light on the I/O simulator board will be turned On.
5. If X2 is turned from On to Off, T0 will be Off, Y2 will be Off, and the green light on the
I/O simulator board will be tunred Off.
3-23
_3
Starter Kit Manual
3.1.7
Writing a Program for an HMI
The Delta software which supports DOP-B07S410 is DOPSoft. Please refer to DOPSoft
User Manual for more information about the usage of DOPSoft.
In the example, the HMI used is DOP-B07S410.
Please complete the step in section 2.1.3 before writing the example program shown below.
Step 1: Start DOPSoft. (Click the Start button All Programs Delta Industrial
Automation HMI DOPSoft x.xx.xx DOPSoft x.xx.xx, or click on the desktop.)
Welcome screen
3-24
Main screen
Chapter 3 Example Programs
3_
3-25
_3
Starter Kit Manual
Step 2: After is clicked, a new project will be added. Select DOP-B series in the
Series drop-down list box, click B07S410 on the HMI list, leave the default project name in the Project Name box unchanged, and click Next.
Step 3: The setting of RS-232 communication and RS-485 communication is described below.
3-26
Chapter 3 Example Programs
RS-232 communication
1. In the Project Wizard window, type “DVP14SS211R” in the Link Name box, select Delta DVP PLC in the Controller drop-down list box, select RS232 in the
Interface drop-down list box, select 7 Bits in the Data Bits drop-down list box, select 1 Bit in the Stop Bits drop-down list box, select 9600 in the Baud Rate drop-down list box, select Even in the Parity drop-down list box, select 1 in the
PLC Station box, and click Finish.
3_
2. Setting a communication format for DVP14SS211R:
COM1 is an RS-232 port. The default communication format of COM1 is described below.
Baud rate: 9600 bps
Data length: 7 data bits
Parity: Even
Stop bit: 1 stop bit
Transmission mode: ASCII
3-27
Starter Kit Manual
_3
Please refer to section 4.4.3 for more information about setting a communicaiton format.
Note: If users want to change the default communication format of COM1 on
DVP14SS211R, they have to add the program above to the main program in DVP14SS211R, and move the RUN/STOP switch on DVP14SS211R to the RUN position. If the users want to connect a PC to COM1 on
DVP14SS211R, the communication format set in COMMGR needs to be the same as the communicaiton format of COM1.
3. Please refer to section 2.1.4 for more information about using an RS-232 cable to connect DVP14SS211R to DOP-B07S410.
RS-485 communication
1. In the Project Wizard window, type “DVP14SS211R” in the Link Name box, select Delta DVP PLC in the Controller drop-down list box, select RS485 in the
Interface drop-down list box, select 7 Bits in the Data Bits drop-down list box, select 1 Bit in the Stop Bits drop-down list box, select 9600 in the Baud Rate drop-down list box, select Even in the Parity drop-down list box, select 1 in the
PLC Station box, and click Finish.
3-28
Chapter 3 Example Programs
2. Setting a communication format for DVP14SS211R:
COM2 is an RS-485 port. The default communication format of COM2 is described below. If users want to modify the communication format of COM2, they can refer to section 4.4.3 for more information.
Baud rate: 9600 bps
Data length: 7 data bits
Parity: Even
Stop bit: 1 stop bit
Transmission mode: ASCII
3. Please refer to section 2.1.4 for more information about using an RS-485 cable to connecting DVP14SS211R to DOP-B07S410.
After Finish in the Project Wizard window is clicked, a project environment will be displayed.
3_
3-29
_3
Starter Kit Manual
The steps of editing an HMI screen are described below.
Drag Multistate Indicator in the Indicator section in the Element Tool window to the screen, and then drop it.
Double-click the element to open the Multistate Indicator window.
3-30
Set the parameter in the Memmory section.
Chapter 3 Example Programs
3_
3-31
_3
Starter Kit Manual
Select 0 in the State drop-down list box, and then set the parameters in the Style section.
3-32
Chapter 3 Example Programs
Click the Picture tab, select $3DFineSW2State.pib in the Picture Bank Name drop-down list box, and click SW2State_058.bmp in the Select Picture window.
3_
3-33
_3
Starter Kit Manual
3-34
Chapter 3 Example Programs
Select 1 in the State drop-down list box, and then set the parameters in the Picture section.
3_
After OK in the Multistate Indicator window is clicked, the screen shown below will appear.
3-35
Starter Kit Manual
Adjust the size of the element.
_3
The editing of the element is complete.
Create a text box.
3-36
Chapter 3 Example Programs
Double-click the text box to open the Text window. In the Text window, click the Text tab, and type “X0” in the Text section.
3_
3-37
Starter Kit Manual
Create the X1 indicator and the X2 indicator shown below in the same way.
_3
Drag Multistate Indicator in the Indicator section in the Element Tool window to the screen, and then drop it.
3-38
Chapter 3 Example Programs
Double-click the element to open the Multistate Indicator window. Set the parameter in the Memmory section in the Multistate Indicator window.
3_
3-39
_3
Starter Kit Manual
Click the Picture tab, select $3DLamp2State.pib in the Picture Bank Name drop-down list box, and click Lamp2State_02.bmp in the Select Picture window.
3-40
Chapter 3 Example Programs
3_
3-41
_3
Starter Kit Manual
Select 1 in the State drop-down list box, click the Picture tab, and set the parameters in the Picture section.
Adjust the size of the element.
Create the text “Y0”.
3-42
Chapter 3 Example Programs
Create the Y1 indicator and the Y2 indicator shown below in the same way.
Drag Numeric Display in the Data Display section in the Element Tool window to the screen, and then drop it.
3_
3-43
_3
Starter Kit Manual
Double-click the element to open the Numeric Display window.
3-44
Chapter 3 Example Programs
Set the parameters in the Memmory section, the Style section, and the Detail section.
3_
Create the text “C0”.
3-45
Starter Kit Manual
Create a numeric display which represents T0 in the same way.
_3
The writing of the program will be complete after the users save the file.
3-46
Chapter 3 Example Programs
3.1.8
Compiling and Downloading an HMI Program
After the HMI program above is created, users can download it to DOP-B07S410. Before the HMI program created above is downloaded, the users have to compile it. After the users click Compile on the Tools menu, or click , the HMI program created above will be compiled, and the information about the result of the compiling of the program will be displayed in the Output window.
3_
After the users compile the HMI program created above, they can click the screen and the recipes in the program.
to donwload
If the HMI is used for the first time or the firmware of the HMI is old, the firmware of the
HMI will be automatically updated after is clicked. Please see the figure below.
3-47
Starter Kit Manual
A progress bar appears on the screen of the HMI when the firmware of the HMI is updated.
_3
The users have to click OK after the updating of the firmware of the HMI is complete.
After the firmware of the HMI is updated, the HMI will read the data which needs to be downloaded.
3-48
Chapter 3 Example Programs
After the downloading of the program is complete, the screen shown below will appear.
3.1.9
Using an HMI with an I/O Simulator Board
3_
1. If X0 is turned from Off to On, Y0 will be On. If X0 is turned from On to Off, Y0 will be
Off.
3-49
Starter Kit Manual
2. If X1 is turned from Off to On five times, C0 will be turned from Off to On, abd Y1 will be turned from Off to On.
_3
3. If X2 is turned from Off to On, T0 will begin to measure time. After the time that T0 measures reaches 5 seconds, T0 will be turned from Off to On, and Y2 will be turned from Off to On. If X2 is turned from On to Off, T0 will be Off, and Y2 will be Off.
3-50
Chapter 3 Example Programs
3.2
Example 2
Generally speaking, there are programmers who are responsible for writing a PLC program and an HMI program during the process of developing a project. They work together to meet the requirements of the project.
The example below helps users understand how to writing a PLC program and an HMI program during the process of developing a project. The starter kit used in the following example is UT-12SE-A.
UC-PRG015-02A(1.5M)
D+: Red
UC-PRG015-01A(1.5M)
PC
PLC
3.2.1
Project Requirements
D-: Black
RS-485 Cable(1M) Male DB9
UC-PRG030-20A(3M)
HMI
1. There are five rooms, and they are numbered from 101 to 105. If a customer in a room needs service, the customer can press the call button in the room to call an attendant. After a call button is pressed, the number of rooms calling will increase by one.
3_
2. If several rooms call, the display on the service counter will show the number of rooms calling, and the order in which the rooms call.
3. If an attendant checks a room, and then presses the check button on the display, the number of rooms calling will decrease by one, and the next room number will be shown on the display.
4. After all the rooms calling are checked, the number of rooms calling shown on the display will be 0.
5. After an attendant presses the reset button on the display, all data will be cleared.
3-51
Starter Kit Manual
Please see the figure below for more information.
Room No.
Rooms
_3
Number of rooms calling
Room 101
Room102
Room 103 Room 104
Room 105
Check
Reset
Room call control center
3.2.2
Project Development
After users understand project requirements, they need to discuss and plan a project. The project needs to be composed of a PLC program and an HMI program. Besides, the users have to select PLC devices and HMI elements.
PLC
1. There are five rooms and five call buttons.
2. The rooms are numbered from 101~105.
3. If an attendant checks a room, and then presses the check button on the display on the service counter, the number of rooms calling will decrease by one, and the next room number will be shown on the display.
4. After all the rooms calling are checked, the number of rooms calling shown on the display on the service counter will be 0.
5. After an attendant presses the reset button on the display, all data will be cleared.
6. Default Ethernet IP address: 192.168.1.5
HMI
1. The display on the service counter shows a room number.
2. The display on the service counter shows the number of rooms calling.
3. There is one check button.
4. There is one reset button.
5. Default Ethernet IP address: 192.168.1.2
3-52
Chapter 3 Example Programs
Devices
PLC device
X0
X1
X2
X3
X4
M0
M1
D0
D1~D5
D10
D11
Function
X0 corresponds to the call button in room 101. X0 will be On if the call button in room 101 is pressed.
X1 corresponds to the call button in room 102. X1 will be On if the call button in room 102 is pressed.
X2 corresponds to the call button in room 103. X2 will be On if the call button in room 103 is pressed.
X3 corresponds to the call button in room 104. X3 will be On if the call button in room 104 is pressed.
X4 corresponds to the call button in room 105. X4 will be On if the call button in room 105 is pressed.
M0 corresponds to the check button on the display on the service counter. M0 will be On if the check button is pressed.
M1 corresponds to the reset button on the display on the service counter. M1 will be On if the reset button is pressed.
HMI element
-
-
-
-
-
Button
Button
The value in D0 indicates the number of rooms calling.
The values in D1~D5 indicate the rooms which have not been checked.
Numeric display
-
The value in D10 is a room number stored temporarily. -
The value in D11 indicates the room which is being checked.
(First in, first out)
Numeric display
The relation between PLC devices and HMI elements is shown below.
Room No. D11
Rooms
Number of rooms calling D0
M0 M1
Check
Reset
Room call control center
Room 101
X0
Room102
X1
Room 103
X2
Room 104
Room 105
X3 X4
3_
3-53
_3
Starter Kit Manual
3.2.3
Writing a Program for an HMI
In the example, the HMI used is DOP-B07E415.
After users discuss device requirements, they have to edit HMI elements.
Please complete the step in section 2.1.6 before writing the example program shown below.
Planning elements:
M0: Check button
M1: Reset button
D0: The value in D0 indicates the number of rooms calling.
D11: The value in D11 indicates the room which is being checked.
Step 1: Start DOPSoft. (Click the Start button All Programs Delta Industrial
Automation HMI DOPSoft x.xx.xx DOPSoft x.xx.xx, or click on the desktop.)
Welcome screen
3-54
Chapter 3 Example Programs
Main screen
3_
Step 2: After is clicked, a new project will be added. Select DOP-B series in the
Series drop-down list box, click B07E415 on the HMI list, leave the default project name in the Project Name box unchanged, and click Next.
3-55
_3
Starter Kit Manual
Step 3: The setting of Ethernet communication and RS-485 communication is described below.
Ethernet communication
1. Setting a communication format for DOP-B07E415:
Click Ethernet, and then create a connection.
Type the link name “DVP_SE”, type “192.168.1.5 in the Controller IP box, select
502 in the Port box, and set the parameters in the Main section.
3-56
Chapter 3 Example Programs
Click the Local Host tab, type “192.168.1.2” in the HMI IP Address box, type
“255.255.255.0” in the Subnet Mask box, type “192.168.1.1” in the Gateway IP box, and click Finish.
3_
2. Setting a communication format for DVP-12SE11R:
Start DCISoft, and click Communication Setting on the Tools menu to open the
Communication Setting window. Users can select RS232 or Ethernet in the
Communication Type drop-down list in the Communication Setting window.
3-57
_3
Starter Kit Manual
A. Using the USB port on DVP12SE11R
Before users use UC-PRG015-01A to connect the USB port on
DVP12SE11R to a USB port on a PC, they have to select a COM port for the
USB driver created for DVP12SE11R in COMMGR.
Then, the users have to select RS232 in the Communication Type drop-down list in the Communication Setting window in DCISoft. The COM port selected in the COM Port drop-down list box in the Protocol section needs to be the same as the COM port selected for the USB driver created for DVP12SE11R in COMMGR.
3-58
Chapter 3 Example Programs
B. Using the Ethernet port on DVP12SE11R
UC-PRG030-20A can be used to connect the Ethernet port on DVP12SE11R to an Ethernet port on a PC.
In the Communication Setting window in DCISoft, select Ethernet in the
Communication Type drop-down list box, leave the default IP address in the
Assign IP Address section unchanged, and click OK.
3_
Click after the setting of the parameters in the Communication Setting window is complete.
3-59
_3
Starter Kit Manual
3-60
Chapter 3 Example Programs
Double-click the module in DCISoft to open the DVP12SE window.
Click the Basic tab in the DVP12SE window, set the parameters in the
Network Setup section, and click OK.
3_
3. Please refer to section 2.1.7 for more information about using the Ethernet cable
UC-PRG030-20A to connecting DVP12SE11R to DOP-B07E415.
3-61
_3
Starter Kit Manual
RS-485 communication
1. In the Project Wizard window, type “DVP12SE11R” in the Link Name box, select
Delta DVP PLC in the Controller drop-down list box, select RS485 in the
Interface drop-down list box, select 7 Bits in the Data Bits drop-down list box, select 1 Bit in the Stop Bits drop-down list box, select 9600 in the Baud Rate drop-down list box, select Even in the Parity drop-down list box, select 1 in the
PLC Station box, and click Finish.
2. Setting a communication format for DVP12SE11R:
COM2 and COM3 on DVP12SE11R are RS-485 ports. The default communication formats of COM2 and COM3 are described below.
Baud rate: 9600 bps
Data length: 7 data bits
Parity: Even
Stop bit: 1 stop bit
Transmission mode: ASCII
3. Please refer to section 2.1.7 for more information about using an RS-485 cable to connecting DVP12SE11R to DOP-B07E415.
3-62
Chapter 3 Example Programs
Editing a screen:
Drag Numeric Display in the Data Display section in the Element Tool window to the screen, and then drop it.
3_
Double-click the element to open the Numeric Display window.
3-63
_3
Starter Kit Manual
Set the parameter in the Memmory section in the Numeric Display window.
3-64
Chapter 3 Example Programs
Set the parameters in the Style section and the Detail section.
3_
Click the Text tab, and then set the parameters in the Text section.
3-65
Starter Kit Manual
After OK in the Numeric Display window is clicked, the numeric display shown below will appear.
Create the text “Number of rooms calling”.
_3
Create a numeric display correpsonding to D11.
Drag Momentary in the Button section in the Element Tool window to the screen, and then drop it.
3-66
Chapter 3 Example Programs
Double-click the element to open the Momentary window.
3_
Set a write address in the Memory section.
3-67
Starter Kit Manual
_3
Set a read address in the Memory section in the same way.
3-68
Chapter 3 Example Programs
Click the Text tab, type “Check” in the Language 1 cells, and set a text format.
Select 0 in the State drop-down list box, click the Picture tab, and set the parameters in the Picture section.
3_
3-69
Starter Kit Manual
_3
Select 1 in the State drop-down list box, and set the parameters in the Picture section.
3-70
Chapter 3 Example Programs
3_
Click OK in the Momentary window.
3-71
Starter Kit Manual
Adjust the size of the element.
_3
Create a reset button in the same way.
After the screen is beautified, the users can get the screen shown below.
3-72
Chapter 3 Example Programs
3.2.4
Creating a Project for a PLC
In the example, the PLC used is DVP12SE11R.
Please complete the step in section 2.1.5 before writing the example program shown below.
After users discuss control requirements, they have to write a PLC program.
Planning hardware
After a project is created, the users can plan hardware. The hardware which needs to be planned for the example is described below.
3_
Call button in room 101~room 105 X0~X4
Check button M0
Reset button M1
Indicating the number of rooms calling D0
Indicating the rooms which have not been checked D1~D5
Room number stored temporarily D10
Indicating the room which is being checked (First in, first out) D11
X0~X4 can be used with the I/O simulator board.
Creating global symbols
In order to make a program more readable and the connection to a SCADA system more convenient, I/O addresses are generally assigned global symbols. Users can use symbols when they write a program. Besides, a global symbol table can be imported/exported. If a medium-sized/large-sized system which is equipped with many inputs and outputs is used, users can use Microsoft Excel to make the editing of a program for the system more convenient.
3-73
Starter Kit Manual
_3
The global symbols which need to be created for the example are listed below.
Address
X0
Global symbol table
Hardware points (for inputs/outputs in a PLC)
Identifier Data type
Room101 BOOL
X1
X2
X3
X4
M0
Room102
Room103
Room104
Room105
Check_Button
BOOL
BOOL
BOOL
BOOL
BOOL
M1
D0
D11
Reset_Button
Number_of_Rooms_Calling
Displaying_Room_Number
BOOL
WORD
WORD
Double-click
Global Symbols window.
in the project management area in ISPSoft to open the
3-74
Chapter 3 Example Programs
Double-click the blank to open the Add Symbol window. Type “Room101” in the
Identifier box, type “X0” in the Address box, type a comment in the Comment… box, leave the default values in the Type… box and the Initial box unchanged, and click OK.
3_
The users can see a new piece of data in the Global Symbols window.
The users can create the data in the global symbol table above in the Global Symbols window in the same way.
3-75
_3
Starter Kit Manual
Creating a main program
After users create global symbols, they can create a main program. Right-click in the project management area in ISPSoft to add a new POU.
3-76
Type “Prog_Main” in the POU Name box, type “Main Program” in the POU Comment box, and click OK.
Chapter 3 Example Programs
Step 1: Edit call buttons and corresponding room numbers. The number corresponding to the room which calls is stored in D10 temporarily.
Create a call button corresponding to room 101.
After the call button is pressed, the room number corresponding to the button will be sent to the service counter instantly. Therefore, the contact created is rising edge-triggered.
3_
3-77
_3
Starter Kit Manual
Write the program shown below.
Step 2: Room numbers are stored in D1~D5 according the order in which the rooms corresponding to the room numbers call.
The instructions SFWR and SFRD are used to implement FIFO. In this project, the room which calls first is checked first. FIFO is an acronym for First In, First Out.
3-78
Chapter 3 Example Programs
Notes:
The usage of SFWR is described below.
S: Source device
D: Head address of a data stack
n: Length of a data stack
1. The value in a source device S is written to a FIFO data stack. The position of insertion into the stack is automatically calculated by the PLC used.
3_
2. The instruction defines the values in the n word devices starting from D as a FIFO data stack, and designate D as a pointer.
3. If SFWR is executed, the value in the pointer D will increase by one, and the value in
S will be written to the device designated by the pointer D. If the value in the pointer D exceeds n-1, the execution of the instruction will stop, and the carry flag M1022 will be On.
4. This instruction can be used with SFRD for the reading/writing of a FIFO data stack.
5. Example:
After X0 is turned from Off to On, the value in the pointer D0 will become 1, and the value in D20 will be written to D1. If the value in D20 is changed, and X0 is turned from Off to On again, the value in the pointer D0 will become 2, and the value in D20 will be written to D2.
If SFWR is executed once, the writing of a value will follow the steps ~.
The value in D20 is sent to D1.
The value in D0 becomes 1.
3-79
_3
Starter Kit Manual
Source
D20 n=10
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Pointer
D 0 = 3 2 1
The usage of SFRD is described below.
S: Head address of a data stack
D: Destination device
n: Length of a data stack
1. The source device S is the head address of a FIFO data stack. Its value indicates the last entry added to a FIFO data stack.
2. If SFRD is executed, the value in S+1 will be moved to D, the values in S+n-1~S+2 will be moved to S+n-2~S+1, and the value in S will decrease by one.
3. If the value in the pointer S is 0, the execution of the instruction will stop, and the carry flag M1022 will be On.
4. Example:
After X0 is turned from Off to On, the value in D1 will be sent to D21, the values in
D9~D2 will be moved to D8~D1 (the value in D9 will be unchanged), and the value in D0 will decrease by one.
If SFRD is executed once, the reading of a value will follow the steps ~.
The value in D1 is sent to D21.
The values in D9~D2 are moved to D8~D1.
The value in D0 decreases by one. n=10
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Pointer
D21
The value in D1 is read.
3-80
Chapter 3 Example Programs
After Room101 is turned from Off to On, SFWR will be used to send the room number
101 to Number_of_Rooms_Calling. (D0 functions as a pointer. After SFWR is executed, the value in D0 will become 1, and the value in D10 (the value 101) will be written to D1.)
Click , and move the mouse cursor to the position under the contact marked with
“Room101”. After the mouse cursor becomes , the users have to click the left mouse button, type “Room102” in ???, and change the contact added into a rising edge-triggered contact.
3_
3-81
_3
Starter Kit Manual
After Room102 is turned from Off to On, SFWR will be used to send the room number
102 to Number_of_Rooms_Calling. (D0 functions as a pointer. After SFWR is executed, the value in D0 will become 2, and the value in D10 (the value 102) will be written to D2.)
Write the following program. Room numbers are stored in D1~D5 according the order in which the rooms corresponding to the room numbers call, and the number of rooms calling is stored in Number_of_Rooms_Calling.
Step 3: Use SFRD to display a room number.
After an attendant presses the check button on the display on the service counter, a room number will be sent to Displaying_Room_Number, and the value in
Number_of_Rooms_Calling will decrease by one.
3-82
Chapter 3 Example Programs
Step 4: Create a reset button.
After the reset button on the display on the service counter is pressed, the values in
Number_of_Rooms_Calling, D1~D5, and Displaying_Room_Number will be cleared.
Click , move the mouse cursor to the red frame, and click the left mouse button.
3_
Type “Displaying_Room_Number” in ???, and change the output coil into a reset coil.
3-83
_3
Starter Kit Manual
The complete program is shown below.
3-84
Chapter 3 Example Programs
3_
3-85
_3
Starter Kit Manual
The writing of the program will be complete after the users save the file.
The users can click to check the syntax of the program, and click to compile the project. The compiling of a project is different from the checking of the syntax of a program in that it is composed of the checking of syntax, and the compiling of all programs and function blocks.
3.2.5
Setting COMMGR for UT-12SE-A
Step 1: Start COMMGR. (Click the Start button All Programs Delta Industrial
Automation Communication COMMGR COMMGR.)
3-86
Chapter 3 Example Programs
Step 2: After COMMGR is started, the icon representing COMMGR will appear in the notification area. Double-click the icon representing COMMGR to open the
COMMGR window.
3_
3-87
_3
Starter Kit Manual
Step 3: After the COMMGR window is opened, users can begin to set a driver. A USB cable is used to connect the computer and DVP12SE11R here, and therefore a
USB driver needs to be created. First, click Add. Then, create a USB driver in the way shown below.
Step 4: After a USB driver is created, it will appear in the COMMGR window. If the computer is normally connected to DVP12SE11R, OK will appear in the Status column.
If the users click or in the COMMGR window, the COMMGR window will disappear from the desktop, and will be visible only as an icon in the notification area.
3-88
Chapter 3 Example Programs
3.2.6
Downloading a PLC Project
Setting communication
After the setting of COMMGR is complete, users can set communication in ISPSoft.
First, click Communication Settings… on the Tools menu to open the
Communication Setting window.
3_
In the Communication Setting window, select SE_USB in the Driver drop-down list box, and click OK.
The users can see the information about the driver which is connected on the lower right corner of the status bar.
3-89
_3
Starter Kit Manual
Downloading a PLC program
After users write a PLC program, they can prepare to download the program. The program created here has been compiled. If the program is modified, the users can click to check the program. After the compiling of the program is successful, the users can click to download the program.
There are several checkboxes in the Transfer Setup window. Object code is a necessary condition for the operation of a PLC, and therefore the Object Code checkbox is selected. In order to maintain the program conveniently, the Program checkbox and the Comments checkbox are selected in this example. The project will be backed up onto the PLC connected, and the program will not be lost. Besides, if the users want to modify the program, and forget to bring the program, they can upload the program from the PLC to the computer to modify the program.
After the users click OK in the Transfer Setup window, the downloading of the program will be complete.
3-90
Chapter 3 Example Programs
3.2.7
Setting Ethernet Parameters for DVP12SE11R
After programs are created, DVP12SE11R can communicate with DOP-B07E415 through
Ethernet. Users have to set Ethernet parameters for DVP12SE11R. The use of DCISoft to set Ethernet parameters for DVP12SE11R is described below.
UC-PRG015-01A is used to connect a PC to DVP12SE11R, and DCISoft is used to set
Ethernet parameters.
Step 1: Start DCISoft, and click Communication Setting on the Tools menu to open the
Communication Setting window.
3_
3-91
Starter Kit Manual
Step 2: The driver created for DVP12SE11R in COMMGR is a USB driver, but the communication type selected in the Communication Type drop-down list box in the Communication Setting window needs to be RS232. The COM port selected in the COM Port drop-down list box needs to be the same as the COM port selected for the USB driver created for DVP12SE11R in COMMGR.
_3
Step 3: Click after the setting of the parameters in the Communication Setting window is complete.
3-92
Chapter 3 Example Programs
3_
3-93
Starter Kit Manual
Step 4: Double-click the module in DCISoft to open the DVP12SE window.
_3
Step 5: Click the Basic tab in the DVP12SE window, set the parameters in the Network
Setup section, and click OK.
3-94
Chapter 3 Example Programs
3.2.8
Testing a Project
After users write a PLC program and an HMI program, they can use UC-PRG030-20A to connect DVP12SE211R to DOP-B07E415, and then test the system.
3_
The functions which need to be tested are as follows.
1. Checking whether the room number dipslayed is correct
2. Checking whether the number of rooms calling is correct
3. Checking whether the the funciton of the check button is correct
4. Checking whether the function of the reset button is correct
After the functions listed above are tested, the programs created will be complete.
3-95
_3
Starter Kit Manual
MEMO
3-96
4
Chapter 4 Appendix
Table of Contents
Introduction of Hardware ........................................... 4-3
DVPPS01 ............................................................... 4-3
DVP14SS211R ....................................................... 4-3
DVP12SE11R ......................................................... 4-3
DOP-B07S410 ........................................................ 4-4
DOP-B07E415 ........................................................ 4-4
Profiles and Dimensions .............................................. 4-5
DVPPS01 ............................................................... 4-5
DVP14SS211R ....................................................... 4-5
DVP12SE11R ......................................................... 4-7
DOP-B07S410 ........................................................ 4-8
DOP-B07E415 ........................................................ 4-9
Connecting Communication Cables ........................... 4-10
Pin Definitions of Serial Communication ................... 4-10
Introduction of Communication Cables ..................... 4-12
Communication between a PLC and an HMI .............. 4-14
Wiring a Controller ................................................ 4-14
4-1
PLC Device Addresses ........................................... 4-15
Setting the Communication Parameters in a PLC ....... 4-18
Setting the Communication Parameters in an HMI ..... 4-21
Equivalent Circuit of an I/O Simulator Board ............ 4-23
Connecting to DVP14SS211R .................................. 4-23
Connecting to DVP12SE11R ................................... 4-24
Installing the DVP12SE11R Driver ............................ 4-25
4-2
Chapter 4 Appendix
4.1
Introduction of Hardware
4.1.1
DVPPS01
DVPPS01 is the best choice for DVP series PLCs. It supplies offer users 24VDC and 24W power with enhanced safety and efficiency.
4.1.2
DVP14SS211R
DVP14SS211R is a PLC equipped with eight digital inputs and six digital outputs. It offers various instructions. The size of the program memory in it is 8K steps. DVP14SS211R is small in size, and can be installed easily. It has an RS-232 port and an RS-485 port.
DVP14SS211R can be applied to spinning machines, conveyor belts
(rotational speed control), and winding machines (tension control).
4.1.3
DVP12SE11R
DVP12SE11R is a PLC equipped with eight digital inputs and four digital outputs. It offers various instructions. The program memory in it is 16K steps. DVP12SE11R has a mini USB port, an Ethernet port, and two
RS-485 ports. It supports DVP-S series left-side and right-side modules.
DVP12SE11R can be applied to remote device monitoring, production line monitoring, building automation, printing machines, and container fillers (recipe application).
_4
4-3
_4
Starter Kit Manual
4.1.4
DOP-B07S410
Specifications:
7-inch TFT LCD (800×480 pixels and 65536 colors)
There is one COM port. It supports RS-232,
RS-422, and RS-485.
Data can be transmitted/downloaded by means of RS-232 or USB.
Degree of resistance to water: IP65
4.1.5
DOP-B07E415
Specifications:
7-inch TFT LCD (800×600 pixels and 65536 colors)
There are three COM ports. They support
RS-232, RS-422, and RS-485.
Data can be transmitted/downloaded by means of RS-232, USB, or Ethernet.
It has a USB host, and can be directly connected to a USB disk, a printer, or a mouse.
It supports SD cards, Ethernet, and audio output (MP3 and WAV files).
Degree of resistance to water: IP65
It supports horizontal/vertical display.
4-4
Chapter 4 Appendix
4.2
Profiles and Dimensions
4.2.1
DVPPS01
Profile
2
5
90
1
3
36.5
1. POWER LED indicator
3. DIN rail clip
5. Input/Output terminal names
4.2.2
DVP14SS211R
Profile
25 .2
1
3
2
5
6
3
90
4
3
6
4
3
3
13.3
60
2. Input/Output terminals (Fixed terminal block)
4. DIN rail groove (35 mm)
6. Nameplate
_4
60
9
10
7
8
11
4
12
13
14
1. POWER LED indicator, RUN LED indicator, and ERROR LED indicator
2. RUN/STOP switch
4-5
_4
Starter Kit Manual
3. COM1 (RS-232 port)
5. Input/Output terminals
7. Mounting hole
9. Extension port
11. I/O module clip
13. I/O module groove
I/O configuration
Model
Point
Input
Type
4. DIN rail clip
6. Input/Output point indicators
8. Nameplate
10. DIN rail groove (35 mm)
12. COM2 (RS-485 port)
14. DC power input
Point
Output
Type
DVP14SS211R 8
DC
(Sink or source)
6 Relay
I/O configuration
Relay
S/S
X0
X1
X2
X3
X4
X5
X6
X7
C0
Y0
Y1
Y2
C1
Y3
Y4
Y5
4-6
Chapter 4 Appendix
4.2.3
DVP12SE11R
Profile
16 8
3
1
2
3
1 2
6
9 0
3 7.4
P OW E R
R UN
ER R O R
C O M1
R UN
S T O P
CO M 1
C O M 3+
C O M 3 -
S G
C0
Y0
Y 1
Y2
Y3
●
X2
X3
X4
X5
X6
X7
X0
X1
Y 0
Y 1
Y 2
Y 3
X 0
X 1
X 2
X 3
X 4
X 5
X 6
X 7
4
5
7
Et h e r n e t
3
60
10
11
12
8
9
1. POWER indicator, RUN indicator, ERROR indicator, COM1 indicator
3. COM1 (Mini USB)
2. RUN/STOP switch
4. Input/Output terminals, COM3 (RS-485)
5. Input/Output point indicators, COM2 indicator,
COM3 indicator
6. Ethernet port
7. DIN rail clip
9. Nameplate
11. DIN rail groove (35 mm)
13. COM2 (RS-485)
15. DC power input
8. Mounting hole
10. Right-side extension port
12. I/O module clip
14. I/O module groove
16. Left-side extension port
1 3
14
15
_4
4-7
_4
Starter Kit Manual
I/O configuration
Model
Point
Input
Type Point
Output
Type
DVP12SE11R 8
DC
(Sink or source)
4 Relay
I/O configuration
Relay
S/ S
X0
X1
X2
X3
X4
X5
X6
X7
C0
Y0
Y1
Y2
Y3
SG
COM3+
COM3-
4.2.4
DOP-B07S410
Profile
196.9
1
215
1 42.9
26.2
1.6~6
2
161
4
3
5
1. Touchscreen/Display
3. USB slave
5. COM port
2. Power input terminals
4. Power/COMM LED indicator
4-8
Chapter 4 Appendix
4.2.5
DOP-B07E415
Profile
196.9
1
215
161
2
3
142.9
51.2
1 .6~6
4
5
142.3
6
1. Touchscreen/Display
3. Operation LED Indicator
5. COM3
7. Memory card slot / battery
9. USB host
11. Ethernet interface (LAN)
2. Power LED indicator
4. COM2
6. Power input terminals
8. Audio output interface
10. USB slave
12. COM1
7
8
9
1 0
11
1 2
_4
4-9
Starter Kit Manual
_4
4.3
Connecting Communication Cables
4.3.1
Pin Definitions of Serial Communication
Definitions of the pins in the COM port on DOP-B07S410
COM port
5
6
7
Pin
1
2
3
4
8
9
Mode 1: RS-232
Not connected
RXD
TXD
Not connected
GND
Not connected
RTS
CTS
Not connected
Mode 2: RS-422
TXD+
Not connected
Not connected
RXD+
GND
TXD-
Not connected
Not connected
RXD-
Mode 3: RS-485
D+
Not connected
Not connected
Not connected
GND
D-
Not connected
Not connected
Not connected
Definitions of the pins in the COM ports on DOP-B07E415
1. Definitions of the pins in COM1 (supporting flow control)
COM1
PIN1
5
6
7
Pin
1
2
3
4
8
9
RS-232
Not connected
RXD
TXD
Not connected
GND
Not connected
RTS
CTS
Not connected
4-10
Chapter 4 Appendix
2. Definitions of the pins in COM2 (supporting flow control)
COM2
3
4
5
Pin
1
2
6
7
8
Mode 1: RS-232 Mode 2: RS-422 Mode 3: RS-485
Not connected TXD+ D+
RXD Not connected Not connected
TXD
Not connected
GND
Not connected
RXD+
GND
Not connected
Not connected
GND
Not connected
RTS
CTS
TXD-
Not connected
Not connected
D-
Not connected
Not connected
9 Not connected RXD- Not connected
Note 1: If COM2 is used for RS-232 flow control, i.e. if the RTS and CTS signals are used for flow control, COM3 port will become incapable of being used.
_4
Note 2: If COM2 is used for RS-422 flow control, please refer to the following table for more information. The signals RTS+, CTS+, RTS- and CTS- shown in the brackets in the following table are the signals used for flow control.
3. Definitions of the pins in COM3
COM3
3
4
5
Pin
1
2
8
9
6
7
Mode 1: RS-232 Mode 2: RS-422
Not connected TXD+ (RTS+)
RXD Not connected
TXD
Not connected
GND
Not connected
RXD+ (CTS+)
GND
Not connected
Not connected
Not connected
Not connected
TXD- (RTS-)
Not connected
Not connected
RXD- (CTS-)
Mode 3: RS-485
D+
Not connected
Not connected
Not connected
GND
D-
Not connected
Not connected
Not connected
4-11
Starter Kit Manual
_4
Note 1: If COM2 is used for RS-422 flow control, please refer to the table above for more information. The signals RTS+, CTS+, RTS- and CTS- shown in the brackets in the table above are the signals used for flow control.
4.3.2
Introduction of Communication Cables
UC-PRG020-12A (3 m): (Accessory: Male-to-male DB9 adapter)
8-pin male mini-DIN connector ↔ USB connector
4
1
8-pin male mini-DIN connector
8
5
2
7
6
3
1
4
4: Rx
5: Tx
8: GND
USB connector
1: +5V(RED)
2: D-(WHITE)
3: D+(GREEN)
4: G ND(BLACK)
Female DB9 connector ↔ USB connector
4
1
9
6
Female DB9 connector
5
1
2: Tx
3: Rx
5: G ND
7: CTS
8: RTS
UC-PRG015-01A (1.5 m)
USB connector
1: +5V(RED)
2: D-(W HITE)
3: D+(GREEN)
4: G ND(BLACK)
Mini USB ↔ USB A Type
5
1
4
1
Mini USB
+5V(RED): 1
D-(WHITE): 2
D+(GREEN): 3
GND(BLACK): 5
USB A Type
1: +5V(RED)
2: D-(W HITE)
3: D+(GREEN)
4: G ND(BLACK)
4-12
Chapter 4 Appendix
UC-PRG015-02A (1.5 m)
USB B Type ↔ USB A Type
2 3
1 4
USB B Type
+5V(RED): 1
D-(WHITE): 2
D+(GREEN): 3
GND(BLACK): 4
USB A Type
1: + 5V(RED)
2: D-(WHITE)
3: D+(GREEN)
4: G ND(BLACK)
UC-PRG030-20A (3 m)
RJ45 ↔ RJ45
1
8
RJ45
1: T x+
2: T x-
3: Rx+
6: Rx-
RJ45
1: T x+
2: T x-
3: Rx+
6: Rx-
UC-MS020-06A (2M)
8-pin male mini-DIN connector ↔ Male DB9 connector
8
1
4
1
_4
8-pin male mini-DIN connector
8
5
7
6
3
2
4
1
Rx: 4
Tx: 5
GND: 8
5V: 1, 2
Male DB9 connector
3: Tx
2: Rx
1
8
6
4
5: GND
7
9
6
5
1
4-13
Starter Kit Manual
_4
RS-485 cable (1 m)
RS-485 ↔ Male DB9 connector
RED
BLACK
RS-485
RED
BLACK
Male DB9 connector
9 5
1: D+
6: D-
6 1
4.4
Communication between a PLC and an HMI
4.4.1
Wiring a Controller
RS-232
DOP series
9-pin male D-sub (RS-232) connector
RXD (2)
TXD (3)
RS-485
GND (5)
PLC - DVP series
8-pin male mini-DIN (RS-232) connector
(5) TXD
(4) RXD
(8) GND
DOP series
9-pin male D-sub (RS-485) connector
D+ (1)
D- (6)
PLC - DVP series
RS-485 terminal
D+ (Red)
D- (Black)
4-14
Chapter 4 Appendix
4.4.2
PLC Device Addresses
M
M
M
M
M
M
M
M
M
M
Device Range
S
S
S
S
000~255
256~511
512~767
768~1023
X 000~377 (Octal) Bit
Type
Bit
Bit
Effective range
DVP14SS211R DVP12SE11R
000~1023
DVP address
(Hexadecimal)
Modbus address
(Decimal)
0000~00FF 000001~000256
0100~01FF 000257~000512
Bit
Bit
0200~02FF 000513~000768
0300~03FF 000769~001024
000~377 0400~04FF 101025~101280
Y 000~377 (Octal) Bit
T
M
M
M
M
M
000~255
000~255
256~511
512~767
768~1023
1024~1279
Bit
Word
Bit
Bit
Bit
Bit
Bit
000~377
000~255
000~255
0000~4095
0500~05FF 001281~001536
0600~06FF 001537~001792
0600~06FF 401537~401792
0800~08FF 002049~002304
0900~09FF 002305~002560
0A00~0AFF 002561~002816
0B00~0BFF 002817~003072
0C00~0CFF 003073~003328
1280~1535
1536~1791
1792~2047
2048~2303
2304~2559
2560~2815
2816~3071
3072~3327
3328~3583
3584~3839
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
0000~4095
0D00~0DFF 003329~003584
B000~B0FF 045057~045312
B100~B1FF 045313~045568
B200~B2FF 045569~045824
B300~B3FF 045825~046080
B400~B4FF 046081~046336
B500~B5FF 046337~046592
B600~B6FF 046593~046848
B700~B7FF 046849~047104
B800~B8FF 047105~047360
_4
4-15
_4
Starter Kit Manual
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
Device
M
C
Range Type
Bit
Effective range
DVP14SS211R DVP12SE11R
0000~4095
DVP address
(Hexadecimal)
Modbus address
(Decimal)
B900~B9FF 047361~047616 3840~4095
Bit
0~199 16-bit
Word
000~199
000~199
0E00~0EC7 003585~003784
0E00~0EC7 403585~403784
Bit
200~255 32-bit
Dword
000~255 Word
200~255
200~255
0EC8~0EFF 003785~003840
0EC8~0EFF 403785~403840
1000~10FF 404097~404352
256~511
512~767
768~1023
Word
Word
Word
1100~11FF 404353~404608
1200~12FF 404609~404864
1300~13FF 404865~405120
1024~1279
1280~1535
1536~1791
1792~2047
2048~2303
2816~3071
Word
Word
Word
Word
Word
2304~2559 Word
2560~2815 Word
Word
0000
~
4999
0000
~
11999
1400~14FF 405121~405376
1500~15FF 405377~405632
1600~16FF 405633~405888
1700~17FF 405889~406144
1800~18FF 406145~406400
1900~19FF 406401~406656
1A00~1AFF 406657~406912
1B00~1BFF 406913~407168
3072~3327 Word
3328~3583 Word
3584~3839 Word
3840~4095 Word
4096~4351 Word
4352~4607 Word
4608~4863 Word
4864~5119 Word
1C00~1CFF 407169~407424
1D00~1DFF 407425~407680
1E00~1EFF 407681~407936
1F00~1FFF 407937~408192
9000~90FF 436865~437120
9100~91FF 437121~437376
9200~92FF 437377~437632
9300~93FF 437633~437888
4-16
Chapter 4 Appendix
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
Device Range
5120~5375
Type
Word
Effective range
DVP14SS211R DVP12SE11R
DVP address
(Hexadecimal)
Modbus address
(Decimal)
9400~94FF 437889~438144
5376~5631 Word
5632~5887 Word
5888~6143 Word
6144~6399 Word
6400~6655 Word
9500~95FF 438145~438400
9600~96FF 438401~438656
9700~97FF 438657~438912
9800~98FF 438913~439168
9900~99FF 439169~439424
6656~6911 Word
6912~7167 Word
7168~7423 Word
7424~7679 Word
7680~7935 Word
7936~8191 Word
8192~8447 Word
8448~8703 Word
N/A
0000
~
11999
9A00~9AFF 439425~439680
9B00~9BFF 439681~439936
9C00~9CFF 439937~440192
9D00~9DFF 440193~440448
9E00~9EFF 440449~440704
9F00~9FFF 440705~440960
A000~A0FF 440961~441216
A100~A1FF 441217~441472
8704~8959 Word
8960~9215 Word
9216~9471 Word
9472~9727 Word
9728~9983 Word
9984~9999 Word
10000~11999 Word
A200~A2FF 441473~441728
A300~A3FF 441729~441984
A400~A4FF 441985~442240
A500~A5FF 442241~442496
A600~A6FF 442497~442752
A700~A7FF 442753~443008
A710~AEDF 442767~44768
_4
4-17
Starter Kit Manual
_4
4.4.3
Setting the Communication Parameters in a PLC
Function COM port
Number
Port
Item
Communication format
Retaining communication settings
ASCII (Off)/RTU (On)
Slave communication address
COM1 COM2
D1036
M1138
D1120
M1120
M1139
D1121
M1143
COM3
D1109
M1136
M1320
D1255
Description:
COM1 is an RS-232 port, COM2 is an RS-485 port, and COM3 is an RS-485 port. They support Modbus ASCII/RTU communication. If RTU communication is selected, the data length selected should be 8 bytes. COM2 and COM3 support data rates up to 921 kbps.
COM1, COM2, and COM3 can be used at the same time. If the communication port used is a USB port, it can not function as a master.
COM1:
COM1 can function as a master or a slave. It supports ASCII/RTU communication and data rates upt to (115200 bps). Besides, it can be used to change the number of data bits, a parity bit, and the number of stop bits.
D1036: Master/Slave communication protocol used by COM1 (Bit 8~bit 15 are not used.
Please refer to the table below for more information.)
COM2:
COM2 can function as a master or a slave. It supports ASCII/RTU communication and data rates upt to (921 kbps). Besides, it can be used to change the number of data bits, a parity bit, and the number of stop bits.
D1120: Master/Slave communication protocol used by COM2 (Please refer to the table below for more information.)
4-18
Chapter 4 Appendix
COM3:
COM3 can function as a master or a slave. It supports ASCII/RTU communication and serial transmission speed upt to (921 kbps). Besides, it can be used to change the number of data bits, a parity bit, and the number of stop bits.
D1109: Master/Slave communication protocol used by COM3 (Bit 8~bit 15 are not used.
Please refer to the table below for more information.)
Communication protocol b0 b2, b1 b3 b7~b4
Data length
Parity bit
Stop bit
Data rate
Contents
0: 7; 1: 8 (If RTU communication is selected, the data length selected should be 8 bytes.)
00: None
01: Odd
11: Even
0: 1 bit; 1: 2 bits
0001 (H1): 110
0010 (H2): 150
0011 (H3): 300
0100 (H4): 600
0101 (H5): 1200
0110 (H6): 2400
0111 (H7): 4800
1000 (H8): 9600
1001 (H9): 19200
1010 (HA): 38400
1011 (HB): 57600
1100 (HC): 115200
_4
4-19
Starter Kit Manual
_4 b7~b4 b8 b9 b10 b15~b11
Contents
1101 (HD): 500000 (Supported by COM2/COM3)
1110 (HE): 31250 (Supported by COM2/COM3)
Data rate
1111 (HF): 921000 (Supported by COM2/COM3)
Start-of-text character 0: None 1: D1124
First end-of-text character
Second end-of-text character
Undefined
0: None
0: None
1: D1125
1: D1126
Example: Modifying the communication format used by COM1
1. If users want to modify the communication format used by COM1, they have to add the program code below to the top of the program in the PLC. When the PLC runs during the first program scan, it checks whether M1138 is On. If M1138 is On, the setting of COM1 will be changed according to the value in D1036.
2. Change the communication format used by COM1 is changed to an ASCII format
(115200 bps, 7 data bits, Even parity bit, 1 stop bit).
4-20
Chapter 4 Appendix
4.4.4
Setting the Communication Parameters in an HMI
DOP-B07S410
Setting communication
After users click Communication Setting on the Options menu in DOPSoft, they can set communication parameters related to COM1.
_4
4-21
_4
Starter Kit Manual
DOP-B07E415
Setting communication
After users click Communication Setting on the Options menu in DOPSoft, they can set communication parameters related to Ethernet.
4-22
Chapter 4 Appendix
4.5
Equivalent Circuit of an I/O Simulator Board
4.5.1
Connecting to DVP14SS211R
S S
X0
X1
X2
X3
X4
X5
X6
X7
C0
Y0
Y1
Y2
C1
Y3
+24V
0V
L
N
AC 100V~240V
50~60Hz
SR1
10K
Red
SR2
10K
Yellow
SR3
10K
Green
SR4
10K
Green
_4
4-23
_4
Starter Kit Manual
4.5.2
Connecting to DVP12SE11R
X3
X4
X5
X6
X7
/
X0
X1
X2
C0
Y0
Y1
Y2
Y3
+24V
0V
L
N
AC 100V~240V
50~60Hz
SR1
10K
Red
SR2
10K
Yellow
SR3
10K
Green
SR4
10K
Green
4-24
Chapter 4 Appendix
4.6
Installing the DVP12SE11R Driver
After ISPSoft is installed on a PC, the DVP12SE11R driver will appear in the folder in which ISPSoft is installed. After DVP12SE11R is connected to the PC, the message
“Installing device driver software” will appear, and the PLC will install the DVP12SE11R driver automatically.
After the installation of the DVP12SE11R driver is complete, the message “Delta PLC” will appear in the Driver Software Installation window.
_4
4-25
_4
Starter Kit Manual
MEMO
4-26
Industrial Automation Headquarters
Delta Electronics, Inc.
Taoyuan Technology Center
18 Xinglong Road, Taoyuan District,
Taoyuan City 33068, Taiwan (R.O.C.)
TEL: 886-3-362-6301 / FAX: 886-3-371-6301 www.deltaww.com.tw
Asia
Delta Electronics (Jiangsu) Ltd.
Wujiang Plant 3
1688 Jiangxing East Road,
Wujiang Economic Development Zone
Wujiang City, Jiang Su Province, P.R.C. 215200
TEL: 86-512-6340-3008 / FAX: 86-769-6340-7290
Delta Greentech (China) Co., Ltd.
238 Min-Xia Road, Pudong District,
ShangHai, P.R.C. 201209
TEL: 86-21-58635678 / FAX: 86-21-58630003
Delta Electronics (Japan), Inc.
Tokyo Office
2-1-14 Minato-ku Shibadaimon,
Tokyo 105-0012, Japan
TEL: 81-3-5733-1111 / FAX: 81-3-5733-1211
Delta Electronics (Korea), Inc.
1511, Byucksan Digital Valley 6-cha, Gasan-dong,
Geumcheon-gu, Seoul, Korea, 153-704
TEL: 82-2-515-5303 / FAX: 82-2-515-5302
Delta Electronics Int’l (S) Pte Ltd.
4 Kaki Bukit Ave 1, #05-05, Singapore 417939
TEL: 65-6747-5155 / FAX: 65-6744-9228
Delta Electronics (India) Pvt. Ltd.
Plot No 43 Sector 35, HSIIDC
Gurgaon, PIN 122001, Haryana, India
TEL : 91-124-4874900 / FAX : 91-124-4874945
Americas
Delta Products Corporation (USA)
Raleigh Office
P.O. Box 12173,5101 Davis Drive,
Research Triangle Park, NC 27709, U.S.A.
TEL: 1-919-767-3800 / FAX: 1-919-767-8080
Delta Greentech (Brasil) S.A.
Sao Paulo Office
Rua Itapeva, 26 - 3° andar Edificio Itapeva One-Bela Vista
01332-000-São Paulo-SP-Brazil
TEL: 55 11 3568-3855 / FAX: 55 11 3568-3865
Europe
Deltronics (The Netherlands) B.V.
Eindhoven Office
De Witbogt 20, 5652 AG Eindhoven, The Netherlands
TEL: 31-40-2592850 / FAX: 31-40-2592851
*We reserve the right to change the information in this catalogue without prior notice.
2015-08-18
5014018201
UTE1
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
- 28 Installing Hardware
- 28 Supply Module
- 28 Connecting a Personal Computer to DVP14SS211R
- 28 Connecting a Personal Computer to DOP-B07S
- 28 Connecting DVP14SS211R to DOP-B07S
- 28 Connecting a Personal Computer to DVP12SE11R
- 28 Connecting a Personal Computer to DOP-B07E
- 28 Connecting DVP12SE11R to DOP-B07E
- 28 Installing ISPSoft
- 28 Installing COMMGR
- 28 Installing DOPSoft
- 28 Installing DCISoft
- 28 Installing the UC-PRG020-12A Driver
- 106 Example
- 106 Creating a Project for a PLC
- 106 Creating a Main Program
- 106 Setting COMMGR for UT-14SS2-A
- 106 Downloading a PLC Project
- 106 Monitoring a Program
- 106 Using a PLC with an I/O Simulator Board
- 106 Writing a Program for an HMI
- 106 Compiling and Downloading an HMI Program
- 106 Using an HMI with an I/O Simulator Board
- 106 Example
- 106 Project Requirements
- 106 Project Development
- 106 Writing a Program for an HMI
- 106 Creating a Project for a PLC
- 106 Setting COMMGR for UT-12SE-A
- 106 Downloading a PLC Project
- 106 Setting Ethernet Parameters for DVP12SE11R
- 154 Introduction of Hardware
- 154 DVPPS
- 154 DVP14SS211R
- 154 DVP12SE11R
- 154 DOP-B07S
- 154 DOP-B07E
- 154 Profiles and Dimensions
- 154 DVPPS
- 154 DVP14SS211R
- 154 DVP12SE11R
- 154 DOP-B07S
- 154 DOP-B07E
- 154 Connecting Communication Cables
- 154 Pin Definitions of Serial Communication
- 154 Introduction of Communication Cables
- 154 Communication between a PLC and an HMI
- 154 Wiring a Controller
- 174 PLC Device Addresses
- 174 Setting the Communication Parameters in a PLC
- 174 Setting the Communication Parameters in an HMI
- 174 Equivalent Circuit of an I/O Simulator Board
- 174 Connecting to DVP14SS211R
- 174 Connecting to DVP12SE11R
- 174 Installing the DVP12SE11R Driver